[][src]Trait bluetooth_hci::host::uart::Hci

pub trait Hci<E, Vendor, VE>: Hci<E> {
    fn read(&mut self) -> Result<Packet<Vendor>, Error<E, VE>>
    where
        Vendor: VendorEvent<Error = VE>
; }

Trait for reading packets from the controller.

Implementors must also implement crate::host::Hci, which provides all of the functions to write commands to the controller. This trait adds the ability to read packets back from the controller.

Must be specialized for communication errors (E), vendor-specific events (Vendor), and vendor-specific errors (VE).

Required methods

fn read(&mut self) -> Result<Packet<Vendor>, Error<E, VE>> where
    Vendor: VendorEvent<Error = VE>, 

Reads and returns a packet from the controller. Consumes exactly enough bytes to read the next packet including its header.

Errors

Loading content...

Implementors

impl<E, Vendor, VE, T> Hci<E, Vendor, VE> for T where
    T: Controller<Error = E, Header = CommandHeader>, 
[src]

Loading content...