Ecere SDK 里有串口类吗?Ecere SDK have the Class for serial port?

来自中国的朋友,欢迎您在本版面使用中文讨论问题。请注意,如果您想得到不懂中文的人的帮助,请同时提供英文译文。
Help and discussions in Chinese.
Post Reply
gxl1175
Posts: 2
Joined: Wed Dec 17, 2014 9:27 am

Ecere SDK 里有串口类吗?Ecere SDK have the Class for serial port?

Post by gxl1175 »

我有时需要用串口与单片机进行通信,Ecere SDK 里有封装好的,简单的串口类吗?
I do communication for PC with MCU, Ecere SDK have the Class for serial port?
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Ecere SDK 里有串口类吗?Ecere SDK have the Class for serial por

Post by jerome »

您好,欢迎Ecere!

We don't have any Ecere class for accessing the serial port at the moment.

However, you should be able to use the POSIX or Win32 API.

http://ulisse.elettra.trieste.it/servic ... asics.html

http://msdn.microsoft.com/en-us/library/ff802693.aspx

You could also create a class that derives from the base 'File' class to expose this functionality has an Ecere 'File' class.

Regards,

-Jerome
gxl1175
Posts: 2
Joined: Wed Dec 17, 2014 9:27 am

Re: Ecere SDK 里有串口类吗?Ecere SDK have the Class for serial por

Post by gxl1175 »

Thanks jerome! But i just want to simply do that, have you any plan to implement a class for serial port ? :D
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Ecere SDK 里有串口类吗?Ecere SDK have the Class for serial por

Post by jerome »

We do not have plans for implementing such a class at the moment.

However you're welcome to submit one as a contribution, and we would be happy to review it, suggest improvements and possibly include it as part of the SDK.

Regards,

-Jerome
Post Reply