[][src]Trait avr_hal_generic::prelude::_embedded_hal_blocking_serial_Write

pub trait _embedded_hal_blocking_serial_Write<Word> {
    type Error;
    pub fn bwrite_all(&mut self, buffer: &[Word]) -> Result<(), Self::Error>;
pub fn bflush(&mut self) -> Result<(), Self::Error>; }

Write half of a serial interface (blocking variant)

Associated Types

type Error[src]

The type of error that can occur when writing

Loading content...

Required methods

pub fn bwrite_all(&mut self, buffer: &[Word]) -> Result<(), Self::Error>[src]

Writes a slice, blocking until everything has been written

An implementation can choose to buffer the write, returning Ok(()) after the complete slice has been written to a buffer, but before all words have been sent via the serial interface. To make sure that everything has been sent, call bflush after this function returns.

pub fn bflush(&mut self) -> Result<(), Self::Error>[src]

Block until the serial interface has sent all buffered words

Loading content...

Implementors

impl<S, Word> Write<Word> for S where
    Word: Clone,
    S: Default<Word>, 
[src]

type Error = <S as Write<Word>>::Error

Loading content...