I2C handle Structure definition. More...
#include <gr55xx_hal_i2c.h>
Data Fields | |
i2c_regs_t * | p_instance |
i2c_init_t | init |
uint8_t * | p_buffer |
uint16_t | xfer_size |
__IO uint16_t | xfer_count |
__IO uint16_t | master_ack_count |
__IO uint32_t | xfer_options |
__IO uint32_t | previous_state |
hal_status_t(* | xfer_isr )(struct _i2c_handle *p_i2c, uint32_t it_source, uint32_t abort_sources) |
dma_handle_t * | p_dmatx |
dma_handle_t * | p_dmarx |
hal_lock_t | lock |
__IO hal_i2c_state_t | state |
__IO hal_i2c_mode_t | mode |
__IO uint32_t | error_code |
uint32_t | retention [10] |
I2C handle Structure definition.
__IO uint32_t _i2c_handle::error_code |
I2C Error code
i2c_init_t _i2c_handle::init |
I2C communication parameters
hal_lock_t _i2c_handle::lock |
I2C locking object
__IO uint16_t _i2c_handle::master_ack_count |
I2C master acknowledge counter in master receive progress
__IO hal_i2c_mode_t _i2c_handle::mode |
I2C communication mode
uint8_t* _i2c_handle::p_buffer |
Pointer to I2C transfer buffer
dma_handle_t* _i2c_handle::p_dmarx |
I2C Rx DMA handle parameters
dma_handle_t* _i2c_handle::p_dmatx |
I2C Tx DMA handle parameters
i2c_regs_t* _i2c_handle::p_instance |
I2C registers base address
__IO uint32_t _i2c_handle::previous_state |
I2C communication Previous state
uint32_t _i2c_handle::retention[10] |
I2C important register information.
__IO hal_i2c_state_t _i2c_handle::state |
I2C communication state
__IO uint16_t _i2c_handle::xfer_count |
I2C transfer counter
hal_status_t(* _i2c_handle::xfer_isr) (struct _i2c_handle *p_i2c, uint32_t it_source, uint32_t abort_sources) |
I2C transfer IRQ handler function pointer
__IO uint32_t _i2c_handle::xfer_options |
I2C sequantial transfer options, this parameter can be a value of I2C Sequential Transfer Options
uint16_t _i2c_handle::xfer_size |
I2C transfer size