[−][src]Struct stm32f429i_disc::serial::Serial
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]
usart: USART1,
pins: PINS,
config: Config,
clocks: Clocks
) -> Result<Serial<USART1, PINS>, InvalidConfig> where
PINS: Pins<USART1>,
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]
usart: USART2,
pins: PINS,
config: Config,
clocks: Clocks
) -> Result<Serial<USART2, PINS>, InvalidConfig> where
PINS: Pins<USART2>,
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]
usart: USART6,
pins: PINS,
config: Config,
clocks: Clocks
) -> Result<Serial<USART6, PINS>, InvalidConfig> where
PINS: Pins<USART6>,
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]
usart: USART3,
pins: PINS,
config: Config,
clocks: Clocks
) -> Result<Serial<USART3, PINS>, InvalidConfig> where
PINS: Pins<USART3>,
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]
usart: UART4,
pins: PINS,
config: Config,
clocks: Clocks
) -> Result<Serial<UART4, PINS>, InvalidConfig> where
PINS: Pins<UART4>,
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]
usart: UART5,
pins: PINS,
config: Config,
clocks: Clocks
) -> Result<Serial<UART5, PINS>, InvalidConfig> where
PINS: Pins<UART5>,
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]
usart: UART7,
pins: PINS,
config: Config,
clocks: Clocks
) -> Result<Serial<UART7, PINS>, InvalidConfig> where
PINS: Pins<UART7>,
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]
usart: UART8,
pins: PINS,
config: Config,
clocks: Clocks
) -> Result<Serial<UART8, PINS>, InvalidConfig> where
PINS: Pins<UART8>,
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]
impl<PINS> Read<u8> for Serial<USART6, PINS>
[src]
impl<PINS> Read<u8> for Serial<USART3, PINS>
[src]
impl<PINS> Read<u8> for Serial<USART2, PINS>
[src]
impl<PINS> Read<u8> for Serial<USART1, PINS>
[src]
impl<PINS> Read<u8> for Serial<UART5, PINS>
[src]
impl<PINS> Read<u8> for Serial<UART8, PINS>
[src]
impl<PINS> Read<u8> for Serial<UART7, PINS>
[src]
impl<PINS> Write<u8> for Serial<UART7, PINS>
[src]
type Error = Error
Write error
fn flush(
&mut self
) -> Result<(), Error<<Serial<UART7, PINS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<Serial<UART7, PINS> as Write<u8>>::Error>>
fn write(
&mut self,
byte: u8
) -> Result<(), Error<<Serial<UART7, PINS> as Write<u8>>::Error>>
[src]
&mut self,
byte: u8
) -> Result<(), Error<<Serial<UART7, PINS> as Write<u8>>::Error>>
impl<PINS> Write<u8> for Serial<USART3, PINS>
[src]
type Error = Error
Write error
fn flush(
&mut self
) -> Result<(), Error<<Serial<USART3, PINS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<Serial<USART3, PINS> as Write<u8>>::Error>>
fn write(
&mut self,
byte: u8
) -> Result<(), Error<<Serial<USART3, PINS> as Write<u8>>::Error>>
[src]
&mut self,
byte: u8
) -> Result<(), Error<<Serial<USART3, PINS> as Write<u8>>::Error>>
impl<PINS> Write<u8> for Serial<UART8, PINS>
[src]
type Error = Error
Write error
fn flush(
&mut self
) -> Result<(), Error<<Serial<UART8, PINS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<Serial<UART8, PINS> as Write<u8>>::Error>>
fn write(
&mut self,
byte: u8
) -> Result<(), Error<<Serial<UART8, PINS> as Write<u8>>::Error>>
[src]
&mut self,
byte: u8
) -> Result<(), Error<<Serial<UART8, PINS> as Write<u8>>::Error>>
impl<PINS> Write<u8> for Serial<UART5, PINS>
[src]
type Error = Error
Write error
fn flush(
&mut self
) -> Result<(), Error<<Serial<UART5, PINS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<Serial<UART5, PINS> as Write<u8>>::Error>>
fn write(
&mut self,
byte: u8
) -> Result<(), Error<<Serial<UART5, PINS> as Write<u8>>::Error>>
[src]
&mut self,
byte: u8
) -> Result<(), Error<<Serial<UART5, PINS> as Write<u8>>::Error>>
impl<PINS> Write<u8> for Serial<UART4, PINS>
[src]
type Error = Error
Write error
fn flush(
&mut self
) -> Result<(), Error<<Serial<UART4, PINS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<Serial<UART4, PINS> as Write<u8>>::Error>>
fn write(
&mut self,
byte: u8
) -> Result<(), Error<<Serial<UART4, PINS> as Write<u8>>::Error>>
[src]
&mut self,
byte: u8
) -> Result<(), Error<<Serial<UART4, PINS> as Write<u8>>::Error>>
impl<PINS> Write<u8> for Serial<USART2, PINS>
[src]
type Error = Error
Write error
fn flush(
&mut self
) -> Result<(), Error<<Serial<USART2, PINS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<Serial<USART2, PINS> as Write<u8>>::Error>>
fn write(
&mut self,
byte: u8
) -> Result<(), Error<<Serial<USART2, PINS> as Write<u8>>::Error>>
[src]
&mut self,
byte: u8
) -> Result<(), Error<<Serial<USART2, PINS> as Write<u8>>::Error>>
impl<PINS> Write<u8> for Serial<USART1, PINS>
[src]
type Error = Error
Write error
fn flush(
&mut self
) -> Result<(), Error<<Serial<USART1, PINS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<Serial<USART1, PINS> as Write<u8>>::Error>>
fn write(
&mut self,
byte: u8
) -> Result<(), Error<<Serial<USART1, PINS> as Write<u8>>::Error>>
[src]
&mut self,
byte: u8
) -> Result<(), Error<<Serial<USART1, PINS> as Write<u8>>::Error>>
impl<PINS> Write<u8> for Serial<USART6, PINS>
[src]
Auto Trait Implementations
impl<USART, PINS> Send for Serial<USART, PINS> where
PINS: Send,
USART: Send,
PINS: Send,
USART: Send,
impl<USART, PINS> Sync for Serial<USART, PINS> where
PINS: Sync,
USART: Sync,
PINS: Sync,
USART: Sync,
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self