Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions | Static Public Member Functions
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 ( 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 ( )
overridedefault

Destructor.

Member Function Documentation

void initialize ( )
overridevirtual
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.
void terminate ( )
overridevirtual
uint16_t write ( uint8_t  type,
uint16_t  len,
uint8_t *  pData 
)
overridevirtual
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.