Mbed OS Reference
Loading...
Searching...
No Matches
AP3CordioHCITransportDriver Class Reference
Inheritance diagram for AP3CordioHCITransportDriver:
CordioHCITransportDriver

Public Member Functions

virtual void initialize ()
 Inialization of the transport. More...
 
virtual void terminate ()
 termination of the transport. More...
 
virtual uint16_t write (uint8_t packet_type, uint16_t len, uint8_t *data)
 Write data in the transport channel. More...
 

Static Public Member Functions

static void on_data_received (uint8_t *data, uint16_t len)
 The driver shall call this function whenever data bytes are received. More...
 

Detailed Description

Definition at line 33 of file AP3CordioHCITransportDriver.h.

Member Function Documentation

◆ initialize()

virtual void initialize ( )
virtual

Inialization of the transport.

Implements CordioHCITransportDriver.

◆ terminate()

virtual void terminate ( )
virtual

termination of the transport.

Implements CordioHCITransportDriver.

◆ write()

virtual uint16_t write ( uint8_t  type,
uint16_t  len,
uint8_t *  pData 
)
virtual

Write data in the transport channel.

Parameters
typeThe type of packet to transmit. It might be an HCI command packet, ACL packet or EVT packet. Depending on the type of transport it can prefix the packet itself.
lenNumber of bytes to transmit.
pDataPointer to the data to transmit. This is an WSF buffer and if CORDIO_ZERO_COPY_HCI is enabled we receive ownership.
Returns
The number of bytes which have been transmited.

Implements CordioHCITransportDriver.

◆ on_data_received()

static void on_data_received ( uint8_t *  data,
uint16_t  len 
)
staticinherited

The driver shall call this function whenever data bytes are received.

Parameters
dataPointer to the data received.
lenNumber of bytes received.