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. More...
 

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.

POSLIB_MEASUREMENT_RATE_OFFLINE
@ POSLIB_MEASUREMENT_RATE_OFFLINE
Definition: poslib_decode.h:19
POSLIB_MEASUREMENT_RATE_DYNAMIC
@ POSLIB_MEASUREMENT_RATE_DYNAMIC
Definition: poslib_decode.h:17
POSLIB_MEASUREMENT_RATE_STATIC
@ POSLIB_MEASUREMENT_RATE_STATIC
Definition: poslib_decode.h:15
POSLIB_OPERATING_MODE
@ POSLIB_OPERATING_MODE
Definition: poslib_decode.h:16
POSLIB_LED_ON_DURATION
@ POSLIB_LED_ON_DURATION
Definition: poslib_decode.h:25
poslib_decode_msg_e
poslib_decode_msg_e
defines the available app-config commands.
Definition: poslib_decode.h:13
POSLIB_LED_CMD_SEQ
@ POSLIB_LED_CMD_SEQ
Definition: poslib_decode.h:26
POSLIB_DEVICE_CLASS_CHANGE
@ POSLIB_DEVICE_CLASS_CHANGE
Definition: poslib_decode.h:22
POSLIB_BEACON
@ POSLIB_BEACON
Definition: poslib_decode.h:21
POSLIB_NODE_ADDR_SELECTION
@ POSLIB_NODE_ADDR_SELECTION
Definition: poslib_decode.h:20
POSLIB_MOTION_DURATION
@ POSLIB_MOTION_DURATION
Definition: poslib_decode.h:24
POSLIB_OTAP
@ POSLIB_OTAP
Definition: poslib_decode.h:18
POSLIB_MOTION_THRESHOLD
@ POSLIB_MOTION_THRESHOLD
Definition: poslib_decode.h:23