7#ifndef _POSLIB_MEASUREMENT_H_
8#define _POSLIB_MEASUREMENT_H_
35#define MAX_PAYLOAD 102
40#define NODE_ADDRESS_LENGTH 4
41#define DEFAULT_MEASUREMENT_TYPE_TAG POSLIB_MEAS_RSS_SR_4BYTE_ADDR
42#define DEFAULT_MEASUREMENT_TYPE_ANCHOR POSLIB_MEAS_RSS_SR_ANCHOR_4BYTE_ADDR
46#define PACKED_STRUCT struct __attribute__((__packed__))
87#define POSLIB_NODE_INFO_FEATURES_VERSION 1
127typedef struct poslib_measurement
157 uint8_t * bytes_len, uint8_t * num_meas);
void PosLibMeas_clearMeas(void)
Clears measurement table.
poslib_measurements_e
defines the device's positioning mode. The type is matched against the WPE proto definition.
@ POSLIB_MEAS_RSS_SR_4BYTE_ADDR
@ POSLIB_MEAS_RSS_SR_ANCHOR_4BYTE_ADDR
@ POSLIB_MEAS_RSS_SR_ANCHOR
void PosLibMeas_stop(void)
Stops the measurement module. Callbacks are removed.
bool PosLibMeas_opportunisticScan(bool enable)
bool PosLibMeas_startScan(poslib_scan_ctrl_t *scan_ctrl)
Starts new scan.
uint8_t PosLibMeas_getBeaconNum(void)
Get the number of beacons available.
poslib_node_info_features_e
Node active features (.
@ POSLIB_NODE_INFO_MASK_VERSION
@ POSLIB_NODE_INFO_FLAG_IS_STATIC
@ POSLIB_NODE_INFO_FLAG_IBEACON_ON
@ POSLIB_NODE_INFO_FLAG_MBCN_ON
@ POSLIB_NODE_INFO_FLAG_EDDYSTONE_ON
@ POSLIB_NODE_INFO_FLAG_MOTION_EN
poslib_meas_record_header_t header
bool PosLibMeas_getPayload(uint8_t *bytes, uint8_t max_len, uint16_t sequence, poslib_measurements_e meas_type, bool add_voltage, poslib_meas_record_node_info_t *node_info, uint8_t *bytes_len, uint8_t *num_meas)
Voltage record (header + payload)