Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
TDF util APIs

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.
 

Detailed Description

Function Documentation

◆ tdf_bt_addr_le_from_stack()

static void tdf_bt_addr_le_from_stack ( const bt_addr_le_t * addr,
struct tdf_struct_bt_addr_le * tdf )
inlinestatic

#include <infuse/tdf/util.h>

Populate the TDF Bluetooth address from a Bluetooth stack structure.

Parameters
addrBluetooth stack address
tdfTDF address structure

◆ tdf_id_from_accelerometer_range()

static uint16_t tdf_id_from_accelerometer_range ( uint8_t range)
inlinestatic

#include <infuse/tdf/util.h>

Get TDF ID to use for given accelerometer full scale range.

Parameters
rangeMaximum data range in Gs
Returns
Appropriate TDF ID

◆ tdf_id_from_gyroscope_range()

static uint16_t tdf_id_from_gyroscope_range ( uint16_t range)
inlinestatic

#include <infuse/tdf/util.h>

Get TDF ID to use for given gyroscope full scale range.

Parameters
rangeMaximum data range in DPS
Returns
Appropriate TDF ID

◆ tdf_lte_conn_status_from_monitor()

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 )
inlinestatic

#include <infuse/tdf/util.h>

Populate the LTE connection status TDF from modem monitor information.

Parameters
network_stateModem monitor network state
tdfTDF state structure
rsrpReference signal received power (dBm) (INT16_MIN if unknown)
rsrqReference signal received quality (dB) (INT8_MIN if unknown)

◆ tdf_reboot_info_from_state()

static void tdf_reboot_info_from_state ( struct infuse_reboot_state * state,
struct tdf_reboot_info * info )
inlinestatic

#include <infuse/tdf/util.h>

Populate a REBOOT_INFO TDF from Infuse-IoT reboot state.

Parameters
stateInfuse-IoT reboot state pointer
infoREBOOT_INFO TDF pointer

◆ tdf_reboot_info_log()

static void tdf_reboot_info_log ( uint8_t logger_mask)
inlinestatic

#include <infuse/tdf/util.h>

Log REBOOT_INFO TDF to specified TDF data loggers.

TDF is populated from infuse_common_boot_last_reboot.

Parameters
logger_maskTDF data loggers to write to