__UART_HandleTypeDef

Struct __UART_HandleTypeDef 

Source
#[repr(C)]
pub struct __UART_HandleTypeDef {
Show 15 fields pub Instance: *mut USART_TypeDef, pub Init: UART_InitTypeDef, pub AdvancedInit: UART_AdvFeatureInitTypeDef, pub pTxBuffPtr: *mut u8, pub TxXferSize: u16, pub TxXferCount: u16, pub pRxBuffPtr: *mut u8, pub RxXferSize: u16, pub RxXferCount: u16, pub hdmatx: *mut DMA_HandleTypeDef, pub hdmarx: *mut DMA_HandleTypeDef, pub Lock: HAL_LockTypeDef, pub gState: HAL_UART_StateTypeDef, pub RxState: HAL_UART_StateTypeDef, pub ErrorCode: u32,
}
Expand description

@brief UART handle Structure definition

Fields§

§Instance: *mut USART_TypeDef

< UART registers base address

§Init: UART_InitTypeDef

< UART communication parameters

§AdvancedInit: UART_AdvFeatureInitTypeDef

< UART Advanced Features initialization parameters

§pTxBuffPtr: *mut u8

< Pointer to UART Tx transfer Buffer

§TxXferSize: u16

< UART Tx Transfer size

§TxXferCount: u16

< UART Tx Transfer Counter

§pRxBuffPtr: *mut u8

< Pointer to UART Rx transfer Buffer

§RxXferSize: u16

< UART Rx Transfer size

§RxXferCount: u16

< UART Rx Transfer Counter

§hdmatx: *mut DMA_HandleTypeDef

< UART Tx DMA Handle parameters

§hdmarx: *mut DMA_HandleTypeDef

< UART Rx DMA Handle parameters

§Lock: HAL_LockTypeDef

< Locking object

§gState: HAL_UART_StateTypeDef

< UART state information related to global Handle management and also related to Tx operations. This parameter can be a value of @ref HAL_UART_StateTypeDef

§RxState: HAL_UART_StateTypeDef

< UART state information related to Rx operations. This parameter can be a value of @ref HAL_UART_StateTypeDef

§ErrorCode: u32

< UART Error code

Trait Implementations§

Source§

impl Clone for __UART_HandleTypeDef

Source§

fn clone(&self) -> __UART_HandleTypeDef

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for __UART_HandleTypeDef

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for __UART_HandleTypeDef

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.