Mbed OS Reference
Loading...
Searching...
No Matches
H4TransportDriver Class Reference

Implementation of the H4 driver. More...

#include <H4TransportDriver.h>

Inheritance diagram for H4TransportDriver:
CordioHCITransportDriver

Public Member Functions

 H4TransportDriver (PinName tx, PinName rx, PinName cts, PinName rts, int baud)
 Initialize the transport driver. More...
 
 ~H4TransportDriver () override=default
 Destructor. More...
 
void initialize () override
 
void terminate () override
 
uint16_t write (uint8_t type, uint16_t len, uint8_t *pData) override
 

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

Implementation of the H4 driver.

Note
This HCI transport implementation is not accessible to devices that do not expose serial flow control.

Definition at line 35 of file H4TransportDriver.h.

Constructor & Destructor Documentation

◆ H4TransportDriver()

H4TransportDriver ( PinName  tx,
PinName  rx,
PinName  cts,
PinName  rts,
int  baud 
)

Initialize the transport driver.

Parameters
txtx pin name.
rxrx pin name
ctscts pin name
rtsrts pin name.
baudbaud use to communicate with the ble module

◆ ~H4TransportDriver()

~H4TransportDriver ( )
overridedefault

Destructor.

Member Function Documentation

◆ initialize()

void initialize ( )
overridevirtual

◆ terminate()

void terminate ( )
overridevirtual

◆ write()

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

◆ 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.