pub type I2C_HandleTypeDef = __I2C_HandleTypeDef;Expand description
@defgroup I2C_handle_Structure_definition I2C handle Structure definition @brief I2C handle Structure definition @{
Aliased Type§
#[repr(C)]pub struct I2C_HandleTypeDef {Show 17 fields
pub Instance: *mut I2C_TypeDef,
pub Init: I2C_InitTypeDef,
pub pBuffPtr: *mut u8,
pub XferSize: u16,
pub XferCount: u16,
pub XferOptions: u32,
pub PreviousState: u32,
pub hdmatx: *mut __DMA_HandleTypeDef,
pub hdmarx: *mut __DMA_HandleTypeDef,
pub Lock: u32,
pub State: u32,
pub Mode: u32,
pub ErrorCode: u32,
pub Devaddress: u32,
pub Memaddress: u32,
pub MemaddSize: u32,
pub EventCount: u32,
}Fields§
§Instance: *mut I2C_TypeDef< I2C registers base address
Init: I2C_InitTypeDef< I2C communication parameters
pBuffPtr: *mut u8< Pointer to I2C transfer buffer
XferSize: u16< I2C transfer size
XferCount: u16< I2C transfer counter
XferOptions: u32< I2C transfer options
PreviousState: u32< I2C communication Previous state and mode context for internal usage
hdmatx: *mut __DMA_HandleTypeDef< I2C Tx DMA handle parameters
hdmarx: *mut __DMA_HandleTypeDef< I2C Rx DMA handle parameters
Lock: u32< I2C locking object
State: u32< I2C communication state
Mode: u32< I2C communication mode
ErrorCode: u32< I2C Error code
Devaddress: u32< I2C Target device address
Memaddress: u32< I2C Target memory address
MemaddSize: u32< I2C Target memory address size
EventCount: u32< I2C Event counter