_i2c_handle Struct Reference

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_tp_dmatx
 
dma_handle_tp_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]
 

Detailed Description

I2C handle Structure definition.

Field Documentation

◆ error_code

__IO uint32_t _i2c_handle::error_code

I2C Error code

◆ init

i2c_init_t _i2c_handle::init

I2C communication parameters

◆ lock

hal_lock_t _i2c_handle::lock

I2C locking object

◆ master_ack_count

__IO uint16_t _i2c_handle::master_ack_count

I2C master acknowledge counter in master receive progress

◆ mode

__IO hal_i2c_mode_t _i2c_handle::mode

I2C communication mode

◆ p_buffer

uint8_t* _i2c_handle::p_buffer

Pointer to I2C transfer buffer

◆ p_dmarx

dma_handle_t* _i2c_handle::p_dmarx

I2C Rx DMA handle parameters

◆ p_dmatx

dma_handle_t* _i2c_handle::p_dmatx

I2C Tx DMA handle parameters

◆ p_instance

i2c_regs_t* _i2c_handle::p_instance

I2C registers base address

◆ previous_state

__IO uint32_t _i2c_handle::previous_state

I2C communication Previous state

◆ retention

uint32_t _i2c_handle::retention[10]

I2C important register information.

◆ state

__IO hal_i2c_state_t _i2c_handle::state

I2C communication state

◆ xfer_count

__IO uint16_t _i2c_handle::xfer_count

I2C transfer counter

◆ xfer_isr

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

◆ xfer_options

__IO uint32_t _i2c_handle::xfer_options

I2C sequantial transfer options, this parameter can be a value of I2C Sequential Transfer Options

◆ xfer_size

uint16_t _i2c_handle::xfer_size

I2C transfer size


The documentation for this struct was generated from the following file: