Wirepas SDK
|
Header for poslib_control.c. More...
Go to the source code of this file.
Functions | |
poslib_ret_e | PosLibCtrl_setConfig (poslib_settings_t *settings) |
Sets new configration to PosLib. More... | |
poslib_ret_e | PosLibCtrl_getConfig (poslib_settings_t *settings) |
Returns the current PosLib configuration. More... | |
poslib_ret_e | PosLibCtrl_startPeriodic (void) |
Starts periodic positioning update. More... | |
poslib_ret_e | PosLibCtrl_stopPeriodic (void) |
Stops periodic positioning update. More... | |
poslib_ret_e | PosLibCtrl_startOneshot (void) |
Triggers a single position update imediatelly. More... | |
poslib_ret_e | PosLibCtrl_motion (poslib_motion_mode_e mode) |
Adjust the update rate according to motion state (static/dynamic) More... | |
poslib_status_e | PosLibCtrl_status (void) |
Returns the current status of PosLib. More... | |
void | PosLibCtrl_processEvent (poslib_internal_event_t *event) |
Process the internal event. More... | |
void | PosLibCtrl_getAppConfig (uint8_t **cfg, uint8_t *len) |
Returns the current app config payload. More... | |
void | PosLibCtrl_setAppConfig (const uint8_t *cfg, uint8_t len) |
Enumerations | |
enum | poslib_state_e { POSLIB_STATE_STOPPED = 0, POSLIB_STATE_IDLE = 1, POSLIB_STATE_UPDATE = 2 } |
PosLib control internal state definitions. More... | |
void PosLibCtrl_getAppConfig | ( | uint8_t ** | cfg, |
uint8_t * | len | ||
) |
Returns the current app config payload.
[out] | cfg | pointer to the app config array |
[out] | len | the length of the app config, 0 no configuration valid |
poslib_ret_e PosLibCtrl_getConfig | ( | poslib_settings_t * | settings | ) |
Returns the current PosLib configuration.
settings | type of poslib_settings_t where settings will be delivered |
poslib_ret_e PosLibCtrl_motion | ( | poslib_motion_mode_e | mode | ) |
Adjust the update rate according to motion state (static/dynamic)
mode | type of poslib_motion_mode_e |
void PosLibCtrl_processEvent | ( | poslib_internal_event_t * | event | ) |
void PosLibCtrl_setAppConfig | ( | const uint8_t * | cfg, |
uint8_t | len | ||
) |
poslib_ret_e PosLibCtrl_setConfig | ( | poslib_settings_t * | settings | ) |
Sets new configration to PosLib.
settings | type of poslib_settings_t with settings |
poslib_ret_e PosLibCtrl_startOneshot | ( | void | ) |
Triggers a single position update imediatelly.
poslib_ret_e PosLibCtrl_startPeriodic | ( | void | ) |
Starts periodic positioning update.
poslib_status_e PosLibCtrl_status | ( | void | ) |
Returns the current status of PosLib.
poslib_ret_e PosLibCtrl_stopPeriodic | ( | void | ) |
Stops periodic positioning update.
enum poslib_state_e |
PosLib control internal state definitions.
Enumerator | |
---|---|
POSLIB_STATE_STOPPED | |
POSLIB_STATE_IDLE | |
POSLIB_STATE_UPDATE |
Definition at line 15 of file poslib_control.h.