Struct stm32f4xx_hal::serial::Tx
source · pub struct Tx<USART: CommonPins, WORD = u8> { /* private fields */ }
Expand description
Serial transmitter containing TX pin
Implementations§
Trait Implementations§
source§impl<UART> PeriAddress for Tx<UART, u8>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
UART: Deref<Target = <UART as Instance>::RegisterBlock> + Instance,
impl<UART> PeriAddress for Tx<UART, u8>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
UART: Deref<Target = <UART as Instance>::RegisterBlock> + Instance,
source§impl<UART, WORD> TxISR for Tx<UART, WORD>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
UART: Deref<Target = <UART as Instance>::RegisterBlock> + Instance,
impl<UART, WORD> TxISR for Tx<UART, WORD>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
UART: Deref<Target = <UART as Instance>::RegisterBlock> + Instance,
source§fn is_tx_empty(&self) -> bool
fn is_tx_empty(&self) -> bool
Return true if the tx register is empty (and can accept data)
source§impl<UART, WORD> TxListen for Tx<UART, WORD>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
UART: Deref<Target = <UART as Instance>::RegisterBlock> + Instance,
impl<UART, WORD> TxListen for Tx<UART, WORD>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
UART: Deref<Target = <UART as Instance>::RegisterBlock> + Instance,
source§impl<USART> Write<u16> for Tx<USART, u16>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
impl<USART> Write<u16> for Tx<USART, u16>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
Writes 9-bit words to the UART/USART
If the UART/USART was configured with WordLength::DataBits9
, the 9 least significant bits will
be transmitted and the other 7 bits will be ignored. Otherwise, the 8 least significant bits
will be transmitted and the other 8 bits will be ignored.
source§impl<UART> Write for Tx<UART>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
UART: Deref<Target = <UART as Instance>::RegisterBlock> + Instance,
impl<UART> Write for Tx<UART>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
UART: Deref<Target = <UART as Instance>::RegisterBlock> + Instance,
source§impl<USART> Write for Tx<USART, u8>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
impl<USART> Write for Tx<USART, u8>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
source§impl<USART> Write<u16> for Tx<USART, u16>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
impl<USART> Write<u16> for Tx<USART, u16>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
source§impl<USART> Write<u8> for Tx<USART, u8>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
impl<USART> Write<u8> for Tx<USART, u8>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
source§impl<USART> Write<u16> for Tx<USART, u16>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
impl<USART> Write<u16> for Tx<USART, u16>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
Writes 9-bit words to the UART/USART
If the UART/USART was configured with WordLength::DataBits9
, the 9 least significant bits will
be transmitted and the other 7 bits will be ignored. Otherwise, the 8 least significant bits
will be transmitted and the other 8 bits will be ignored.
source§impl<USART> Write<u8> for Tx<USART, u8>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
impl<USART> Write<u8> for Tx<USART, u8>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
USART: Deref<Target = <USART as Instance>::RegisterBlock> + Instance,
impl<UART, STREAM, const CHANNEL: u8> DMASet<STREAM, CHANNEL, MemoryToPeripheral> for Tx<UART>
Auto Trait Implementations§
impl<USART, WORD> RefUnwindSafe for Tx<USART, WORD>where
USART: RefUnwindSafe,
WORD: RefUnwindSafe,
<USART as SerialAsync>::Tx<PushPull>: RefUnwindSafe,
impl<USART, WORD> Send for Tx<USART, WORD>
impl<USART, WORD> Sync for Tx<USART, WORD>
impl<USART, WORD> Unpin for Tx<USART, WORD>
impl<USART, WORD> UnwindSafe for Tx<USART, WORD>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more