21 #ifndef SL_LOGGER_LPMS_H
22 #define SL_LOGGER_LPMS_H
bool lpms_parseConfig(log_thread_args_t *lta, config_section *s)
Take a configuration section and parse parameters.
void * lpms_logging(void *ptargs)
Serial source main logging loop.
bool lpms_queue_message(msgqueue *Q, const uint8_t src, const uint8_t chan, const float val)
Helper function: Create and queue data messages, with error handling.
void * lpms_channels(void *ptargs)
Serial source channel map.
void * lpms_setup(void *ptargs)
Generic serial connection setup.
device_callbacks lpms_getCallbacks(void)
Fill out device callback functions for logging.
lpms_params lpms_getParams(void)
Fill out default MP source parameters.
void * lpms_shutdown(void *ptargs)
Serial source shutdown.
Configuration file section.
Device specific function information.
Logging thread information.
Serial device specific parameters.
int unitID
LPMS Sensor Address.
int pollFreq
Desired number of measurements per second.
int baudRate
Baud rate for operations (Default 921600)
int handle
Handle for currently opened device.
char * sourceName
User defined name for this source.
char * portName
Target port name.
uint8_t sourceNum
Source ID for messages.
Represent a simple FIFO message queue.