Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_Handlers.h File Reference

System event handlers. More...

#include <ble/cs_Nordic.h>
#include <cstdint>
Include dependency graph for cs_Handlers.h:

Go to the source code of this file.

Classes

class  SocHandler
 
class  BleHandler
 
class  SdhStateHandler
 

Functions

void fds_evt_handler (const fds_evt_t *p_fds_evt)
 Function for dispatching a system event (not a BLE event). More...
 

Detailed Description

System event handlers.

Authors
Crownstone Team
Date
Apr 24, 2015 License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)

Function Documentation

◆ fds_evt_handler()

void fds_evt_handler ( const fds_evt_t *  p_fds_evt)

Function for dispatching a system event (not a BLE event).

This function to dispach a system events goes to all modules with a system event handler. This can also be events related to the radio, for example the NRF_EVT_RADIO_BLOCKED (4) and NRF_EVT_RADIO_SESSION_IDLE (7) events that are defined for the timeslot API.

Events are send to:

  • mesh: storage events and timeslot events (see above)
  • all: NRF_EVT_POWER_FAILURE_WARNING just before a brownout

This function is called from the scheduler in the main loop after a BLE stack event has been received.

Parameters
sys_evtSystem event.