[−][src]Trait ublox_core::DeviceInterface
A method of communicating with the device
Associated Types
type InterfaceError
Interface associated error type
Required methods
fn fill(&mut self) -> usize
Fill up our buffer with unsolicited / periodic UBX messages. This function should be called before attempting to read. Returns the number of available bytes.
fn read(&mut self) -> Result<u8, Self::InterfaceError>
Read a single buffered byte.
Call fill
before calling this.
fn read_many(
&mut self,
buffer: &mut [u8]
) -> Result<usize, Self::InterfaceError>
&mut self,
buffer: &mut [u8]
) -> Result<usize, Self::InterfaceError>
Read multiple buffered bytes.
Call fill
before calling this.
Implementors
impl<SER, CommE> DeviceInterface for SerialInterface<SER> where
SER: Read<u8, Error = CommE>,
[src]
SER: Read<u8, Error = CommE>,
type InterfaceError = Error<CommE>
fn read(&mut self) -> Result<u8, Self::InterfaceError>
[src]
fn fill(&mut self) -> usize
[src]
fn read_many(
&mut self,
buffer: &mut [u8]
) -> Result<usize, Self::InterfaceError>
[src]
&mut self,
buffer: &mut [u8]
) -> Result<usize, Self::InterfaceError>