I2C_Init_TypeDef Struct Reference
I2C initialization structure.
      
       #include <em_i2c.h>
      
     
         Data Fields | 
       |
| bool | enable | 
| 
         Enable I2C peripheral when initialization completed.
          | 
       |
| bool | master | 
| 
         Set to master (true) or slave (false) mode.
          | 
       |
| uint32_t | refFreq | 
| 
         I2C reference clock assumed when configuring bus frequency setup.
          | 
       |
| uint32_t | freq | 
| 
         (Max) I2C bus frequency to use.
          | 
       |
| I2C_ClockHLR_TypeDef | clhr | 
| 
         Clock low/high ratio control.
          | 
       |
I2C initialization structure.
Field Documentation
◆ enable
| bool I2C_Init_TypeDef::enable | 
Enable I2C peripheral when initialization completed.
◆ master
| bool I2C_Init_TypeDef::master | 
Set to master (true) or slave (false) mode.
◆ refFreq
| uint32_t I2C_Init_TypeDef::refFreq | 
I2C reference clock assumed when configuring bus frequency setup.
Set it to 0 if currently configured reference clock will be used This parameter is only applicable if operating in master mode.
◆ freq
| uint32_t I2C_Init_TypeDef::freq | 
(Max) I2C bus frequency to use.
This parameter is only applicable if operating in master mode.
◆ clhr
| I2C_ClockHLR_TypeDef I2C_Init_TypeDef::clhr | 
Clock low/high ratio control.