Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
util.h File Reference

Utility TDF helpers. More...

#include <stdint.h>
#include <string.h>
#include <zephyr/bluetooth/addr.h>
#include <infuse/data_logger/high_level/tdf.h>
#include <infuse/tdf/definitions.h>
#include <infuse/reboot.h>
#include <infuse/common_boot.h>
#include <infuse/time/epoch.h>
#include <infuse/fs/kv_store.h>
#include <infuse/fs/kv_types.h>
#include <infuse/lib/nrf_modem_monitor.h>

Go to the source code of this file.

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

Utility TDF helpers.

Author
Jordan Yates jorda.nosp@m.n@em.nosp@m.beint.nosp@m..com

SPDX-License-Identifier: FSL-1.1-ALv2