Serial Scol plugin
|
Functions | |
int | _openSIO (mmachine m) |
_openSIO : This function open a serial port | |
int | _closeSIO (mmachine m) |
_closeSIO : This function destroy a serial object and close the connection | |
int | _writeSIO (mmachine m) |
_writeSIO : This function send data on serial device | |
Scol functions definition
int _closeSIO | ( | mmachine | m | ) |
_closeSIO : This function destroy a serial object and close the connection
Prototype: fun [SerialIO] I
SerialIO | : the current serial device |
Definition at line 172 of file plugin.cpp.
int _openSIO | ( | mmachine | m | ) |
_openSIO : This function open a serial port
Prototype: fun [Chn S [I I I I] fun [SerialIO u0 S I] I u0] SerialIO
Chn | : scol channel |
S | : com port number, name for Windows or full path for linux |
[I | I I I] : port parameters, baudRate, parity, byteSize and stopbit |
fun | [SerialIO u0 S I] I : callback function for receive data |
- | SerialIO : the serial object |
- | u0 : user parameter |
- | S : the received data |
- | I : the data size |
u0 | : the callback user parameter |
Definition at line 80 of file plugin.cpp.
int _writeSIO | ( | mmachine | m | ) |
_writeSIO : This function send data on serial device
Prototype: fun [SerialIO S] I
SerialIO | : the current Serial device |
S | : data to send |
Definition at line 205 of file plugin.cpp.