_i2c_init Struct Reference

I2C Configuration Structure definition. More...

#include <hal_i2c.h>

Public Attributes

uint32_t speed
 
uint32_t own_address
 
uint32_t addressing_mode
 
uint32_t general_call_mode
 
uint32_t tx_hold_time
 
uint32_t rx_hold_time
 

Detailed Description

I2C Configuration Structure definition.

Definition at line 161 of file hal_i2c.h.

Member Data Documentation

◆ addressing_mode

uint32_t _i2c_init::addressing_mode

Specifies if 7-bit or 10-bit addressing mode is selected. This parameter can be a value of I2C Addressing Mode

Definition at line 169 of file hal_i2c.h.

◆ general_call_mode

uint32_t _i2c_init::general_call_mode

Specifies if general call mode is selected. This parameter can be a value of I2C General Call Addressing Mode

Definition at line 172 of file hal_i2c.h.

◆ own_address

uint32_t _i2c_init::own_address

Specifies the device own address. This parameter can be a 7-bit or 10-bit address.

Definition at line 166 of file hal_i2c.h.

◆ rx_hold_time

uint32_t _i2c_init::rx_hold_time

receive SDA hold time. the unit is ns

Definition at line 177 of file hal_i2c.h.

◆ speed

uint32_t _i2c_init::speed

Specifies the I2C transfer speed. This parameter can be a value of I2C Transfer Speed

Definition at line 163 of file hal_i2c.h.

◆ tx_hold_time

uint32_t _i2c_init::tx_hold_time

transmit SDA hold time. the unit is ns

Definition at line 175 of file hal_i2c.h.


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