Home
last modified time | relevance | path

Searched refs:statusMask (Results 1 – 13 of 13) sorted by relevance

/hal_nxp-2.7.6/mcux/drivers/kinetis/
Dfsl_i2c.h436 static inline void I2C_MasterClearStatusFlags(I2C_Type *base, uint32_t statusMask) in I2C_MasterClearStatusFlags() argument
440 if ((uint32_t)kI2C_StartDetectFlag == (statusMask & (uint32_t)kI2C_StartDetectFlag)) in I2C_MasterClearStatusFlags()
443 base->FLT |= (uint8_t)(statusMask >> 8U); in I2C_MasterClearStatusFlags()
448 if ((uint32_t)kI2C_StopDetectFlag == (statusMask & (uint32_t)kI2C_StopDetectFlag)) in I2C_MasterClearStatusFlags()
451 base->FLT |= (uint8_t)(statusMask >> 8U); in I2C_MasterClearStatusFlags()
455 base->S = (uint8_t)statusMask; in I2C_MasterClearStatusFlags()
471 static inline void I2C_SlaveClearStatusFlags(I2C_Type *base, uint32_t statusMask) in I2C_SlaveClearStatusFlags() argument
473 I2C_MasterClearStatusFlags(base, statusMask); in I2C_SlaveClearStatusFlags()
Dfsl_lpi2c.h550 static inline void LPI2C_MasterClearStatusFlags(LPI2C_Type *base, uint32_t statusMask) in LPI2C_MasterClearStatusFlags() argument
552 base->MSR = statusMask; in LPI2C_MasterClearStatusFlags()
1030 static inline void LPI2C_SlaveClearStatusFlags(LPI2C_Type *base, uint32_t statusMask) in LPI2C_SlaveClearStatusFlags() argument
1032 base->SSR = statusMask; in LPI2C_SlaveClearStatusFlags()
/hal_nxp-2.7.6/mcux/drivers/imxrt6xx/
Dfsl_i2c.h569 static inline void I2C_ClearStatusFlags(I2C_Type *base, uint32_t statusMask) in I2C_ClearStatusFlags() argument
572 statusMask &= in I2C_ClearStatusFlags()
574 base->STAT = statusMask; in I2C_ClearStatusFlags()
592 static inline void I2C_MasterClearStatusFlags(I2C_Type *base, uint32_t statusMask) in I2C_MasterClearStatusFlags() argument
595 base->STAT = statusMask & (I2C_STAT_MSTARBLOSS_MASK | I2C_STAT_MSTSTSTPERR_MASK); in I2C_MasterClearStatusFlags()
948 static inline void I2C_SlaveClearStatusFlags(I2C_Type *base, uint32_t statusMask) in I2C_SlaveClearStatusFlags() argument
951 base->STAT = statusMask & I2C_STAT_SLVDESEL_MASK; in I2C_SlaveClearStatusFlags()
Dfsl_i3c.h808 static inline void I3C_MasterClearStatusFlags(I3C_Type *base, uint32_t statusMask) in I3C_MasterClearStatusFlags() argument
810 base->MSTATUS = statusMask; in I3C_MasterClearStatusFlags()
839 static inline void I3C_MasterClearErrorStatusFlags(I3C_Type *base, uint32_t statusMask) in I3C_MasterClearErrorStatusFlags() argument
841 base->MERRWARN = statusMask; in I3C_MasterClearErrorStatusFlags()
842 while ((base->MERRWARN & statusMask) != 0U) in I3C_MasterClearErrorStatusFlags()
1366 static inline void I3C_SlaveClearStatusFlags(I3C_Type *base, uint32_t statusMask) in I3C_SlaveClearStatusFlags() argument
1368 base->SSTATUS = statusMask; in I3C_SlaveClearStatusFlags()
1397 static inline void I3C_SlaveClearErrorStatusFlags(I3C_Type *base, uint32_t statusMask) in I3C_SlaveClearErrorStatusFlags() argument
1399 base->SERRWARN = statusMask; in I3C_SlaveClearErrorStatusFlags()
Dfsl_i2c.c275 uint32_t statusMask = base->STAT; in I2C_GetStatusFlags() local
276 if ((statusMask & (uint32_t)I2C_STAT_MSTSTATE_MASK) == 0UL) in I2C_GetStatusFlags()
278 statusMask |= (uint32_t)kI2C_MasterIdleFlag; in I2C_GetStatusFlags()
280 if (((statusMask & (uint32_t)I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT) == 3UL) in I2C_GetStatusFlags()
282statusMask = (statusMask & ~(uint32_t)I2C_STAT_MSTSTATE_MASK) | (uint32_t)kI2C_MasterAddrNackFlag; in I2C_GetStatusFlags()
284 if ((statusMask & (uint32_t)I2C_STAT_SLVSTATE_MASK) == 0UL) in I2C_GetStatusFlags()
286 statusMask |= (uint32_t)kI2C_SlaveAddressedFlag; in I2C_GetStatusFlags()
288 if ((statusMask & (uint32_t)I2C_STAT_SLVIDX_MASK) == 0UL) in I2C_GetStatusFlags()
290 statusMask |= (uint32_t)kI2C_SlaveAddress0MatchFlag; in I2C_GetStatusFlags()
292 if (((statusMask & (uint32_t)I2C_STAT_SLVIDX_MASK) >> I2C_STAT_SLVIDX_SHIFT) == 3UL) in I2C_GetStatusFlags()
[all …]
/hal_nxp-2.7.6/mcux/drivers/lpc/
Dfsl_i2c.h569 static inline void I2C_ClearStatusFlags(I2C_Type *base, uint32_t statusMask) in I2C_ClearStatusFlags() argument
572 statusMask &= in I2C_ClearStatusFlags()
574 base->STAT = statusMask; in I2C_ClearStatusFlags()
592 static inline void I2C_MasterClearStatusFlags(I2C_Type *base, uint32_t statusMask) in I2C_MasterClearStatusFlags() argument
595 base->STAT = statusMask & (I2C_STAT_MSTARBLOSS_MASK | I2C_STAT_MSTSTSTPERR_MASK); in I2C_MasterClearStatusFlags()
948 static inline void I2C_SlaveClearStatusFlags(I2C_Type *base, uint32_t statusMask) in I2C_SlaveClearStatusFlags() argument
951 base->STAT = statusMask & I2C_STAT_SLVDESEL_MASK; in I2C_SlaveClearStatusFlags()
Dfsl_i2c.c275 uint32_t statusMask = base->STAT; in I2C_GetStatusFlags() local
276 if ((statusMask & (uint32_t)I2C_STAT_MSTSTATE_MASK) == 0UL) in I2C_GetStatusFlags()
278 statusMask |= (uint32_t)kI2C_MasterIdleFlag; in I2C_GetStatusFlags()
280 if (((statusMask & (uint32_t)I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT) == 3UL) in I2C_GetStatusFlags()
282statusMask = (statusMask & ~(uint32_t)I2C_STAT_MSTSTATE_MASK) | (uint32_t)kI2C_MasterAddrNackFlag; in I2C_GetStatusFlags()
284 if ((statusMask & (uint32_t)I2C_STAT_SLVSTATE_MASK) == 0UL) in I2C_GetStatusFlags()
286 statusMask |= (uint32_t)kI2C_SlaveAddressedFlag; in I2C_GetStatusFlags()
288 if ((statusMask & (uint32_t)I2C_STAT_SLVIDX_MASK) == 0UL) in I2C_GetStatusFlags()
290 statusMask |= (uint32_t)kI2C_SlaveAddress0MatchFlag; in I2C_GetStatusFlags()
292 if (((statusMask & (uint32_t)I2C_STAT_SLVIDX_MASK) >> I2C_STAT_SLVIDX_SHIFT) == 3UL) in I2C_GetStatusFlags()
[all …]
/hal_nxp-2.7.6/mcux/drivers/imx8/
Dfsl_i2c.h335 static inline void I2C_MasterClearStatusFlags(I2C_Type *base, uint32_t statusMask) in I2C_MasterClearStatusFlags() argument
337 base->I2SR &= (~(uint16_t)statusMask); in I2C_MasterClearStatusFlags()
361 static inline void I2C_SlaveClearStatusFlags(I2C_Type *base, uint32_t statusMask) in I2C_SlaveClearStatusFlags() argument
363 I2C_MasterClearStatusFlags(base, statusMask); in I2C_SlaveClearStatusFlags()
/hal_nxp-2.7.6/mcux/drivers/imx/
Dfsl_lpi2c.h602 static inline void LPI2C_MasterClearStatusFlags(LPI2C_Type *base, uint32_t statusMask) in LPI2C_MasterClearStatusFlags() argument
604 base->MSR = statusMask; in LPI2C_MasterClearStatusFlags()
1082 static inline void LPI2C_SlaveClearStatusFlags(LPI2C_Type *base, uint32_t statusMask) in LPI2C_SlaveClearStatusFlags() argument
1084 base->SSR = statusMask; in LPI2C_SlaveClearStatusFlags()
Dfsl_csi.h553 static inline void CSI_ClearStatusFlags(CSI_Type *base, uint32_t statusMask) in CSI_ClearStatusFlags() argument
555 CSI_REG_SR(base) = statusMask; in CSI_ClearStatusFlags()
Dfsl_pxp.h705 static inline void PXP_ClearStatusFlags(PXP_Type *base, uint32_t statusMask) in PXP_ClearStatusFlags() argument
707 base->STAT_CLR = statusMask; in PXP_ClearStatusFlags()
/hal_nxp-2.7.6/mcux/devices/MIMXRT685S/
Dfsl_power.c249 void POWER_ClearEventFlags(uint32_t statusMask) in POWER_ClearEventFlags() argument
251 PMC->FLAGS = statusMask; in POWER_ClearEventFlags()
Dfsl_power.h364 void POWER_ClearEventFlags(uint32_t statusMask);