SELKIELogger
1.0.0
|
Classes | |
struct | rx_params |
Serial device specific parameters. More... | |
Functions | |
void * | rx_setup (void *ptargs) |
Generic serial connection setup. More... | |
void * | rx_logging (void *ptargs) |
Serial source main logging loop. More... | |
void * | rx_shutdown (void *ptargs) |
Serial source shutdown. More... | |
void * | rx_channels (void *ptargs) |
Serial source channel map. More... | |
device_callbacks | rx_getCallbacks (void) |
Fill out device callback functions for logging. More... | |
rx_params | rx_getParams (void) |
Fill out default MP source parameters. More... | |
bool | rx_parseConfig (log_thread_args_t *lta, config_section *s) |
Take a configuration section and parse parameters. More... | |
Adds support for reading arbitrary serial data from devices that output messages not otherwise covered or interpreted by this software.
void* rx_channels | ( | void * | ptargs | ) |
Serial source channel map.
Populate list of channels and push to queue as a map message
Exits thread in case of error.
[in] | ptargs | Pointer to log_thread_args_t |
Definition at line 167 of file LoggerSerial.c.
device_callbacks rx_getCallbacks | ( | void | ) |
Fill out device callback functions for logging.
Definition at line 138 of file LoggerSerial.c.
rx_params rx_getParams | ( | void | ) |
Fill out default MP source parameters.
Definition at line 149 of file LoggerSerial.c.
void* rx_logging | ( | void * | ptargs | ) |
Serial source main logging loop.
Reads messages from the connection established by rx_setup(), and pushes them to the queue. Data is not interpreted, just pushed into the queue with suitable headers.
Message size is variable, based on min/max limits and the amount of data available to read from the source.
Terminates thread in case of error.
[in] | ptargs | Pointer to log_thread_args_t |
Definition at line 62 of file LoggerSerial.c.
bool rx_parseConfig | ( | log_thread_args_t * | lta, |
config_section * | s | ||
) |
Take a configuration section and parse parameters.
[in] | lta | Pointer to log_thread_args_t |
[in] | s | Pointer to config_section to be parsed |
Definition at line 210 of file LoggerSerial.c.
void* rx_setup | ( | void * | ptargs | ) |
Generic serial connection setup.
Opens a serial connection and the required baud rate.
It is assumed that no other setup is required for these devices.
[in] | ptargs | Pointer to log_thread_args_t |
Definition at line 34 of file LoggerSerial.c.
void* rx_shutdown | ( | void * | ptargs | ) |
Serial source shutdown.
Simple wrapper around rx_closeConnection(), which will do any cleanup required.
[in] | ptargs | Pointer to log_thread_args_t |
Definition at line 120 of file LoggerSerial.c.