|
GPS Device
|
Configuration structure for initializing an I2C peripheral. More...
#include <stm32f401re_i2c.h>

Public Attributes | |
| I2C_REGDEF_ts * | instance |
| I2C_CLOCK_STRECH_te | clock_strech |
| uint8_t | address |
| I2C_SPEED_te | speed |
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.
| 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.
| I2C_CLOCK_STRECH_te I2C_CFG_ts::clock_strech |
Slave clock stretching configuration.
Definition at line 98 of file stm32f401re_i2c.h.
| 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.
| 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.