|
SELKIELogger
1.0.0
|

Modules | |
| Strings and String arrays | |
| Logging support functions | |
| Internal message format and functions | |
| Message queues | |
Files | |
| file | logging.h |
| file | queue.h |
| file | serial.h |
| file | sources.h |
| file | strarray.h |
Functions | |
| int | openSerialConnection (const char *port, const int baudRate) |
| Open a serial connection at a given baud rate. More... | |
| int | baud_to_flag (const int rate) |
| Convert a numerical baud rate to termios flag. More... | |
| int | flag_to_baud (const int flag) |
| Convert a termios baud rate flag to a numerical value. More... | |
| int baud_to_flag | ( | const int | rate | ) |
| int flag_to_baud | ( | const int | flag | ) |
Convert a termios baud rate flag to a numerical value.
As with the baud_to_flag() counterpart, will return -1 flag if no matching baud rate is found.
| [in] | flag | Corresponding flag from termios.h |
| int openSerialConnection | ( | const char * | port, |
| const int | baudRate | ||
| ) |
Open a serial connection at a given baud rate.
Opens port and sets the following modes:
The baud rate provided is compared to the mode requested and an error returned if this does not match.
| [in] | port | Serial port device path |
| [in] | baudRate | Target baud rate (will be passed to baud_to_flag() |