nrfcxx
0.1.0
C++-17 Framework for Nordic nRF5 Devices
|
Go to the documentation of this file. 7 #ifndef NRFCXX_SD_BROADCASTER 8 #define NRFCXX_SD_BROADCASTER 231 const ble_version_t&
fwid ()
const 238 static void vdd_callback (uint16_t
vdd_mV);
241 void vdd_callback_ (uint16_t
vdd_mV);
244 ble_version_t fwid_{};
245 ble_gap_addr_t addr_{};
246 uint16_t vdd_mV_ = 0;
notifier_type make_setter(event_set::event_type bits) const
Construct a setter for the specified bits.
const ble_gap_addr_t & address() const
Reference the Bluetooth device address used in GAP.
Definition: broadcaster.hpp:224
static constexpr event_set::event_type EVT_VDD_UPDATED
Event set when Vdd_mV() has been updated.
Definition: broadcaster.hpp:93
Infrastructure supporting BLE beacons.
~Broadcaster()
stop() is invoked when broadcaster is destructed.
SystemStateBeacon sys_beacon
The owned system state beacon.
Definition: broadcaster.hpp:182
sensor::adc::vdd vdd_sensor
A sensor instance that collects Vdd information for TelemetryBeacon.
Definition: broadcaster.hpp:204
Infrastructure that starts and stops the soft device and provides a main event loop for the applicati...
Definition: broadcaster.hpp:45
event_set_copy wait_for_event()
Sleep until an event occurs.
Broadcaster(const systemState &cs)
Instantiate the broadcaster instance.
static constexpr event_set::event_type EVT_RADIO_OFF
Event set when the radio has turned off.
Definition: broadcaster.hpp:66
int ram_delta() const
Get the difference between required and available soft-device RAM.
Definition: broadcaster.hpp:218
Beacon providing application identification information.
Definition: beacon.hpp:1239
static constexpr event_set::event_type EVT_APP_BASE
Base event available for application use.
Definition: broadcaster.hpp:103
TelemetryBeacon tlm_beacon
The owned telemetry beacon.
Definition: broadcaster.hpp:185
A helper class for processing snapshot nrfcxx::event_set values.
Definition: core.hpp:654
ApplicationIdBeacon appid_beacon
The owned application identity beacon.
Definition: broadcaster.hpp:188
Specializations of nrfcxx::periph::ADC for common ADC operations.
void stop()
Stop the broadcast infrastructure.
The raw data supporting cross-reset state transfer.
Definition: core.hpp:993
static constexpr event_set::event_type EVT_RADIO_ON
Event set when the radio has turned on.
Definition: broadcaster.hpp:61
uint16_t vdd_mV() const
Return the most recently read system voltage.
Definition: broadcaster.hpp:176
Beacon providing telemetry information.
Definition: beacon.hpp:700
std::function< void()> notifier_type
Type used to hold a notifier.
Definition: core.hpp:514
A class supporting watchdog configuration and cross-reset retention of state.
Definition: core.hpp:853
static constexpr event_set::event_type EVT_SD
Event informing the application that a soft-device interrupt has occured.
Definition: broadcaster.hpp:56
Beacon providing system state information.
Definition: beacon.hpp:918
Primary header for nrfcxx interface dependencies.
unsigned int event_type
The type used to represent a (set of) event(s).
Definition: core.hpp:547
static constexpr event_set::event_type EVT_VDD_REQUIRED
Event set when the broadcaster requires an updated Vdd measurement.
Definition: broadcaster.hpp:86
ADC instance to measure board Vdd.
Definition: adc.hpp:27
static void state_setup(const systemState::state_type &ss, bool is_reset, bool retained)
Function to maintain broadcaster state across resets.
const ble_version_t & fwid() const
Reference the firmware version structure collected during start().
Definition: broadcaster.hpp:231
int start()
Start the broadcast infrastructure.
Primary namespace for nrfcxx functionality.
Definition: clock.hpp:17