Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Expected usage of configuration interface: More...
Data Structures | |
struct | ubx_cfg_val |
Configuration value structure as returned by parser. More... | |
Macros | |
#define | UBX_CFG_VALUE_APPEND(buf, key, value) |
Macro to append a configuration value to a buffer. | |
Functions | |
static void | ubx_msg_prepare_valset (struct net_buf_simple *buf, uint8_t layers) |
Helper to prepare the common CFG-VALSET message. | |
static void | ubx_msg_prepare_valget (struct net_buf_simple *buf, uint8_t layer, uint8_t offset) |
Helper to prepare the common CFG-VALGET message. | |
static int | ubx_cfg_val_parse (const uint8_t **ptr, size_t *remaining, struct ubx_cfg_val *cfg) |
Iteratively parse configuration values from a buffer. | |
Expected usage of configuration interface:
#define UBX_CFG_VALUE_APPEND | ( | buf, | |
key, | |||
value ) |
#include <infuse/gnss/ubx/cfg.h>
Macro to append a configuration value to a buffer.
Implemented as a macro to allow the type of value to be preserved. As key should always be a compile time constant, only the chosen branch should ever be present in the output binary.
buf | Buffer to append value to |
key | UBX configuration value key |
value | Value |
|
inlinestatic |
#include <infuse/gnss/ubx/cfg.h>
Iteratively parse configuration values from a buffer.
Expected usage:
ptr | Pointer to configuration buffer to parse |
remaining | |
cfg |
|
inlinestatic |
#include <infuse/gnss/ubx/cfg.h>
Helper to prepare the common CFG-VALGET message.
buf | Buffer to prepare |
layer | Layer to query configuration for |
offset | Start value offset for query |
|
inlinestatic |
#include <infuse/gnss/ubx/cfg.h>
Helper to prepare the common CFG-VALSET message.
buf | Buffer to prepare |
layers | Layers to set configuration values on |