Mbed OS Reference
|
Implementation of the H4 driver. More...
#include <H4TransportDriver.h>
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... | |
Implementation of the H4 driver.
Definition at line 35 of file H4TransportDriver.h.
H4TransportDriver | ( | PinName | tx, |
PinName | rx, | ||
PinName | cts, | ||
PinName | rts, | ||
int | baud | ||
) |
Initialize the transport driver.
tx | tx pin name. |
rx | rx pin name |
cts | cts pin name |
rts | rts pin name. |
baud | baud use to communicate with the ble module |
|
overridedefault |
Destructor.
|
overridevirtual |
Implements CordioHCITransportDriver.
|
overridevirtual |
Implements CordioHCITransportDriver.
|
overridevirtual |
Implements CordioHCITransportDriver.
|
staticinherited |
The driver shall call this function whenever data bytes are received.
data | Pointer to the data received. |
len | Number of bytes received. |