18#ifndef IMPL_HCI_TRANSPORT_DRIVER_H_
19#define IMPL_HCI_TRANSPORT_DRIVER_H_
32 friend class CordioHCIHook;
62 virtual uint16_t
write(uint8_t type, uint16_t len, uint8_t *pData) = 0;
73 typedef void (*data_received_handler_t)(uint8_t* data, uint8_t len);
75 static data_received_handler_t data_received_handler;
77 static void set_data_received_handler(data_received_handler_t handler);
Base class of the HCI transport driver.
virtual ~CordioHCITransportDriver()=default
Driver destructor.
virtual void terminate()=0
termination of the transport.
static void on_data_received(uint8_t *data, uint16_t len)
The driver shall call this function whenever data bytes are received.
virtual void initialize()=0
Inialization of the transport.
virtual uint16_t write(uint8_t type, uint16_t len, uint8_t *pData)=0
Write data in the transport channel.
Entry namespace for all BLE API definitions.