BlueToe
an alternative GATT/BLE implementation
Loading...
Searching...
No Matches
bluetoe::link_layer::connection_event_callback< T, Obj, RequiredTimeMS > Struct Template Reference

install a callback that will be called, when a connection event happened. More...

#include <bluetoe/link_layer/include/bluetoe/connection_event_callback.hpp>

Detailed Description

template<typename T, T & Obj, unsigned RequiredTimeMS = 0>
struct bluetoe::link_layer::connection_event_callback< T, Obj, RequiredTimeMS >

install a callback that will be called, when a connection event happened.

The intended use for this feature are cases, where the CPU is switched off and even the high priority ISR of the scheduled radio will not be served.

The parameter T have to be a class type with following none static member function:

void ll_connection_event_happend();

The template parameter RequiredTimeMS defines the minimum time available until the next connection event will happen. The callback is only called, if the given time is available. If the parameter is 0, the callback will be called on every connection event. The link layer will not use peripheral latency to increase the time between two connection events to reach the RequiredTimeMS.


The documentation for this struct was generated from the following file: