Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_Handlers.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <ble/cs_Nordic.h>
13
14#include <cstdint>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
34// void crownstone_soc_evt_handler(uint32_t evt_id, void * p_context);
35
36void fds_evt_handler(const fds_evt_t* p_fds_evt);
37
38#ifdef __cplusplus
39}
40#endif
41
43public:
48 static void handleEvent(uint32_t event);
49
54 static void handleEventDecoupled(uint32_t event);
55};
56
58public:
63 static void handleEvent(const ble_evt_t* event);
64
69 static void handleEventDecoupled(const ble_evt_t* event);
70
71 static void handlePhyRequest(uint16_t connectionHandle, const ble_gap_evt_phy_update_request_t& request);
73 uint16_t connectionHandle, const ble_gap_evt_data_length_update_request_t& request);
74 static void handleMtuRequest(uint16_t connectionHandle, const ble_gatts_evt_exchange_mtu_request_t& request);
75 static void disconnect(uint16_t connectionHandle, uint8_t reason);
76};
77
79public:
84 static void handleEvent(const nrf_sdh_state_evt_t& event);
85};
Definition: cs_Handlers.h:57
static void handleEventDecoupled(const ble_evt_t *event)
Handle BLE events.
static void handlePhyRequest(uint16_t connectionHandle, const ble_gap_evt_phy_update_request_t &request)
static void handleEvent(const ble_evt_t *event)
Handle BLE events.
static void handleDataLengthRequest(uint16_t connectionHandle, const ble_gap_evt_data_length_update_request_t &request)
static void handleMtuRequest(uint16_t connectionHandle, const ble_gatts_evt_exchange_mtu_request_t &request)
static void disconnect(uint16_t connectionHandle, uint8_t reason)
Definition: cs_Handlers.h:78
static void handleEvent(const nrf_sdh_state_evt_t &event)
Handle SDH state events.
Definition: cs_Handlers.h:42
static void handleEvent(uint32_t event)
Handle SOC events.
static void handleEventDecoupled(uint32_t event)
Handle SOC events.
void fds_evt_handler(const fds_evt_t *p_fds_evt)
Function for dispatching a system event (not a BLE event).