Lines Matching refs:masterConfig
216 void I2C_MasterGetDefaultConfig(i2c_master_config_t *masterConfig) in I2C_MasterGetDefaultConfig() argument
219 (void)memset(masterConfig, 0, sizeof(*masterConfig)); in I2C_MasterGetDefaultConfig()
221 masterConfig->enableMaster = true; in I2C_MasterGetDefaultConfig()
222 masterConfig->baudRate_Bps = 100000U; in I2C_MasterGetDefaultConfig()
223 masterConfig->enableTimeout = false; in I2C_MasterGetDefaultConfig()
224 masterConfig->timeout_Ms = 35; in I2C_MasterGetDefaultConfig()
240 void I2C_MasterInit(I2C_Type *base, const i2c_master_config_t *masterConfig, uint32_t srcClock_Hz) in I2C_MasterInit() argument
243 I2C_MasterEnable(base, masterConfig->enableMaster); in I2C_MasterInit()
244 I2C_MasterSetBaudRate(base, masterConfig->baudRate_Bps, srcClock_Hz); in I2C_MasterInit()
245 if (masterConfig->enableTimeout) in I2C_MasterInit()
253 I2C_MasterSetTimeoutValue(base, masterConfig->timeout_Ms, srcClock_Hz); in I2C_MasterInit()