BlueToe
an alternative GATT/BLE implementation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
bluetoe::hci::link_layer< Server, Transport, Options > Class Template Reference

link layer implementation based on HCI More...

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

Inheritance diagram for bluetoe::hci::link_layer< Server, Transport, Options >:

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_addresslocal_address () const
 returns the own local device address
 

Detailed Description

template<class Server, template< typename > class Transport, typename ... Options>
class bluetoe::hci::link_layer< Server, Transport, Options >

link layer implementation based on HCI

Member Function Documentation

◆ connection_parameter_update_request()

template<class Server , template< typename > class Transport, typename ... Options>
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.

Todo:
Add parameter that identifies the connection.

◆ disconnect()

template<class Server , template< typename > class Transport, typename ... Options>
void bluetoe::hci::link_layer< Server, Transport, Options >::disconnect ( )

terminates the give connection

Todo:
Add parameter that identifies the connection.

◆ run()

template<class Server , template< typename > class Transport, typename ... Options>
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.


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