View Source BlueHeron.HCI.Transport.UART (blue_heron v0.5.1)

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

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

flush(pid)

@spec flush(GenServer.server()) :: :ok

Flush buffers

send_acl(pid, acl)

@spec send_acl(GenServer.server(), binary()) :: :ok | {:error, term()}

Send binary ACL data

send_command(pid, command)

@spec send_command(GenServer.server(), binary()) :: :ok | {:error, term()}

Send binary HCI data

start_link(args)