#[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: HAL_LockTypeDef,
pub State: HAL_I2C_StateTypeDef,
pub Mode: HAL_I2C_ModeTypeDef,
pub ErrorCode: u32,
pub Devaddress: u32,
pub Memaddress: u32,
pub MemaddSize: u32,
pub EventCount: u32,
}Expand description
@defgroup I2C_handle_Structure_definition I2C handle Structure definition @brief I2C handle Structure definition @{
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: HAL_LockTypeDef< I2C locking object
State: HAL_I2C_StateTypeDef< I2C communication state
Mode: HAL_I2C_ModeTypeDef< 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
Trait Implementations§
Source§impl Clone for __I2C_HandleTypeDef
impl Clone for __I2C_HandleTypeDef
Source§fn clone(&self) -> __I2C_HandleTypeDef
fn clone(&self) -> __I2C_HandleTypeDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for __I2C_HandleTypeDef
Auto Trait Implementations§
impl !Send for __I2C_HandleTypeDef
impl !Sync for __I2C_HandleTypeDef
impl Freeze for __I2C_HandleTypeDef
impl RefUnwindSafe for __I2C_HandleTypeDef
impl Unpin for __I2C_HandleTypeDef
impl UnsafeUnpin for __I2C_HandleTypeDef
impl UnwindSafe for __I2C_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