View Source BlueHeron.HCI.Transport.UART (blue_heron v0.5.3)
The objective of this HCI UART Transport Layer is to make it possible to use the Bluetooth HCI over a serial interface between two UARTs on the same PCB. The HCI UART Transport Layer assumes that the UART communication is free from line errors.
Reference: Version 5.0, Vol 4, Part A, 1
Summary
Functions
Returns a specification to start this module under a supervisor.
Flush buffers
Send binary ACL data
Send binary HCI data
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec flush(GenServer.server()) :: :ok
Flush buffers
@spec send_acl(GenServer.server(), binary()) :: :ok | {:error, term()}
Send binary ACL data
@spec send_command(GenServer.server(), binary()) :: :ok | {:error, term()}
Send binary HCI data