Home
last modified time | relevance | path

Searched refs:masterConfig (Results 1 – 25 of 56) sorted by relevance

123

/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/dspi/
Dfsl_dspi.c200 void DSPI_MasterInit(SPI_Type *base, const dspi_master_config_t *masterConfig, uint32_t srcClock_Hz) in DSPI_MasterInit() argument
202 assert(NULL != masterConfig); in DSPI_MasterInit()
213 DSPI_SetOnePcsPolarity(base, masterConfig->whichPcs, masterConfig->pcsActiveHighOrLow); in DSPI_MasterInit()
219 base->MCR = temp | SPI_MCR_CONT_SCKE(masterConfig->enableContinuousSCK) | in DSPI_MasterInit()
220 SPI_MCR_MTFE(masterConfig->enableModifiedTimingFormat) | in DSPI_MasterInit()
221 … SPI_MCR_ROOE(masterConfig->enableRxFifoOverWrite) | SPI_MCR_SMPL_PT(masterConfig->samplePoint) | in DSPI_MasterInit()
224 …if (0U == DSPI_MasterSetBaudRate(base, masterConfig->whichCtar, masterConfig->ctarConfig.baudRate,… in DSPI_MasterInit()
229 temp = base->CTAR[masterConfig->whichCtar] & in DSPI_MasterInit()
232 …base->CTAR[masterConfig->whichCtar] = temp | SPI_CTAR_FMSZ(masterConfig->ctarConfig.bitsPerFrame -… in DSPI_MasterInit()
233 SPI_CTAR_CPOL(masterConfig->ctarConfig.cpol) | in DSPI_MasterInit()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/lpflexcomm/lpspi/
Dfsl_lpspi.c197 void LPSPI_MasterInit(LPSPI_Type *base, const lpspi_master_config_t *masterConfig, uint32_t srcCloc… in LPSPI_MasterInit() argument
199 assert(masterConfig != NULL); in LPSPI_MasterInit()
240 LPSPI_SetOnePcsPolarity(base, masterConfig->whichPcs, masterConfig->pcsActiveHighOrLow); in LPSPI_MasterInit()
245 … LPSPI_CFGR1_OUTCFG(masterConfig->dataOutConfig) | LPSPI_CFGR1_PINCFG(masterConfig->pinCfg) | in LPSPI_MasterInit()
246 … LPSPI_CFGR1_NOSTALL(0) | LPSPI_CFGR1_SAMPLE((uint32_t)masterConfig->enableInputDelay )| in LPSPI_MasterInit()
247 LPSPI_CFGR1_PCSCFG(masterConfig->pcsFunc); in LPSPI_MasterInit()
250 (void)LPSPI_MasterSetBaudRate(base, masterConfig->baudRate, srcClock_Hz, &tcrPrescaleValue); in LPSPI_MasterInit()
256 base->TCR = LPSPI_TCR_CPOL(masterConfig->cpol) | LPSPI_TCR_CPHA(masterConfig->cpha) | in LPSPI_MasterInit()
257 … LPSPI_TCR_LSBF(masterConfig->direction) | LPSPI_TCR_FRAMESZ(masterConfig->bitsPerFrame - 1U) | in LPSPI_MasterInit()
258 LPSPI_TCR_PRESCALE(tcrPrescaleValue) | LPSPI_TCR_PCS(masterConfig->whichPcs); in LPSPI_MasterInit()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/lpspi/
Dfsl_lpspi.c279 void LPSPI_MasterInit(LPSPI_Type *base, const lpspi_master_config_t *masterConfig, uint32_t srcCloc… in LPSPI_MasterInit() argument
281 assert(masterConfig != NULL); in LPSPI_MasterInit()
313 LPSPI_SetOnePcsPolarity(base, masterConfig->whichPcs, masterConfig->pcsActiveHighOrLow); in LPSPI_MasterInit()
318 … LPSPI_CFGR1_OUTCFG(masterConfig->dataOutConfig) | LPSPI_CFGR1_PINCFG(masterConfig->pinCfg) | in LPSPI_MasterInit()
320 LPSPI_CFGR1_PCSCFG(masterConfig->pcsFunc) | in LPSPI_MasterInit()
322 … LPSPI_CFGR1_NOSTALL(0) | LPSPI_CFGR1_SAMPLE((uint32_t)masterConfig->enableInputDelay); in LPSPI_MasterInit()
324 … if ((masterConfig->pinCfg == kLPSPI_SdiInSdiOut) || (masterConfig->pinCfg == kLPSPI_SdoInSdoOut)) in LPSPI_MasterInit()
329 (void)LPSPI_MasterSetBaudRate(base, masterConfig->baudRate, srcClock_Hz, &tcrPrescaleValue); in LPSPI_MasterInit()
335 base->TCR = LPSPI_TCR_CPOL(masterConfig->cpol) | LPSPI_TCR_CPHA(masterConfig->cpha) | in LPSPI_MasterInit()
336 … LPSPI_TCR_LSBF(masterConfig->direction) | LPSPI_TCR_FRAMESZ(masterConfig->bitsPerFrame - 1U) | in LPSPI_MasterInit()
[all …]
Dfsl_lpspi_freertos.c38 const lpspi_master_config_t *masterConfig, in LPSPI_RTOS_Init() argument
68 LPSPI_MasterInit(handle->base, masterConfig, srcClock_Hz); in LPSPI_RTOS_Init()
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/lpflexcomm/lpi2c/
Dfsl_lpi2c.c332 void LPI2C_MasterGetDefaultConfig(lpi2c_master_config_t *masterConfig) in LPI2C_MasterGetDefaultConfig() argument
335 (void)memset(masterConfig, 0, sizeof(*masterConfig)); in LPI2C_MasterGetDefaultConfig()
337 masterConfig->enableMaster = true; in LPI2C_MasterGetDefaultConfig()
338 masterConfig->debugEnable = false; in LPI2C_MasterGetDefaultConfig()
339 masterConfig->enableDoze = true; in LPI2C_MasterGetDefaultConfig()
340 masterConfig->ignoreAck = false; in LPI2C_MasterGetDefaultConfig()
341 masterConfig->pinConfig = kLPI2C_2PinOpenDrain; in LPI2C_MasterGetDefaultConfig()
342 masterConfig->baudRate_Hz = 100000U; in LPI2C_MasterGetDefaultConfig()
343 masterConfig->busIdleTimeout_ns = 0U; /* Set to 0 to disable the function */ in LPI2C_MasterGetDefaultConfig()
344 masterConfig->pinLowTimeout_ns = 0U; /* Set to 0 to disable the function */ in LPI2C_MasterGetDefaultConfig()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/components/i3c_bus/
Dfsl_component_i3c_adapter.c204 i3c_config_t masterConfig; in I3C_MasterAdapterInit() local
205 I3C_GetDefaultConfig(&masterConfig); in I3C_MasterAdapterInit()
206 masterConfig.baudRate_Hz.i2cBaud = bus->i2cBaudRate; in I3C_MasterAdapterInit()
207 masterConfig.baudRate_Hz.i3cPushPullBaud = bus->i3cPushPullBaudRate; in I3C_MasterAdapterInit()
208 masterConfig.baudRate_Hz.i3cOpenDrainBaud = bus->i3cOpenDrainBaudRate; in I3C_MasterAdapterInit()
209 masterConfig.enableOpenDrainStop = false; in I3C_MasterAdapterInit()
210 masterConfig.masterDynamicAddress = master->info.dynamicAddr; in I3C_MasterAdapterInit()
211 masterConfig.maxWriteLength = master->info.maxWriteLength; in I3C_MasterAdapterInit()
212 masterConfig.maxReadLength = master->info.maxReadLength; in I3C_MasterAdapterInit()
213 masterConfig.staticAddr = master->info.staticAddr; in I3C_MasterAdapterInit()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/lpi2c/
Dfsl_lpi2c.c442 void LPI2C_MasterGetDefaultConfig(lpi2c_master_config_t *masterConfig) in LPI2C_MasterGetDefaultConfig() argument
445 (void)memset(masterConfig, 0, sizeof(*masterConfig)); in LPI2C_MasterGetDefaultConfig()
447 masterConfig->enableMaster = true; in LPI2C_MasterGetDefaultConfig()
448 masterConfig->debugEnable = false; in LPI2C_MasterGetDefaultConfig()
449 masterConfig->enableDoze = true; in LPI2C_MasterGetDefaultConfig()
450 masterConfig->ignoreAck = false; in LPI2C_MasterGetDefaultConfig()
451 masterConfig->pinConfig = kLPI2C_2PinOpenDrain; in LPI2C_MasterGetDefaultConfig()
452 masterConfig->baudRate_Hz = 100000U; in LPI2C_MasterGetDefaultConfig()
453 masterConfig->busIdleTimeout_ns = 0U; /* Set to 0 to disable the function */ in LPI2C_MasterGetDefaultConfig()
454 masterConfig->pinLowTimeout_ns = 0U; /* Set to 0 to disable the function */ in LPI2C_MasterGetDefaultConfig()
[all …]
Dfsl_lpi2c_freertos.c38 const lpi2c_master_config_t *masterConfig, in LPI2C_RTOS_Init() argument
68 LPI2C_MasterInit(handle->base, masterConfig, srcClock_Hz); in LPI2C_RTOS_Init()
/hal_nxp-3.7.0/mcux/mcux-sdk/cmsis_drivers/flexcomm/
Dfsl_spi_cmsis.c117 spi_master_config_t *masterConfig) in SPI_MasterCommonControl() argument
123 masterConfig->sselNum = RTE_SPI0_SSEL_NUM; in SPI_MasterCommonControl()
126 masterConfig->sselPol = RTE_SPI0_SSEL_POL; in SPI_MasterCommonControl()
132 masterConfig->sselNum = RTE_SPI1_SSEL_NUM; in SPI_MasterCommonControl()
135 masterConfig->sselPol = RTE_SPI1_SSEL_POL; in SPI_MasterCommonControl()
140 masterConfig->sselNum = RTE_SPI2_SSEL_NUM; in SPI_MasterCommonControl()
143 masterConfig->sselPol = RTE_SPI2_SSEL_POL; in SPI_MasterCommonControl()
149 masterConfig->sselNum = RTE_SPI3_SSEL_NUM; in SPI_MasterCommonControl()
152 masterConfig->sselPol = RTE_SPI3_SSEL_POL; in SPI_MasterCommonControl()
158 masterConfig->sselNum = RTE_SPI4_SSEL_NUM; in SPI_MasterCommonControl()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/cmsis_drivers/ecspi/
Dfsl_ecspi_cmsis.c106 ecspi_master_config_t *masterConfig) in ECSPI_MasterCommonControl() argument
134 masterConfig->channel = RTE_SPI1_TRANSFER_CHANNEL; in ECSPI_MasterCommonControl()
139 masterConfig->channel = RTE_SPI2_TRANSFER_CHANNEL; in ECSPI_MasterCommonControl()
144 masterConfig->channel = RTE_SPI3_TRANSFER_CHANNEL; in ECSPI_MasterCommonControl()
155 masterConfig->channelConfig.polarity = kECSPI_PolarityActiveHigh; in ECSPI_MasterCommonControl()
156 masterConfig->channelConfig.phase = kECSPI_ClockPhaseFirstEdge; in ECSPI_MasterCommonControl()
160 masterConfig->channelConfig.polarity = kECSPI_PolarityActiveHigh; in ECSPI_MasterCommonControl()
161 masterConfig->channelConfig.phase = kECSPI_ClockPhaseSecondEdge; in ECSPI_MasterCommonControl()
165 masterConfig->channelConfig.polarity = kECSPI_PolarityActiveLow; in ECSPI_MasterCommonControl()
166 masterConfig->channelConfig.phase = kECSPI_ClockPhaseFirstEdge; in ECSPI_MasterCommonControl()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/cmsis_drivers/lpspi/
Dfsl_lpspi_cmsis.c121 lpspi_master_config_t masterConfig; in LPSPI_CommonControl() local
122 LPSPI_MasterGetDefaultConfig(&masterConfig); in LPSPI_CommonControl()
127 masterConfig.baudRate = arg; in LPSPI_CommonControl()
131 masterConfig.pinCfg = kLPSPI_SdoInSdoOut; in LPSPI_CommonControl()
142 masterConfig.pcsToSckDelayInNanoSec = (uint32_t)RTE_SPI0_PCS_TO_SCK_DELAY; in LPSPI_CommonControl()
143 masterConfig.lastSckToPcsDelayInNanoSec = (uint32_t)RTE_SPI0_SCK_TO_PSC_DELAY; in LPSPI_CommonControl()
144 masterConfig.betweenTransferDelayInNanoSec = (uint32_t)RTE_SPI0_BETWEEN_TRANSFER_DELAY; in LPSPI_CommonControl()
152 masterConfig.pcsToSckDelayInNanoSec = (uint32_t)RTE_SPI1_PCS_TO_SCK_DELAY; in LPSPI_CommonControl()
153 masterConfig.lastSckToPcsDelayInNanoSec = (uint32_t)RTE_SPI1_SCK_TO_PSC_DELAY; in LPSPI_CommonControl()
154 masterConfig.betweenTransferDelayInNanoSec = (uint32_t)RTE_SPI1_BETWEEN_TRANSFER_DELAY; in LPSPI_CommonControl()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/components/codec/i2c/
Dfsl_codec_i2c.c32 hal_i2c_master_config_t masterConfig; in CODEC_I2C_Init() local
34 masterConfig.enableMaster = true; in CODEC_I2C_Init()
35 masterConfig.baudRate_Bps = i2cBaudrate; in CODEC_I2C_Init()
36 masterConfig.srcClock_Hz = i2cSourceClockHz; in CODEC_I2C_Init()
37 masterConfig.instance = (uint8_t)i2cInstance; in CODEC_I2C_Init()
39 return (status_t)HAL_I2cMasterInit((hal_i2c_master_handle_t *)handle, &masterConfig); in CODEC_I2C_Init()
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/flexio/spi/
Dfsl_flexio_spi.c223 void FLEXIO_SPI_MasterInit(FLEXIO_SPI_Type *base, flexio_spi_master_config_t *masterConfig, uint32_… in FLEXIO_SPI_MasterInit() argument
226 assert(masterConfig != NULL); in FLEXIO_SPI_MasterInit()
246 …ctrlReg |= (FLEXIO_CTRL_DBGE(masterConfig->enableInDebug) | FLEXIO_CTRL_FASTACC(masterConfig->enab… in FLEXIO_SPI_MasterInit()
247 FLEXIO_CTRL_FLEXEN(masterConfig->enableMaster)); in FLEXIO_SPI_MasterInit()
248 if (!masterConfig->enableInDoze) in FLEXIO_SPI_MasterInit()
263 if (masterConfig->phase == kFLEXIO_SPI_ClockPhaseFirstEdge) in FLEXIO_SPI_MasterInit()
287 if (masterConfig->phase == kFLEXIO_SPI_ClockPhaseFirstEdge) in FLEXIO_SPI_MasterInit()
314 timerDiv = (uint16_t)(srcClock_Hz / masterConfig->baudRate_Bps); in FLEXIO_SPI_MasterInit()
317 timerCmp = ((uint16_t)masterConfig->dataMode * 2U - 1U) << 8U; in FLEXIO_SPI_MasterInit()
374 void FLEXIO_SPI_MasterGetDefaultConfig(flexio_spi_master_config_t *masterConfig) in FLEXIO_SPI_MasterGetDefaultConfig() argument
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/cmsis_drivers/dspi/
Dfsl_dspi_cmsis.c124 dspi_master_config_t masterConfig; in DSPI_CommonControl() local
125 DSPI_MasterGetDefaultConfig(&masterConfig); in DSPI_CommonControl()
128 masterConfig.ctarConfig.baudRate = arg; in DSPI_CommonControl()
134 masterConfig.ctarConfig.pcsToSckDelayInNanoSec = (uint32_t)RTE_SPI0_PCS_TO_SCK_DELAY; in DSPI_CommonControl()
135 masterConfig.ctarConfig.lastSckToPcsDelayInNanoSec = (uint32_t)RTE_SPI0_SCK_TO_PSC_DELAY; in DSPI_CommonControl()
136masterConfig.ctarConfig.betweenTransferDelayInNanoSec = (uint32_t)RTE_SPI0_BETWEEN_TRANSFER_DELAY; in DSPI_CommonControl()
144 masterConfig.ctarConfig.pcsToSckDelayInNanoSec = (uint32_t)RTE_SPI1_PCS_TO_SCK_DELAY; in DSPI_CommonControl()
145 masterConfig.ctarConfig.lastSckToPcsDelayInNanoSec = (uint32_t)RTE_SPI1_SCK_TO_PSC_DELAY; in DSPI_CommonControl()
146masterConfig.ctarConfig.betweenTransferDelayInNanoSec = (uint32_t)RTE_SPI1_BETWEEN_TRANSFER_DELAY; in DSPI_CommonControl()
154 masterConfig.ctarConfig.pcsToSckDelayInNanoSec = (uint32_t)RTE_SPI2_PCS_TO_SCK_DELAY; in DSPI_CommonControl()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/flexio/i2c/
Dfsl_flexio_i2c_master.c630 status_t FLEXIO_I2C_MasterInit(FLEXIO_I2C_Type *base, flexio_i2c_master_config_t *masterConfig, uin… in FLEXIO_I2C_MasterInit() argument
632 assert((base != NULL) && (masterConfig != NULL)); in FLEXIO_I2C_MasterInit()
693 timerDiv = (uint16_t)(srcClock_Hz / masterConfig->baudRate_Bps) / 2U - 1U; in FLEXIO_I2C_MasterInit()
745 …controlVal |= (FLEXIO_CTRL_DBGE(masterConfig->enableInDebug) | FLEXIO_CTRL_FASTACC(masterConfig->e… in FLEXIO_I2C_MasterInit()
746 FLEXIO_CTRL_FLEXEN(masterConfig->enableMaster)); in FLEXIO_I2C_MasterInit()
747 if (!masterConfig->enableInDoze) in FLEXIO_I2C_MasterInit()
800 void FLEXIO_I2C_MasterGetDefaultConfig(flexio_i2c_master_config_t *masterConfig) in FLEXIO_I2C_MasterGetDefaultConfig() argument
802 assert(masterConfig != NULL); in FLEXIO_I2C_MasterGetDefaultConfig()
805 (void)memset(masterConfig, 0, sizeof(*masterConfig)); in FLEXIO_I2C_MasterGetDefaultConfig()
807 masterConfig->enableMaster = true; in FLEXIO_I2C_MasterGetDefaultConfig()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/cmsis_drivers/spi/
Dfsl_spi_cmsis.c124 spi_master_config_t masterConfig; in SPI_CommonControl() local
125 SPI_MasterGetDefaultConfig(&masterConfig); in SPI_CommonControl()
133 masterConfig.pinMode = kSPI_PinModeOutput; in SPI_CommonControl()
147 masterConfig.polarity = kSPI_ClockPolarityActiveHigh; in SPI_CommonControl()
149 masterConfig.phase = kSPI_ClockPhaseFirstEdge; in SPI_CommonControl()
162 masterConfig.polarity = kSPI_ClockPolarityActiveHigh; in SPI_CommonControl()
163 masterConfig.phase = kSPI_ClockPhaseSecondEdge; in SPI_CommonControl()
175 masterConfig.polarity = kSPI_ClockPolarityActiveLow; in SPI_CommonControl()
176 masterConfig.phase = kSPI_ClockPhaseFirstEdge; in SPI_CommonControl()
188 masterConfig.polarity = kSPI_ClockPolarityActiveLow; in SPI_CommonControl()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/components/sx1502/
Dfsl_sx1502.c84 hal_i2c_master_config_t masterConfig; in SX1502_I2C_Init() local
86 masterConfig.enableMaster = true; in SX1502_I2C_Init()
87 masterConfig.baudRate_Bps = i2cBaudrate; in SX1502_I2C_Init()
88 masterConfig.srcClock_Hz = i2cSourceClockHz; in SX1502_I2C_Init()
89 masterConfig.instance = (uint8_t)i2cInstance; in SX1502_I2C_Init()
91 return (status_t)HAL_I2cMasterInit((hal_i2c_master_handle_t *)handle, &masterConfig); in SX1502_I2C_Init()
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/i2c/
Dfsl_i2c.c560 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()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/flexcomm/i2c/
Dfsl_i2c.c216 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()
[all …]
Dfsl_i2c_freertos.c38 const i2c_master_config_t *masterConfig, in I2C_RTOS_Init() argument
68 I2C_MasterInit(handle->base, masterConfig, srcClock_Hz); in I2C_RTOS_Init()
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/ii2c/
Dfsl_i2c.c475 void I2C_MasterInit(I2C_Type *base, const i2c_master_config_t *masterConfig, uint32_t srcClock_Hz) in I2C_MasterInit() argument
477 assert((masterConfig != NULL) && (srcClock_Hz != 0U)); in I2C_MasterInit()
497 I2C_MasterSetBaudRate(base, masterConfig->baudRate_Bps, srcClock_Hz); in I2C_MasterInit()
500 base->I2CR = I2C_I2CR_IEN(masterConfig->enableMaster); in I2C_MasterInit()
532 void I2C_MasterGetDefaultConfig(i2c_master_config_t *masterConfig) in I2C_MasterGetDefaultConfig() argument
534 assert(masterConfig != NULL); in I2C_MasterGetDefaultConfig()
537 (void)memset(masterConfig, 0, sizeof(*masterConfig)); in I2C_MasterGetDefaultConfig()
540 masterConfig->baudRate_Bps = 100000U; in I2C_MasterGetDefaultConfig()
543 masterConfig->enableMaster = true; in I2C_MasterGetDefaultConfig()
Dfsl_i2c_freertos.c38 const i2c_master_config_t *masterConfig, in I2C_RTOS_Init() argument
74 I2C_MasterInit(handle->base, masterConfig, srcClock_Hz); in I2C_RTOS_Init()
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/i3c/
Dfsl_i3c.c905 void I3C_MasterGetDefaultConfig(i3c_master_config_t *masterConfig) in I3C_MasterGetDefaultConfig() argument
907 masterConfig->enableMaster = kI3C_MasterOn; in I3C_MasterGetDefaultConfig()
908 masterConfig->disableTimeout = false; in I3C_MasterGetDefaultConfig()
909 masterConfig->hKeep = kI3C_MasterHighKeeperNone; in I3C_MasterGetDefaultConfig()
910 masterConfig->enableOpenDrainStop = true; in I3C_MasterGetDefaultConfig()
911 masterConfig->enableOpenDrainHigh = true; in I3C_MasterGetDefaultConfig()
912 masterConfig->baudRate_Hz.i2cBaud = 400000U; in I3C_MasterGetDefaultConfig()
913 masterConfig->baudRate_Hz.i3cPushPullBaud = 12500000U; in I3C_MasterGetDefaultConfig()
914 masterConfig->baudRate_Hz.i3cOpenDrainBaud = 2500000U; in I3C_MasterGetDefaultConfig()
929 void I3C_MasterInit(I3C_Type *base, const i3c_master_config_t *masterConfig, uint32_t sourceClock_H… in I3C_MasterInit() argument
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/lpc_i2c/
Dfsl_i2c.c134 void I2C_MasterGetDefaultConfig(i2c_master_config_t *masterConfig) in I2C_MasterGetDefaultConfig() argument
137 (void)memset(masterConfig, 0, sizeof(*masterConfig)); in I2C_MasterGetDefaultConfig()
139 masterConfig->enableMaster = true; in I2C_MasterGetDefaultConfig()
140 masterConfig->baudRate_Bps = 100000U; in I2C_MasterGetDefaultConfig()
141 masterConfig->enableTimeout = false; in I2C_MasterGetDefaultConfig()
157 void I2C_MasterInit(I2C_Type *base, const i2c_master_config_t *masterConfig, uint32_t srcClock_Hz) in I2C_MasterInit() argument
168 I2C_MasterEnable(base, masterConfig->enableMaster); in I2C_MasterInit()
169 I2C_MasterSetBaudRate(base, masterConfig->baudRate_Bps, srcClock_Hz); in I2C_MasterInit()
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/lpflexcomm/
Dfsl_lpi2c_freertos.c37 const lpi2c_master_config_t *masterConfig, in LPI2C_RTOS_Init() argument
67 LPI2C_MasterInit(handle->base, masterConfig, srcClock_Hz); in LPI2C_RTOS_Init()

123