Home
last modified time | relevance | path

Searched refs:slaveConfig (Results 1 – 25 of 26) sorted by relevance

12

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/lpi2c/
Dfsl_lpi2c.c1758 void LPI2C_SlaveGetDefaultConfig(lpi2c_slave_config_t *slaveConfig) in LPI2C_SlaveGetDefaultConfig() argument
1761 (void)memset(slaveConfig, 0, sizeof(*slaveConfig)); in LPI2C_SlaveGetDefaultConfig()
1763 slaveConfig->enableSlave = true; in LPI2C_SlaveGetDefaultConfig()
1764 slaveConfig->address0 = 0U; in LPI2C_SlaveGetDefaultConfig()
1765 slaveConfig->address1 = 0U; in LPI2C_SlaveGetDefaultConfig()
1766 slaveConfig->addressMatchMode = kLPI2C_MatchAddress0; in LPI2C_SlaveGetDefaultConfig()
1767 slaveConfig->filterDozeEnable = true; in LPI2C_SlaveGetDefaultConfig()
1768 slaveConfig->filterEnable = true; in LPI2C_SlaveGetDefaultConfig()
1769 slaveConfig->enableGeneralCall = false; in LPI2C_SlaveGetDefaultConfig()
1770 slaveConfig->sclStall.enableAck = false; in LPI2C_SlaveGetDefaultConfig()
[all …]
Dfsl_lpi2c.h997 void LPI2C_SlaveGetDefaultConfig(lpi2c_slave_config_t *slaveConfig);
1011 void LPI2C_SlaveInit(LPI2C_Type *base, const lpi2c_slave_config_t *slaveConfig, uint32_t sourceCloc…
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/flexio/spi/
Dfsl_flexio_spi.c430 void FLEXIO_SPI_SlaveInit(FLEXIO_SPI_Type *base, flexio_spi_slave_config_t *slaveConfig) in FLEXIO_SPI_SlaveInit() argument
432 assert((base != NULL) && (slaveConfig != NULL)); in FLEXIO_SPI_SlaveInit()
450 …ctrlReg |= (FLEXIO_CTRL_DBGE(slaveConfig->enableInDebug) | FLEXIO_CTRL_FASTACC(slaveConfig->enable… in FLEXIO_SPI_SlaveInit()
451 FLEXIO_CTRL_FLEXEN(slaveConfig->enableSlave)); in FLEXIO_SPI_SlaveInit()
452 if (!slaveConfig->enableInDoze) in FLEXIO_SPI_SlaveInit()
468 if (slaveConfig->phase == kFLEXIO_SPI_ClockPhaseFirstEdge) in FLEXIO_SPI_SlaveInit()
490 if (slaveConfig->phase == kFLEXIO_SPI_ClockPhaseFirstEdge) in FLEXIO_SPI_SlaveInit()
514 if (slaveConfig->phase == kFLEXIO_SPI_ClockPhaseFirstEdge) in FLEXIO_SPI_SlaveInit()
525 timerConfig.timerCompare = (uint32_t)slaveConfig->dataMode * 2U - 1U; in FLEXIO_SPI_SlaveInit()
550 void FLEXIO_SPI_SlaveGetDefaultConfig(flexio_spi_slave_config_t *slaveConfig) in FLEXIO_SPI_SlaveGetDefaultConfig() argument
[all …]
Dfsl_flexio_spi.h305 void FLEXIO_SPI_SlaveInit(FLEXIO_SPI_Type *base, flexio_spi_slave_config_t *slaveConfig);
324 void FLEXIO_SPI_SlaveGetDefaultConfig(flexio_spi_slave_config_t *slaveConfig);
/hal_nxp-3.5.0/mcux/mcux-sdk/cmsis_drivers/ecspi/
Dfsl_ecspi_cmsis.c186 ecspi_slave_config_t *slaveConfig) in ECSPI_SlaveCommonControl() argument
205 slaveConfig->channel = RTE_SPI1_TRANSFER_CHANNEL; in ECSPI_SlaveCommonControl()
210 slaveConfig->channel = RTE_SPI2_TRANSFER_CHANNEL; in ECSPI_SlaveCommonControl()
215 slaveConfig->channel = RTE_SPI3_TRANSFER_CHANNEL; in ECSPI_SlaveCommonControl()
226 slaveConfig->channelConfig.polarity = kECSPI_PolarityActiveHigh; in ECSPI_SlaveCommonControl()
227 slaveConfig->channelConfig.phase = kECSPI_ClockPhaseFirstEdge; in ECSPI_SlaveCommonControl()
231 slaveConfig->channelConfig.polarity = kECSPI_PolarityActiveHigh; in ECSPI_SlaveCommonControl()
232 slaveConfig->channelConfig.phase = kECSPI_ClockPhaseSecondEdge; in ECSPI_SlaveCommonControl()
236 slaveConfig->channelConfig.polarity = kECSPI_PolarityActiveLow; in ECSPI_SlaveCommonControl()
237 slaveConfig->channelConfig.phase = kECSPI_ClockPhaseFirstEdge; in ECSPI_SlaveCommonControl()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/dspi/
Dfsl_dspi.c308 void DSPI_SlaveInit(SPI_Type *base, const dspi_slave_config_t *slaveConfig) in DSPI_SlaveInit() argument
310 assert(NULL != slaveConfig); in DSPI_SlaveInit()
327 base->MCR = temp | SPI_MCR_CONT_SCKE(slaveConfig->enableContinuousSCK) | in DSPI_SlaveInit()
328 SPI_MCR_MTFE(slaveConfig->enableModifiedTimingFormat) | in DSPI_SlaveInit()
329 … SPI_MCR_ROOE(slaveConfig->enableRxFifoOverWrite) | SPI_MCR_SMPL_PT(slaveConfig->samplePoint) | in DSPI_SlaveInit()
334 temp = base->CTAR[slaveConfig->whichCtar] & in DSPI_SlaveInit()
337 …base->CTAR[slaveConfig->whichCtar] = temp | SPI_CTAR_SLAVE_FMSZ(slaveConfig->ctarConfig.bitsPerFra… in DSPI_SlaveInit()
338 SPI_CTAR_SLAVE_CPOL(slaveConfig->ctarConfig.cpol) | in DSPI_SlaveInit()
339 SPI_CTAR_SLAVE_CPHA(slaveConfig->ctarConfig.cpha); in DSPI_SlaveInit()
359 void DSPI_SlaveGetDefaultConfig(dspi_slave_config_t *slaveConfig) in DSPI_SlaveGetDefaultConfig() argument
[all …]
Dfsl_dspi.h480 void DSPI_SlaveInit(SPI_Type *base, const dspi_slave_config_t *slaveConfig);
495 void DSPI_SlaveGetDefaultConfig(dspi_slave_config_t *slaveConfig);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/i2c/
Dfsl_i2c.c1710 void I2C_SlaveInit(I2C_Type *base, const i2c_slave_config_t *slaveConfig, uint32_t srcClock_Hz) in I2C_SlaveInit() argument
1712 assert(NULL != slaveConfig); in I2C_SlaveInit()
1734 switch (slaveConfig->addressingMode) in I2C_SlaveInit()
1737 base->A1 = (uint8_t)(((uint32_t)(slaveConfig->slaveAddress)) << 1U); in I2C_SlaveInit()
1741 assert(slaveConfig->slaveAddress < slaveConfig->upperAddress); in I2C_SlaveInit()
1742 base->A1 = (uint8_t)(((uint32_t)(slaveConfig->slaveAddress)) << 1U); in I2C_SlaveInit()
1743 base->RA = (uint8_t)(((uint32_t)(slaveConfig->upperAddress)) << 1U); in I2C_SlaveInit()
1756 …base->C1 = tmpReg | I2C_C1_WUEN(slaveConfig->enableWakeUp) | I2C_C1_IICEN(slaveConfig->enableSlave… in I2C_SlaveInit()
1761 …tmpReg |= I2C_C2_SBRC(slaveConfig->enableBaudRateCtl) | I2C_C2_GCAEN(slaveConfig->enableGeneralCal… in I2C_SlaveInit()
1767 base->S2 = tmpReg | I2C_S2_DFEN(slaveConfig->enableDoubleBuffering); in I2C_SlaveInit()
[all …]
Dfsl_i2c.h327 void I2C_SlaveInit(I2C_Type *base, const i2c_slave_config_t *slaveConfig, uint32_t srcClock_Hz);
377 void I2C_SlaveGetDefaultConfig(i2c_slave_config_t *slaveConfig);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/i3c/
Dfsl_i3c.c2557 void I3C_SlaveGetDefaultConfig(i3c_slave_config_t *slaveConfig) in I3C_SlaveGetDefaultConfig() argument
2559 assert(NULL != slaveConfig); in I3C_SlaveGetDefaultConfig()
2561 (void)memset(slaveConfig, 0, sizeof(*slaveConfig)); in I3C_SlaveGetDefaultConfig()
2563 slaveConfig->enableSlave = true; in I3C_SlaveGetDefaultConfig()
2565 slaveConfig->isHotJoin = false; in I3C_SlaveGetDefaultConfig()
2567 slaveConfig->vendorID = 0x11BU; in I3C_SlaveGetDefaultConfig()
2569 slaveConfig->enableRandomPart = false; in I3C_SlaveGetDefaultConfig()
2571 slaveConfig->partNumber = 0; in I3C_SlaveGetDefaultConfig()
2572 slaveConfig->dcr = 0; /* Generic device. */ in I3C_SlaveGetDefaultConfig()
2573 slaveConfig->bcr = in I3C_SlaveGetDefaultConfig()
[all …]
Dfsl_i3c.h1426 void I3C_SlaveGetDefaultConfig(i3c_slave_config_t *slaveConfig);
1439 void I3C_SlaveInit(I3C_Type *base, const i3c_slave_config_t *slaveConfig, uint32_t slowClock_Hz);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/lpspi/
Dfsl_lpspi.c377 void LPSPI_SlaveInit(LPSPI_Type *base, const lpspi_slave_config_t *slaveConfig) in LPSPI_SlaveInit() argument
379 assert(slaveConfig != NULL); in LPSPI_SlaveInit()
395 LPSPI_SetOnePcsPolarity(base, slaveConfig->whichPcs, slaveConfig->pcsActiveHighOrLow); in LPSPI_SlaveInit()
398 … LPSPI_CFGR1_OUTCFG(slaveConfig->dataOutConfig) | LPSPI_CFGR1_PINCFG(slaveConfig->pinCfg); in LPSPI_SlaveInit()
400 if ((slaveConfig->pinCfg == kLPSPI_SdiInSdiOut) || (slaveConfig->pinCfg == kLPSPI_SdoInSdoOut)) in LPSPI_SlaveInit()
407 base->TCR = LPSPI_TCR_CPOL(slaveConfig->cpol) | LPSPI_TCR_CPHA(slaveConfig->cpha) | in LPSPI_SlaveInit()
408 … LPSPI_TCR_LSBF(slaveConfig->direction) | LPSPI_TCR_FRAMESZ(slaveConfig->bitsPerFrame - 1U); in LPSPI_SlaveInit()
429 void LPSPI_SlaveGetDefaultConfig(lpspi_slave_config_t *slaveConfig) in LPSPI_SlaveGetDefaultConfig() argument
431 assert(slaveConfig != NULL); in LPSPI_SlaveGetDefaultConfig()
434 (void)memset(slaveConfig, 0, sizeof(*slaveConfig)); in LPSPI_SlaveGetDefaultConfig()
[all …]
Dfsl_lpspi.h462 void LPSPI_SlaveInit(LPSPI_Type *base, const lpspi_slave_config_t *slaveConfig);
477 void LPSPI_SlaveGetDefaultConfig(lpspi_slave_config_t *slaveConfig);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/lpc_i2c/
Dfsl_i2c.c1424 void I2C_SlaveGetDefaultConfig(i2c_slave_config_t *slaveConfig) in I2C_SlaveGetDefaultConfig() argument
1426 assert(slaveConfig != NULL); in I2C_SlaveGetDefaultConfig()
1429 (void)memset(slaveConfig, 0, sizeof(*slaveConfig)); in I2C_SlaveGetDefaultConfig()
1439 *slaveConfig = mySlaveConfig; in I2C_SlaveGetDefaultConfig()
1455 status_t I2C_SlaveInit(I2C_Type *base, const i2c_slave_config_t *slaveConfig, uint32_t srcClock_Hz) in I2C_SlaveInit() argument
1470 status = I2C_SlaveDivVal(srcClock_Hz, slaveConfig->busSpeed, &divVal); in I2C_SlaveInit()
1480 I2C_SlaveSetAddress(base, kI2C_SlaveAddressRegister0, slaveConfig->address0.address, in I2C_SlaveInit()
1481 slaveConfig->address0.addressDisable); in I2C_SlaveInit()
1482 I2C_SlaveSetAddress(base, kI2C_SlaveAddressRegister1, slaveConfig->address1.address, in I2C_SlaveInit()
1483 slaveConfig->address1.addressDisable); in I2C_SlaveInit()
[all …]
Dfsl_i2c.h781 void I2C_SlaveGetDefaultConfig(i2c_slave_config_t *slaveConfig);
796 status_t I2C_SlaveInit(I2C_Type *base, const i2c_slave_config_t *slaveConfig, uint32_t srcClock_Hz);
/hal_nxp-3.5.0/mcux/mcux-sdk/cmsis_drivers/flexcomm/
Dfsl_spi_cmsis.c306 spi_slave_config_t *slaveConfig) in SPI_SlaveCommonControl() argument
312 slaveConfig->sselPol = RTE_SPI0_SSEL_POL; in SPI_SlaveCommonControl()
318 slaveConfig->sselPol = RTE_SPI1_SSEL_POL; in SPI_SlaveCommonControl()
323 slaveConfig->sselPol = RTE_SPI2_SSEL_POL; in SPI_SlaveCommonControl()
329 slaveConfig->sselPol = RTE_SPI3_SSEL_POL; in SPI_SlaveCommonControl()
335 slaveConfig->sselPol = RTE_SPI4_SSEL_POL; in SPI_SlaveCommonControl()
341 slaveConfig->sselPol = RTE_SPI5_SSEL_POL; in SPI_SlaveCommonControl()
347 slaveConfig->sselPol = RTE_SPI6_SSEL_POL; in SPI_SlaveCommonControl()
353 slaveConfig->sselPol = RTE_SPI7_SSEL_POL; in SPI_SlaveCommonControl()
359 slaveConfig->sselPol = RTE_SPI8_SSEL_POL; in SPI_SlaveCommonControl()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/flexcomm/i2c/
Dfsl_i2c.c1609 void I2C_SlaveGetDefaultConfig(i2c_slave_config_t *slaveConfig) in I2C_SlaveGetDefaultConfig() argument
1611 assert(slaveConfig != NULL); in I2C_SlaveGetDefaultConfig()
1621 *slaveConfig = mySlaveConfig; in I2C_SlaveGetDefaultConfig()
1637 status_t I2C_SlaveInit(I2C_Type *base, const i2c_slave_config_t *slaveConfig, uint32_t srcClock_Hz) in I2C_SlaveInit() argument
1643 status = I2C_SlaveDivVal(srcClock_Hz, slaveConfig->busSpeed, &divVal); in I2C_SlaveInit()
1655 I2C_SlaveSetAddress(base, kI2C_SlaveAddressRegister0, slaveConfig->address0.address, in I2C_SlaveInit()
1656 slaveConfig->address0.addressDisable); in I2C_SlaveInit()
1657 I2C_SlaveSetAddress(base, kI2C_SlaveAddressRegister1, slaveConfig->address1.address, in I2C_SlaveInit()
1658 slaveConfig->address1.addressDisable); in I2C_SlaveInit()
1659 I2C_SlaveSetAddress(base, kI2C_SlaveAddressRegister2, slaveConfig->address2.address, in I2C_SlaveInit()
[all …]
Dfsl_i2c.h874 void I2C_SlaveGetDefaultConfig(i2c_slave_config_t *slaveConfig);
889 status_t I2C_SlaveInit(I2C_Type *base, const i2c_slave_config_t *slaveConfig, uint32_t srcClock_Hz);
/hal_nxp-3.5.0/mcux/mcux-sdk/cmsis_drivers/spi/
Dfsl_spi_cmsis.c126 spi_slave_config_t slaveConfig; in SPI_CommonControl() local
127 SPI_SlaveGetDefaultConfig(&slaveConfig); in SPI_CommonControl()
136 slaveConfig.pinMode = kSPI_PinModeOutput; in SPI_CommonControl()
153 slaveConfig.polarity = kSPI_ClockPolarityActiveHigh; in SPI_CommonControl()
155 slaveConfig.phase = kSPI_ClockPhaseFirstEdge; in SPI_CommonControl()
167 slaveConfig.polarity = kSPI_ClockPolarityActiveHigh; in SPI_CommonControl()
168 slaveConfig.phase = kSPI_ClockPhaseSecondEdge; in SPI_CommonControl()
180 slaveConfig.polarity = kSPI_ClockPolarityActiveLow; in SPI_CommonControl()
181 slaveConfig.phase = kSPI_ClockPhaseFirstEdge; in SPI_CommonControl()
193 slaveConfig.polarity = kSPI_ClockPolarityActiveLow; in SPI_CommonControl()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/components/i3c_bus/
Dfsl_component_i3c_adapter.c682 i3c_slave_config_t slaveConfig; in I3C_SlaveAdapterInit() local
683 I3C_SlaveGetDefaultConfig(&slaveConfig); in I3C_SlaveAdapterInit()
684 slaveConfig.staticAddr = devInfo->staticAddr; in I3C_SlaveAdapterInit()
685 slaveConfig.dcr = devInfo->dcr; in I3C_SlaveAdapterInit()
686 slaveConfig.bcr = devInfo->bcr; in I3C_SlaveAdapterInit()
687 slaveConfig.partNumber = devInfo->partNumber; in I3C_SlaveAdapterInit()
688 slaveConfig.vendorID = devInfo->vendorID; in I3C_SlaveAdapterInit()
689 slaveConfig.offline = false; in I3C_SlaveAdapterInit()
691 I3C_SlaveInit(base, &slaveConfig, devResource->clockInHz); in I3C_SlaveAdapterInit()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ii2c/
Dfsl_i2c.c1270 void I2C_SlaveInit(I2C_Type *base, const i2c_slave_config_t *slaveConfig) in I2C_SlaveInit() argument
1272 assert(slaveConfig != NULL); in I2C_SlaveInit()
1285 base->IADR = (uint16_t)((uint32_t)(slaveConfig->slaveAddress)) << 1U; in I2C_SlaveInit()
1286 base->I2CR = I2C_I2CR_IEN(slaveConfig->enableSlave); in I2C_SlaveInit()
1317 void I2C_SlaveGetDefaultConfig(i2c_slave_config_t *slaveConfig) in I2C_SlaveGetDefaultConfig() argument
1319 assert(slaveConfig != NULL); in I2C_SlaveGetDefaultConfig()
1322 (void)memset(slaveConfig, 0, sizeof(*slaveConfig)); in I2C_SlaveGetDefaultConfig()
1325 slaveConfig->enableSlave = true; in I2C_SlaveGetDefaultConfig()
Dfsl_i2c.h265 void I2C_SlaveInit(I2C_Type *base, const i2c_slave_config_t *slaveConfig);
286 void I2C_SlaveGetDefaultConfig(i2c_slave_config_t *slaveConfig);
/hal_nxp-3.5.0/mcux/mcux-sdk/cmsis_drivers/dspi/
Dfsl_dspi_cmsis.c126 dspi_slave_config_t slaveConfig; in DSPI_CommonControl() local
127 DSPI_SlaveGetDefaultConfig(&slaveConfig); in DSPI_CommonControl()
170 slaveConfig.ctarConfig.cpol = kDSPI_ClockPolarityActiveHigh; in DSPI_CommonControl()
171 slaveConfig.ctarConfig.cpha = kDSPI_ClockPhaseFirstEdge; in DSPI_CommonControl()
183 slaveConfig.ctarConfig.cpol = kDSPI_ClockPolarityActiveHigh; in DSPI_CommonControl()
184 slaveConfig.ctarConfig.cpha = kDSPI_ClockPhaseSecondEdge; in DSPI_CommonControl()
196 slaveConfig.ctarConfig.cpol = kDSPI_ClockPolarityActiveLow; in DSPI_CommonControl()
197 slaveConfig.ctarConfig.cpha = kDSPI_ClockPhaseFirstEdge; in DSPI_CommonControl()
209 slaveConfig.ctarConfig.cpol = kDSPI_ClockPolarityActiveLow; in DSPI_CommonControl()
210 slaveConfig.ctarConfig.cpha = kDSPI_ClockPhaseSecondEdge; in DSPI_CommonControl()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/cmsis_drivers/lpspi/
Dfsl_lpspi_cmsis.c123 lpspi_slave_config_t slaveConfig; in LPSPI_CommonControl() local
124 LPSPI_SlaveGetDefaultConfig(&slaveConfig); in LPSPI_CommonControl()
135 slaveConfig.pinCfg = kLPSPI_SdiInSdiOut; in LPSPI_CommonControl()
207 slaveConfig.cpol = kLPSPI_ClockPolarityActiveHigh; in LPSPI_CommonControl()
208 slaveConfig.cpha = kLPSPI_ClockPhaseFirstEdge; in LPSPI_CommonControl()
219 slaveConfig.cpol = kLPSPI_ClockPolarityActiveHigh; in LPSPI_CommonControl()
220 slaveConfig.cpha = kLPSPI_ClockPhaseSecondEdge; in LPSPI_CommonControl()
231 slaveConfig.cpol = kLPSPI_ClockPolarityActiveLow; in LPSPI_CommonControl()
232 slaveConfig.cpha = kLPSPI_ClockPhaseFirstEdge; in LPSPI_CommonControl()
243 slaveConfig.cpol = kLPSPI_ClockPolarityActiveLow; in LPSPI_CommonControl()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/cmsis_drivers/ii2c/
Dfsl_i2c_cmsis.c444 i2c_slave_config_t slaveConfig; in I2C_InterruptPowerControl() local
480 I2C_SlaveGetDefaultConfig(&slaveConfig); in I2C_InterruptPowerControl()
481 I2C_SlaveInit(i2c->resource->base, &slaveConfig); in I2C_InterruptPowerControl()

12