#[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
impl Clone for __UART_HandleTypeDef
Source§fn clone(&self) -> __UART_HandleTypeDef
fn clone(&self) -> __UART_HandleTypeDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for __UART_HandleTypeDef
impl Debug for __UART_HandleTypeDef
impl Copy for __UART_HandleTypeDef
Auto Trait Implementations§
impl Freeze for __UART_HandleTypeDef
impl RefUnwindSafe for __UART_HandleTypeDef
impl !Send for __UART_HandleTypeDef
impl !Sync for __UART_HandleTypeDef
impl Unpin for __UART_HandleTypeDef
impl UnwindSafe for __UART_HandleTypeDef
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