Wirepas SDK
poslib_decode.h File Reference

Header file for poslib_decode.c. More...

Detailed Description

Header file for poslib_decode.c.

Definition in file poslib_decode.h.

Go to the source code of this file.

Functions

bool PosLibDecode_config (const uint8_t *buffer, uint32_t length, poslib_settings_t *settings, poslib_aux_settings_t *aux)
 Decodes received configuration.
 

Enumerations

enum  poslib_decode_msg_e {
  POSLIB_MEASUREMENT_RATE_STATIC = 0x01 , POSLIB_OPERATING_MODE = 0x02 , POSLIB_MEASUREMENT_RATE_DYNAMIC = 0x03 , POSLIB_OTAP = 0x04 ,
  POSLIB_MEASUREMENT_RATE_OFFLINE = 0x05 , POSLIB_NODE_ADDR_SELECTION = 0x06 , POSLIB_BEACON = 0x08 , POSLIB_DEVICE_CLASS_CHANGE = 0x0A ,
  POSLIB_MOTION_THRESHOLD = 0x0B , POSLIB_MOTION_DURATION = 0x0C , POSLIB_LED_ON_DURATION = 0x0E , POSLIB_LED_CMD_SEQ = 0x0F
}
 defines the available app-config commands. More...
 

Function Documentation

◆ PosLibDecode_config()

bool PosLibDecode_config ( const uint8_t *  buffer,
uint32_t  length,
poslib_settings_t *  settings,
poslib_aux_settings_t *  aux 
)

Decodes received configuration.

Parameters
bytesPointer to configuration
num_bytesLength of the configuration
settingsPointer to a poslib_settings_t structure where decoded settings will be stored
Returns
bool true: decoding succesfull; false: decoding error

Enumeration Type Documentation

◆ poslib_decode_msg_e

defines the available app-config commands.

Enumerator
POSLIB_MEASUREMENT_RATE_STATIC 
POSLIB_OPERATING_MODE 
POSLIB_MEASUREMENT_RATE_DYNAMIC 
POSLIB_OTAP 
POSLIB_MEASUREMENT_RATE_OFFLINE 
POSLIB_NODE_ADDR_SELECTION 
POSLIB_BEACON 
POSLIB_DEVICE_CLASS_CHANGE 
POSLIB_MOTION_THRESHOLD 
POSLIB_MOTION_DURATION 
POSLIB_LED_ON_DURATION 
POSLIB_LED_CMD_SEQ 

Definition at line 13 of file poslib_decode.h.

14{
18 POSLIB_OTAP = 0x04,
21 POSLIB_BEACON = 0x08,
26 POSLIB_LED_CMD_SEQ = 0x0F,
poslib_decode_msg_e
defines the available app-config commands.
@ POSLIB_MOTION_DURATION
@ POSLIB_OTAP
@ POSLIB_NODE_ADDR_SELECTION
@ POSLIB_LED_CMD_SEQ
@ POSLIB_BEACON
@ POSLIB_LED_ON_DURATION
@ POSLIB_MEASUREMENT_RATE_STATIC
@ POSLIB_DEVICE_CLASS_CHANGE
@ POSLIB_MEASUREMENT_RATE_OFFLINE
@ POSLIB_MEASUREMENT_RATE_DYNAMIC
@ POSLIB_OPERATING_MODE
@ POSLIB_MOTION_THRESHOLD