GPS Device
Loading...
Searching...
No Matches
I2C_CFG_ts Struct Reference

Configuration structure for initializing an I2C peripheral. More...

#include <stm32f401re_i2c.h>

Collaboration diagram for I2C_CFG_ts:

Public Attributes

I2C_REGDEF_tsinstance
I2C_CLOCK_STRECH_te clock_strech
uint8_t address
I2C_SPEED_te speed

Detailed Description

Configuration structure for initializing an I2C peripheral.

Passed to i2c_init. The GPIO pins must be configured separately before calling i2c_init.

Definition at line 93 of file stm32f401re_i2c.h.

Member Data Documentation

◆ instance

I2C_REGDEF_ts* I2C_CFG_ts::instance

Pointer to the I2C peripheral instance (I2C1, I2C2, or I2C3).

Definition at line 95 of file stm32f401re_i2c.h.

◆ clock_strech

I2C_CLOCK_STRECH_te I2C_CFG_ts::clock_strech

Slave clock stretching configuration.

Definition at line 98 of file stm32f401re_i2c.h.

◆ address

uint8_t I2C_CFG_ts::address

Own 7-bit I2C address (used when operating as a slave). Set to 0 if the peripheral is used in master-only mode.

Definition at line 104 of file stm32f401re_i2c.h.

◆ speed

I2C_SPEED_te I2C_CFG_ts::speed

SCL bus speed. Determines CCR and TRISE register values.

Definition at line 107 of file stm32f401re_i2c.h.


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