/hal_nxp-2.7.6/mcux/drivers/kinetis/ |
D | fsl_lpi2c.c | 1490 void LPI2C_SlaveGetDefaultConfig(lpi2c_slave_config_t *slaveConfig) in LPI2C_SlaveGetDefaultConfig() argument 1493 (void)memset(slaveConfig, 0, sizeof(*slaveConfig)); in LPI2C_SlaveGetDefaultConfig() 1495 slaveConfig->enableSlave = true; in LPI2C_SlaveGetDefaultConfig() 1496 slaveConfig->address0 = 0U; in LPI2C_SlaveGetDefaultConfig() 1497 slaveConfig->address1 = 0U; in LPI2C_SlaveGetDefaultConfig() 1498 slaveConfig->addressMatchMode = kLPI2C_MatchAddress0; in LPI2C_SlaveGetDefaultConfig() 1499 slaveConfig->filterDozeEnable = true; in LPI2C_SlaveGetDefaultConfig() 1500 slaveConfig->filterEnable = true; in LPI2C_SlaveGetDefaultConfig() 1501 slaveConfig->enableGeneralCall = false; in LPI2C_SlaveGetDefaultConfig() 1502 slaveConfig->sclStall.enableAck = false; in LPI2C_SlaveGetDefaultConfig() [all …]
|
D | fsl_flexio_spi.c | 390 void FLEXIO_SPI_SlaveInit(FLEXIO_SPI_Type *base, flexio_spi_slave_config_t *slaveConfig) in FLEXIO_SPI_SlaveInit() argument 392 assert((base != NULL) && (slaveConfig != NULL)); in FLEXIO_SPI_SlaveInit() 410 …ctrlReg |= (FLEXIO_CTRL_DBGE(slaveConfig->enableInDebug) | FLEXIO_CTRL_FASTACC(slaveConfig->enable… in FLEXIO_SPI_SlaveInit() 411 FLEXIO_CTRL_FLEXEN(slaveConfig->enableSlave)); in FLEXIO_SPI_SlaveInit() 412 if (!slaveConfig->enableInDoze) in FLEXIO_SPI_SlaveInit() 428 if (slaveConfig->phase == kFLEXIO_SPI_ClockPhaseFirstEdge) in FLEXIO_SPI_SlaveInit() 450 if (slaveConfig->phase == kFLEXIO_SPI_ClockPhaseFirstEdge) in FLEXIO_SPI_SlaveInit() 474 if (slaveConfig->phase == kFLEXIO_SPI_ClockPhaseFirstEdge) in FLEXIO_SPI_SlaveInit() 487 timerConfig.timerCompare = (uint32_t)slaveConfig->dataMode * 2U - 1U; in FLEXIO_SPI_SlaveInit() 512 void FLEXIO_SPI_SlaveGetDefaultConfig(flexio_spi_slave_config_t *slaveConfig) in FLEXIO_SPI_SlaveGetDefaultConfig() argument [all …]
|
D | fsl_i2c.c | 1710 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 …]
|
D | fsl_dspi.c | 308 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 …]
|
D | fsl_lpspi.c | 279 void LPSPI_SlaveInit(LPSPI_Type *base, const lpspi_slave_config_t *slaveConfig) in LPSPI_SlaveInit() argument 281 assert(slaveConfig); in LPSPI_SlaveInit() 297 LPSPI_SetOnePcsPolarity(base, slaveConfig->whichPcs, slaveConfig->pcsActiveHighOrLow); in LPSPI_SlaveInit() 300 … LPSPI_CFGR1_OUTCFG(slaveConfig->dataOutConfig) | LPSPI_CFGR1_PINCFG(slaveConfig->pinCfg); in LPSPI_SlaveInit() 304 base->TCR = LPSPI_TCR_CPOL(slaveConfig->cpol) | LPSPI_TCR_CPHA(slaveConfig->cpha) | in LPSPI_SlaveInit() 305 … LPSPI_TCR_LSBF(slaveConfig->direction) | LPSPI_TCR_FRAMESZ(slaveConfig->bitsPerFrame - 1U); in LPSPI_SlaveInit() 326 void LPSPI_SlaveGetDefaultConfig(lpspi_slave_config_t *slaveConfig) in LPSPI_SlaveGetDefaultConfig() argument 328 assert(slaveConfig); in LPSPI_SlaveGetDefaultConfig() 331 (void)memset(slaveConfig, 0, sizeof(*slaveConfig)); in LPSPI_SlaveGetDefaultConfig() 333 …slaveConfig->bitsPerFrame = 8; /*!< Bits per frame, minimum 8, maximu… in LPSPI_SlaveGetDefaultConfig() [all …]
|
D | fsl_flexio_spi.h | 296 void FLEXIO_SPI_SlaveInit(FLEXIO_SPI_Type *base, flexio_spi_slave_config_t *slaveConfig); 315 void FLEXIO_SPI_SlaveGetDefaultConfig(flexio_spi_slave_config_t *slaveConfig);
|
D | fsl_i2c.h | 327 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);
|
D | fsl_lpspi.h | 458 void LPSPI_SlaveInit(LPSPI_Type *base, const lpspi_slave_config_t *slaveConfig); 473 void LPSPI_SlaveGetDefaultConfig(lpspi_slave_config_t *slaveConfig);
|
D | fsl_dspi.h | 480 void DSPI_SlaveInit(SPI_Type *base, const dspi_slave_config_t *slaveConfig); 495 void DSPI_SlaveGetDefaultConfig(dspi_slave_config_t *slaveConfig);
|
D | fsl_lpi2c.h | 943 void LPI2C_SlaveGetDefaultConfig(lpi2c_slave_config_t *slaveConfig); 957 void LPI2C_SlaveInit(LPI2C_Type *base, const lpi2c_slave_config_t *slaveConfig, uint32_t sourceCloc…
|
/hal_nxp-2.7.6/mcux/drivers/imx/ |
D | fsl_lpi2c.c | 1564 void LPI2C_SlaveGetDefaultConfig(lpi2c_slave_config_t *slaveConfig) in LPI2C_SlaveGetDefaultConfig() argument 1567 (void)memset(slaveConfig, 0, sizeof(*slaveConfig)); in LPI2C_SlaveGetDefaultConfig() 1569 slaveConfig->enableSlave = true; in LPI2C_SlaveGetDefaultConfig() 1570 slaveConfig->address0 = 0U; in LPI2C_SlaveGetDefaultConfig() 1571 slaveConfig->address1 = 0U; in LPI2C_SlaveGetDefaultConfig() 1572 slaveConfig->addressMatchMode = kLPI2C_MatchAddress0; in LPI2C_SlaveGetDefaultConfig() 1573 slaveConfig->filterDozeEnable = true; in LPI2C_SlaveGetDefaultConfig() 1574 slaveConfig->filterEnable = true; in LPI2C_SlaveGetDefaultConfig() 1575 slaveConfig->enableGeneralCall = false; in LPI2C_SlaveGetDefaultConfig() 1576 slaveConfig->sclStall.enableAck = false; in LPI2C_SlaveGetDefaultConfig() [all …]
|
D | fsl_flexio_spi.c | 390 void FLEXIO_SPI_SlaveInit(FLEXIO_SPI_Type *base, flexio_spi_slave_config_t *slaveConfig) in FLEXIO_SPI_SlaveInit() argument 392 assert((base != NULL) && (slaveConfig != NULL)); in FLEXIO_SPI_SlaveInit() 410 …ctrlReg |= (FLEXIO_CTRL_DBGE(slaveConfig->enableInDebug) | FLEXIO_CTRL_FASTACC(slaveConfig->enable… in FLEXIO_SPI_SlaveInit() 411 FLEXIO_CTRL_FLEXEN(slaveConfig->enableSlave)); in FLEXIO_SPI_SlaveInit() 412 if (!slaveConfig->enableInDoze) in FLEXIO_SPI_SlaveInit() 428 if (slaveConfig->phase == kFLEXIO_SPI_ClockPhaseFirstEdge) in FLEXIO_SPI_SlaveInit() 450 if (slaveConfig->phase == kFLEXIO_SPI_ClockPhaseFirstEdge) in FLEXIO_SPI_SlaveInit() 474 if (slaveConfig->phase == kFLEXIO_SPI_ClockPhaseFirstEdge) in FLEXIO_SPI_SlaveInit() 487 timerConfig.timerCompare = (uint32_t)slaveConfig->dataMode * 2U - 1U; in FLEXIO_SPI_SlaveInit() 512 void FLEXIO_SPI_SlaveGetDefaultConfig(flexio_spi_slave_config_t *slaveConfig) in FLEXIO_SPI_SlaveGetDefaultConfig() argument [all …]
|
D | fsl_lpspi.c | 287 void LPSPI_SlaveInit(LPSPI_Type *base, const lpspi_slave_config_t *slaveConfig) in LPSPI_SlaveInit() argument 289 assert(slaveConfig != NULL); in LPSPI_SlaveInit() 305 LPSPI_SetOnePcsPolarity(base, slaveConfig->whichPcs, slaveConfig->pcsActiveHighOrLow); in LPSPI_SlaveInit() 308 … LPSPI_CFGR1_OUTCFG(slaveConfig->dataOutConfig) | LPSPI_CFGR1_PINCFG(slaveConfig->pinCfg); in LPSPI_SlaveInit() 312 base->TCR = LPSPI_TCR_CPOL(slaveConfig->cpol) | LPSPI_TCR_CPHA(slaveConfig->cpha) | in LPSPI_SlaveInit() 313 … LPSPI_TCR_LSBF(slaveConfig->direction) | LPSPI_TCR_FRAMESZ(slaveConfig->bitsPerFrame - 1U); in LPSPI_SlaveInit() 334 void LPSPI_SlaveGetDefaultConfig(lpspi_slave_config_t *slaveConfig) in LPSPI_SlaveGetDefaultConfig() argument 336 assert(slaveConfig != NULL); in LPSPI_SlaveGetDefaultConfig() 339 (void)memset(slaveConfig, 0, sizeof(*slaveConfig)); in LPSPI_SlaveGetDefaultConfig() 341 …slaveConfig->bitsPerFrame = 8; /*!< Bits per frame, minimum 8, maximu… in LPSPI_SlaveGetDefaultConfig() [all …]
|
D | fsl_flexio_spi.h | 296 void FLEXIO_SPI_SlaveInit(FLEXIO_SPI_Type *base, flexio_spi_slave_config_t *slaveConfig); 315 void FLEXIO_SPI_SlaveGetDefaultConfig(flexio_spi_slave_config_t *slaveConfig);
|
D | fsl_lpi2c.h | 995 void LPI2C_SlaveGetDefaultConfig(lpi2c_slave_config_t *slaveConfig); 1009 void LPI2C_SlaveInit(LPI2C_Type *base, const lpi2c_slave_config_t *slaveConfig, uint32_t sourceCloc…
|
D | fsl_lpspi.h | 460 void LPSPI_SlaveInit(LPSPI_Type *base, const lpspi_slave_config_t *slaveConfig); 475 void LPSPI_SlaveGetDefaultConfig(lpspi_slave_config_t *slaveConfig);
|
/hal_nxp-2.7.6/mcux/drivers/imxrt6xx/ |
D | fsl_i3c.c | 2016 void I3C_SlaveGetDefaultConfig(i3c_slave_config_t *slaveConfig) in I3C_SlaveGetDefaultConfig() argument 2018 assert(NULL != slaveConfig); in I3C_SlaveGetDefaultConfig() 2020 (void)memset(slaveConfig, 0, sizeof(*slaveConfig)); in I3C_SlaveGetDefaultConfig() 2022 slaveConfig->enableSlave = true; in I3C_SlaveGetDefaultConfig() 2023 slaveConfig->vendorID = 0x11BU; in I3C_SlaveGetDefaultConfig() 2024 slaveConfig->enableRandomPart = false; in I3C_SlaveGetDefaultConfig() 2025 slaveConfig->partNumber = 0; in I3C_SlaveGetDefaultConfig() 2026 slaveConfig->dcr = 0; /* Generic device. */ in I3C_SlaveGetDefaultConfig() 2027 slaveConfig->bcr = in I3C_SlaveGetDefaultConfig() 2032 slaveConfig->hdrMode = (uint8_t)kI3C_HDRModeDDR; in I3C_SlaveGetDefaultConfig() [all …]
|
D | fsl_i2c.c | 1578 void I2C_SlaveGetDefaultConfig(i2c_slave_config_t *slaveConfig) in I2C_SlaveGetDefaultConfig() argument 1580 assert(slaveConfig != NULL); in I2C_SlaveGetDefaultConfig() 1590 *slaveConfig = mySlaveConfig; in I2C_SlaveGetDefaultConfig() 1606 status_t I2C_SlaveInit(I2C_Type *base, const i2c_slave_config_t *slaveConfig, uint32_t srcClock_Hz) in I2C_SlaveInit() argument 1612 status = I2C_SlaveDivVal(srcClock_Hz, slaveConfig->busSpeed, &divVal); in I2C_SlaveInit() 1624 I2C_SlaveSetAddress(base, kI2C_SlaveAddressRegister0, slaveConfig->address0.address, in I2C_SlaveInit() 1625 slaveConfig->address0.addressDisable); in I2C_SlaveInit() 1626 I2C_SlaveSetAddress(base, kI2C_SlaveAddressRegister1, slaveConfig->address1.address, in I2C_SlaveInit() 1627 slaveConfig->address1.addressDisable); in I2C_SlaveInit() 1628 I2C_SlaveSetAddress(base, kI2C_SlaveAddressRegister2, slaveConfig->address2.address, in I2C_SlaveInit() [all …]
|
D | fsl_i2c.h | 874 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);
|
D | fsl_i3c.h | 1293 void I3C_SlaveGetDefaultConfig(i3c_slave_config_t *slaveConfig); 1306 void I3C_SlaveInit(I3C_Type *base, const i3c_slave_config_t *slaveConfig, uint32_t slowClock_Hz);
|
/hal_nxp-2.7.6/mcux/drivers/lpc/ |
D | fsl_i2c.c | 1578 void I2C_SlaveGetDefaultConfig(i2c_slave_config_t *slaveConfig) in I2C_SlaveGetDefaultConfig() argument 1580 assert(slaveConfig != NULL); in I2C_SlaveGetDefaultConfig() 1590 *slaveConfig = mySlaveConfig; in I2C_SlaveGetDefaultConfig() 1606 status_t I2C_SlaveInit(I2C_Type *base, const i2c_slave_config_t *slaveConfig, uint32_t srcClock_Hz) in I2C_SlaveInit() argument 1612 status = I2C_SlaveDivVal(srcClock_Hz, slaveConfig->busSpeed, &divVal); in I2C_SlaveInit() 1624 I2C_SlaveSetAddress(base, kI2C_SlaveAddressRegister0, slaveConfig->address0.address, in I2C_SlaveInit() 1625 slaveConfig->address0.addressDisable); in I2C_SlaveInit() 1626 I2C_SlaveSetAddress(base, kI2C_SlaveAddressRegister1, slaveConfig->address1.address, in I2C_SlaveInit() 1627 slaveConfig->address1.addressDisable); in I2C_SlaveInit() 1628 I2C_SlaveSetAddress(base, kI2C_SlaveAddressRegister2, slaveConfig->address2.address, in I2C_SlaveInit() [all …]
|
D | fsl_i2c.h | 874 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-2.7.6/mcux/drivers/imx8/ |
D | fsl_i2c.c | 1270 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); in I2C_SlaveGetDefaultConfig() 1322 (void)memset(slaveConfig, 0, sizeof(*slaveConfig)); in I2C_SlaveGetDefaultConfig() 1325 slaveConfig->enableSlave = true; in I2C_SlaveGetDefaultConfig()
|
D | fsl_i2c.h | 265 void I2C_SlaveInit(I2C_Type *base, const i2c_slave_config_t *slaveConfig); 286 void I2C_SlaveGetDefaultConfig(i2c_slave_config_t *slaveConfig);
|