nrfcxx
0.1.0
C++-17 Framework for Nordic nRF5 Devices
|
Frame content for this beacon. More...
#include <nrfcxx/sd/beacon.hpp>
Data Fields | |
frame_prefix_s | prefix |
Common prefix for all infrastructure beacons. | |
uint16_t | pwr_mV |
Measured system power source voltage in millivolts. More... | |
uint32_t | adv_cnt |
Number of beacons sent since system reset or installation. More... | |
uint32_t | sec_cnt |
Time since system system reset or installation. More... | |
uint16_t | reset_cnt |
Low bits of a low-level ARM event counter. More... | |
uint16_t | sleep_n16 |
Relative time spent in sleep mode since reset. More... | |
uint16_t | radio_n16 |
Relative time spent with radio on since reset. More... | |
uint8_t | optional [0] |
Storage for optional content, presense indicated by the following flags, in this order: More... | |
Frame content for this beacon.
uint32_t nrfcxx::sd::TelemetryBeacon::frame_s::adv_cnt |
Number of beacons sent since system reset or installation.
This value is retained across controlled resets, and is compatible with the Eddystone ADV_CNT field.
uint8_t nrfcxx::sd::TelemetryBeacon::frame_s::optional[0] |
Storage for optional content, presense indicated by the following flags, in this order:
uint16_t nrfcxx::sd::TelemetryBeacon::frame_s::pwr_mV |
Measured system power source voltage in millivolts.
The value is intended to be compatible with the Eddystone VBATT field. As such, it should be zero on any device that is always mains-powered (FT_FLAG_MAINS_POWER). It should be non-zero on battery-powered devices that are connected to a charging power source.
uint16_t nrfcxx::sd::TelemetryBeacon::frame_s::radio_n16 |
Relative time spent with radio on since reset.
The value is interpreted as the numerator of a fraction with denominator 65536, and represents a multipler of the time since system reset (not power-up) to produce the time spent in a mode with systemState::OM_RADIO set. Values below 0.05% are expected in the steady state.
uint16_t nrfcxx::sd::TelemetryBeacon::frame_s::reset_cnt |
Low bits of a low-level ARM event counter.
This provides the low bits of systemState::wfe_count(), identifying activity that is hard to see in the duty cycle.
uint32_t nrfcxx::sd::TelemetryBeacon::frame_s::sec_cnt |
Time since system system reset or installation.
This value is maintained across controlled resets, and is compatible with the Eddystone SEC_CNT field.
uint16_t nrfcxx::sd::TelemetryBeacon::frame_s::sleep_n16 |
Relative time spent in sleep mode since reset.
The value is interpreted as the numerator of a fraction with denominator 65536, and represents a multipler of the time since system reset (not power-up) to produce the time spent in a mode with systemState::OM_SLEEP set. Values in excess of 99.5% are expected.