Lines Matching refs:masterConfig
560 void I2C_MasterInit(I2C_Type *base, const i2c_master_config_t *masterConfig, uint32_t srcClock_Hz) in I2C_MasterInit() argument
562 assert(NULL != masterConfig); in I2C_MasterInit()
595 I2C_MasterSetBaudRate(base, masterConfig->baudRate_Bps, srcClock_Hz); in I2C_MasterInit()
603 fltReg |= I2C_FLT_SHEN(masterConfig->enableStopHold); in I2C_MasterInit()
608 fltReg |= I2C_FLT_FLT(masterConfig->glitchFilterWidth); in I2C_MasterInit()
614 base->C1 = I2C_C1_IICEN(masterConfig->enableMaster); in I2C_MasterInit()
619 base->S2 = s2Reg | I2C_S2_DFEN(masterConfig->enableDoubleBuffering); in I2C_MasterInit()
652 void I2C_MasterGetDefaultConfig(i2c_master_config_t *masterConfig) in I2C_MasterGetDefaultConfig() argument
654 assert(NULL != masterConfig); in I2C_MasterGetDefaultConfig()
657 (void)memset(masterConfig, 0, sizeof(*masterConfig)); in I2C_MasterGetDefaultConfig()
660 masterConfig->baudRate_Bps = 100000U; in I2C_MasterGetDefaultConfig()
664 masterConfig->enableStopHold = false; in I2C_MasterGetDefaultConfig()
668 masterConfig->glitchFilterWidth = 0U; in I2C_MasterGetDefaultConfig()
672 masterConfig->enableDoubleBuffering = true; in I2C_MasterGetDefaultConfig()
676 masterConfig->enableMaster = true; in I2C_MasterGetDefaultConfig()