[][src]Struct stm32f429i_disc::serial::Serial

pub struct Serial<USART, PINS> { /* fields omitted */ }

Serial abstraction

Methods

impl<PINS> Serial<USART1, PINS>[src]

pub fn usart1(
    usart: USART1,
    pins: PINS,
    config: Config,
    clocks: Clocks
) -> Result<Serial<USART1, PINS>, InvalidConfig> where
    PINS: Pins<USART1>, 
[src]

pub fn listen(&mut self, event: Event)[src]

Starts listening for an interrupt event

pub fn unlisten(&mut self, event: Event)[src]

Stop listening for an interrupt event

pub fn is_idle(&self) -> bool[src]

Return true if the line idle status is set

pub fn is_txe(&self) -> bool[src]

Return true if the tx register is empty (and can accept data)

pub fn is_rxne(&self) -> bool[src]

Return true if the rx register is not empty (and can be read)

pub fn split(self) -> (Tx<USART1>, Rx<USART1>)[src]

pub fn release(self) -> (USART1, PINS)[src]

impl<PINS> Serial<USART2, PINS>[src]

pub fn usart2(
    usart: USART2,
    pins: PINS,
    config: Config,
    clocks: Clocks
) -> Result<Serial<USART2, PINS>, InvalidConfig> where
    PINS: Pins<USART2>, 
[src]

pub fn listen(&mut self, event: Event)[src]

Starts listening for an interrupt event

pub fn unlisten(&mut self, event: Event)[src]

Stop listening for an interrupt event

pub fn is_idle(&self) -> bool[src]

Return true if the line idle status is set

pub fn is_txe(&self) -> bool[src]

Return true if the tx register is empty (and can accept data)

pub fn is_rxne(&self) -> bool[src]

Return true if the rx register is not empty (and can be read)

pub fn split(self) -> (Tx<USART2>, Rx<USART2>)[src]

pub fn release(self) -> (USART2, PINS)[src]

impl<PINS> Serial<USART6, PINS>[src]

pub fn usart6(
    usart: USART6,
    pins: PINS,
    config: Config,
    clocks: Clocks
) -> Result<Serial<USART6, PINS>, InvalidConfig> where
    PINS: Pins<USART6>, 
[src]

pub fn listen(&mut self, event: Event)[src]

Starts listening for an interrupt event

pub fn unlisten(&mut self, event: Event)[src]

Stop listening for an interrupt event

pub fn is_idle(&self) -> bool[src]

Return true if the line idle status is set

pub fn is_txe(&self) -> bool[src]

Return true if the tx register is empty (and can accept data)

pub fn is_rxne(&self) -> bool[src]

Return true if the rx register is not empty (and can be read)

pub fn split(self) -> (Tx<USART6>, Rx<USART6>)[src]

pub fn release(self) -> (USART6, PINS)[src]

impl<PINS> Serial<USART3, PINS>[src]

pub fn usart3(
    usart: USART3,
    pins: PINS,
    config: Config,
    clocks: Clocks
) -> Result<Serial<USART3, PINS>, InvalidConfig> where
    PINS: Pins<USART3>, 
[src]

pub fn listen(&mut self, event: Event)[src]

Starts listening for an interrupt event

pub fn unlisten(&mut self, event: Event)[src]

Stop listening for an interrupt event

pub fn is_idle(&self) -> bool[src]

Return true if the line idle status is set

pub fn is_txe(&self) -> bool[src]

Return true if the tx register is empty (and can accept data)

pub fn is_rxne(&self) -> bool[src]

Return true if the rx register is not empty (and can be read)

pub fn split(self) -> (Tx<USART3>, Rx<USART3>)[src]

pub fn release(self) -> (USART3, PINS)[src]

impl<PINS> Serial<UART4, PINS>[src]

pub fn uart4(
    usart: UART4,
    pins: PINS,
    config: Config,
    clocks: Clocks
) -> Result<Serial<UART4, PINS>, InvalidConfig> where
    PINS: Pins<UART4>, 
[src]

pub fn listen(&mut self, event: Event)[src]

Starts listening for an interrupt event

pub fn unlisten(&mut self, event: Event)[src]

Stop listening for an interrupt event

pub fn is_idle(&self) -> bool[src]

Return true if the line idle status is set

pub fn is_txe(&self) -> bool[src]

Return true if the tx register is empty (and can accept data)

pub fn is_rxne(&self) -> bool[src]

Return true if the rx register is not empty (and can be read)

pub fn split(self) -> (Tx<UART4>, Rx<UART4>)[src]

pub fn release(self) -> (UART4, PINS)[src]

impl<PINS> Serial<UART5, PINS>[src]

pub fn uart5(
    usart: UART5,
    pins: PINS,
    config: Config,
    clocks: Clocks
) -> Result<Serial<UART5, PINS>, InvalidConfig> where
    PINS: Pins<UART5>, 
[src]

pub fn listen(&mut self, event: Event)[src]

Starts listening for an interrupt event

pub fn unlisten(&mut self, event: Event)[src]

Stop listening for an interrupt event

pub fn is_idle(&self) -> bool[src]

Return true if the line idle status is set

pub fn is_txe(&self) -> bool[src]

Return true if the tx register is empty (and can accept data)

pub fn is_rxne(&self) -> bool[src]

Return true if the rx register is not empty (and can be read)

pub fn split(self) -> (Tx<UART5>, Rx<UART5>)[src]

pub fn release(self) -> (UART5, PINS)[src]

impl<PINS> Serial<UART7, PINS>[src]

pub fn uart7(
    usart: UART7,
    pins: PINS,
    config: Config,
    clocks: Clocks
) -> Result<Serial<UART7, PINS>, InvalidConfig> where
    PINS: Pins<UART7>, 
[src]

pub fn listen(&mut self, event: Event)[src]

Starts listening for an interrupt event

pub fn unlisten(&mut self, event: Event)[src]

Stop listening for an interrupt event

pub fn is_idle(&self) -> bool[src]

Return true if the line idle status is set

pub fn is_txe(&self) -> bool[src]

Return true if the tx register is empty (and can accept data)

pub fn is_rxne(&self) -> bool[src]

Return true if the rx register is not empty (and can be read)

pub fn split(self) -> (Tx<UART7>, Rx<UART7>)[src]

pub fn release(self) -> (UART7, PINS)[src]

impl<PINS> Serial<UART8, PINS>[src]

pub fn uart8(
    usart: UART8,
    pins: PINS,
    config: Config,
    clocks: Clocks
) -> Result<Serial<UART8, PINS>, InvalidConfig> where
    PINS: Pins<UART8>, 
[src]

pub fn listen(&mut self, event: Event)[src]

Starts listening for an interrupt event

pub fn unlisten(&mut self, event: Event)[src]

Stop listening for an interrupt event

pub fn is_idle(&self) -> bool[src]

Return true if the line idle status is set

pub fn is_txe(&self) -> bool[src]

Return true if the tx register is empty (and can accept data)

pub fn is_rxne(&self) -> bool[src]

Return true if the rx register is not empty (and can be read)

pub fn split(self) -> (Tx<UART8>, Rx<UART8>)[src]

pub fn release(self) -> (UART8, PINS)[src]

Trait Implementations

impl<PINS> Read<u8> for Serial<UART4, PINS>[src]

type Error = Error

Read error

impl<PINS> Read<u8> for Serial<USART6, PINS>[src]

type Error = Error

Read error

impl<PINS> Read<u8> for Serial<USART3, PINS>[src]

type Error = Error

Read error

impl<PINS> Read<u8> for Serial<USART2, PINS>[src]

type Error = Error

Read error

impl<PINS> Read<u8> for Serial<USART1, PINS>[src]

type Error = Error

Read error

impl<PINS> Read<u8> for Serial<UART5, PINS>[src]

type Error = Error

Read error

impl<PINS> Read<u8> for Serial<UART8, PINS>[src]

type Error = Error

Read error

impl<PINS> Read<u8> for Serial<UART7, PINS>[src]

type Error = Error

Read error

impl<PINS> Write<u8> for Serial<UART7, PINS>[src]

type Error = Error

Write error

impl<PINS> Write<u8> for Serial<USART3, PINS>[src]

type Error = Error

Write error

impl<PINS> Write<u8> for Serial<UART8, PINS>[src]

type Error = Error

Write error

impl<PINS> Write<u8> for Serial<UART5, PINS>[src]

type Error = Error

Write error

impl<PINS> Write<u8> for Serial<UART4, PINS>[src]

type Error = Error

Write error

impl<PINS> Write<u8> for Serial<USART2, PINS>[src]

type Error = Error

Write error

impl<PINS> Write<u8> for Serial<USART1, PINS>[src]

type Error = Error

Write error

impl<PINS> Write<u8> for Serial<USART6, PINS>[src]

type Error = Error

Write error

Auto Trait Implementations

impl<USART, PINS> Send for Serial<USART, PINS> where
    PINS: Send,
    USART: Send

impl<USART, PINS> Sync for Serial<USART, PINS> where
    PINS: Sync,
    USART: Sync

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self