[Gambas-user] [Gambas Bug Tracker] Bug #858: serial port implementation constants are bad and uncompleted!/miscdocumented!
willy at ...3474...
willy at ...3474...
Fri Dec 4 23:32:55 CET 2015
On 2015-12-04 22:15, bugtracker at ...3416... wrote:
> http://gambaswiki.org/bugtracker/edit?object=BUG.858&from=L21haW4-
>
> Comment #3 by PICCORO LENZ MCKAY:
>
> oh men what a problem, so its difficul to said what are in problem, or
> the component itselft or the documentation refers!
>
> so then i must research to the gambas module implementation and
> improve the wiki or see if tha tu said are valid!
>
> su said:
>
> FlowControl = SerialPort.Software means Software IXON + IXOFF + IXANY.
> <<< setting to that does not work, work only if i put explicy the
> integer 2
>
> and that you said are not documented !
In the CSerialPort.c file at line 472 it states:
// FlowControl : 1->CRTSCTS , 2-> XON/XOFF , 3-> XON/OFF plus CRTSCTS, 0
--> NONE
So the constants for FlowControl are:
SerialPort.None = 0
SerialPort.Hardware = 1 -> meaning CRTSCTS
SerialPort.Software = 2 -> meaning XON/XOFF
SerialPort.Both = 3 -> meaning XON/OFF plus CRTSCTS
Maybe we just need to add this bit of information (what the constant
means) to the docmentation, as it could make sense to developers working
with serial ports.
Would that help you as well?
gbWilly
More information about the User
mailing list