Snapdragon® Telematics Application Framework (TelAF) Interface Specification
|
This API provides routines to configure serial ports.
le_tty_Open()
opens a serial port device and locks it for exclusive use.le_tty_Close()
closes and unlocks a serial port file descriptor.le_tty_SetBaudRate()
, value available are listed by tty_Speed_tle_tty_GetBaudRate()
. when le_tty_SetBaudRate() failed with LE_UNSUPPORTED, use le_tty_GetBaudRate()
to retrieve the real value sets by the driver.le_tty_SetFraming()
. Parity value can be :le_tty_SetFlowControl()
. Flow control options are:le_tty_SetCanonical()
. it converts EOL characters to unix format, enables local echo, line mode.Setting serial port into raw (non-canonical) mode is done with le_tty_SetRaw()
. it disables conversion of EOL characters, disables local echo, sets character mode, read timeouts.
Different use cases for numChars and timeout parameters in le_tty_SetRaw(int fd,int numChars,int timeout)
To switch between 'cannonical' and 'raw' mode, just call le_tty_SetCanonical()
and le_tty_SetRaw()
respectively
Copyright (C) Sierra Wireless Inc.