Wirepas SDK
poslib_control.h
Go to the documentation of this file.
1
7#ifndef _POSLIB_CONTROL_H_
8#define _POSLIB_CONTROL_H_
9
10#include "poslib_event.h"
11
21
28
35
41
47
55
62
68
75
76
83void PosLibCtrl_getAppConfig(uint8_t ** cfg, uint8_t * len);
84void PosLibCtrl_setAppConfig(const uint8_t * cfg, uint8_t len);
85
86#endif
poslib_ret_e
Return codes of positioning functions.
Definition poslib.h:38
poslib_motion_mode_e
defines the position motion mode.
Definition poslib.h:76
poslib_status_e
defines status returned in PosLib_status().
Definition poslib.h:152
position library settings.
Definition poslib.h:277
poslib_ret_e PosLibCtrl_motion(poslib_motion_mode_e mode)
Adjust the update rate according to motion state (static/dynamic)
poslib_ret_e PosLibCtrl_startOneshot(void)
Triggers a single position update imediatelly.
poslib_ret_e PosLibCtrl_stopPeriodic(void)
Stops periodic positioning update.
poslib_status_e PosLibCtrl_status(void)
Returns the current status of PosLib.
poslib_state_e
PosLib control internal state definitions.
@ POSLIB_STATE_IDLE
@ POSLIB_STATE_STOPPED
@ POSLIB_STATE_UPDATE
void PosLibCtrl_setAppConfig(const uint8_t *cfg, uint8_t len)
void PosLibCtrl_getAppConfig(uint8_t **cfg, uint8_t *len)
Returns the current app config payload.
void PosLibCtrl_processEvent(poslib_internal_event_t *event)
Process the internal event.
poslib_ret_e PosLibCtrl_getConfig(poslib_settings_t *settings)
Returns the current PosLib configuration.
poslib_ret_e PosLibCtrl_setConfig(poslib_settings_t *settings)
Sets new configration to PosLib.
poslib_ret_e PosLibCtrl_startPeriodic(void)
Starts periodic positioning update.
Header file for the poslib_event.c.