Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Functions | |
static uint16_t | tdf_id_from_accelerometer_range (uint8_t range) |
Get TDF ID to use for given accelerometer full scale range. | |
static uint16_t | tdf_id_from_gyroscope_range (uint16_t range) |
Get TDF ID to use for given gyroscope full scale range. | |
static void | tdf_reboot_info_from_state (struct infuse_reboot_state *state, struct tdf_reboot_info *info) |
Populate a REBOOT_INFO TDF from Infuse-IoT reboot state. | |
static void | tdf_bt_addr_le_from_stack (const bt_addr_le_t *addr, struct tdf_struct_bt_addr_le *tdf) |
Populate the TDF Bluetooth address from a Bluetooth stack structure. | |
static void | tdf_lte_conn_status_from_monitor (struct nrf_modem_network_state *network_state, struct tdf_lte_conn_status *tdf, int16_t rsrp, int8_t rsrq) |
Populate the LTE connection status TDF from modem monitor information. | |
static void | tdf_reboot_info_log (uint8_t logger_mask) |
Log REBOOT_INFO TDF to specified TDF data loggers. | |
|
inlinestatic |
#include <infuse/tdf/util.h>
Populate the TDF Bluetooth address from a Bluetooth stack structure.
addr | Bluetooth stack address |
tdf | TDF address structure |
|
inlinestatic |
#include <infuse/tdf/util.h>
Get TDF ID to use for given accelerometer full scale range.
range | Maximum data range in Gs |
|
inlinestatic |
#include <infuse/tdf/util.h>
Get TDF ID to use for given gyroscope full scale range.
range | Maximum data range in DPS |
|
inlinestatic |
#include <infuse/tdf/util.h>
Populate the LTE connection status TDF from modem monitor information.
network_state | Modem monitor network state |
tdf | TDF state structure |
rsrp | Reference signal received power (dBm) (INT16_MIN if unknown) |
rsrq | Reference signal received quality (dB) (INT8_MIN if unknown) |
|
inlinestatic |
#include <infuse/tdf/util.h>
Populate a REBOOT_INFO TDF from Infuse-IoT reboot state.
state | Infuse-IoT reboot state pointer |
info | REBOOT_INFO TDF pointer |
|
inlinestatic |
#include <infuse/tdf/util.h>
Log REBOOT_INFO TDF to specified TDF data loggers.
TDF is populated from infuse_common_boot_last_reboot.
logger_mask | TDF data loggers to write to |