BlueToe
an alternative GATT/BLE implementation
|
link layer implementation based on HCI More...
#include <bluetoe/hci/include/bluetoe/link_layer.hpp>
Public Member Functions | |
void | run (Server &) |
this function passes the CPU to the link layer implementation | |
bool | connection_parameter_update_request (std::uint16_t interval_min, std::uint16_t interval_max, std::uint16_t latency, std::uint16_t timeout) |
initiating the change of communication parameters of an established connection | |
void | disconnect () |
terminates the give connection | |
std::size_t | fill_l2cap_advertising_data (std::uint8_t *buffer, std::size_t buffer_size) const |
fills the given buffer with l2cap advertising payload | |
const bluetoe::link_layer::device_address & | local_address () const |
returns the own local device address | |
link layer implementation based on HCI
bool bluetoe::hci::link_layer< Server, Transport, Options >::connection_parameter_update_request | ( | std::uint16_t | interval_min, |
std::uint16_t | interval_max, | ||
std::uint16_t | latency, | ||
std::uint16_t | timeout | ||
) |
initiating the change of communication parameters of an established connection
If it was not possible to initiate the connection parameter update, the function returns false.
void bluetoe::hci::link_layer< Server, Transport, Options >::disconnect | ( | ) |
terminates the give connection
void bluetoe::hci::link_layer< Server, Transport, Options >::run | ( | Server & | ) |
this function passes the CPU to the link layer implementation
This function should return on certain events to alow user code to do usefull things. Details depend on the ScheduleRadio implemention.