Skip to main content

UART_HandleTypeDef

Type Alias UART_HandleTypeDef 

Source
pub type UART_HandleTypeDef = __UART_HandleTypeDef;
Expand description

@brief UART handle Structure definition

Aliased Type§

#[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: u32, pub gState: u32, pub RxState: u32, pub ErrorCode: u32,
}

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: u32

< Locking object

§gState: u32

< 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: u32

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

§ErrorCode: u32

< UART Error code