Home
last modified time | relevance | path

Searched refs:master_state (Results 1 – 4 of 4) sorted by relevance

/hal_nxp-latest/mcux/mcux-sdk/drivers/lpc_i2c/
Dfsl_i2c_dma.c209 uint32_t master_state; in I2C_RunTransferStateMachineDMA() local
245 master_state = (status & I2C_STAT_MSTSTATE_MASK) >> (uint32_t)I2C_STAT_MSTSTATE_SHIFT; in I2C_RunTransferStateMachineDMA()
247 if ((master_state == I2C_STAT_MSTCODE_NACKADR) || (master_state == I2C_STAT_MSTCODE_NACKDAT)) in I2C_RunTransferStateMachineDMA()
303 if ((master_state != (uint32_t)I2C_STAT_MSTCODE_TXREADY) && (start_flag == 0U)) in I2C_RunTransferStateMachineDMA()
330 if ((master_state != (uint32_t)I2C_STAT_MSTCODE_TXREADY) && (start_flag == 0U)) in I2C_RunTransferStateMachineDMA()
345 if ((master_state != (uint32_t)I2C_STAT_MSTCODE_RXREADY) && (start_flag == 0U)) in I2C_RunTransferStateMachineDMA()
368 if (master_state != (uint32_t)I2C_STAT_MSTCODE_RXREADY) in I2C_RunTransferStateMachineDMA()
586 uint32_t master_state; in I2C_MasterTransferAbortDMA() local
609 master_state = (status & I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT; in I2C_MasterTransferAbortDMA()
611 if (master_state != (uint32_t)I2C_STAT_MSTCODE_IDLE) in I2C_MasterTransferAbortDMA()
Dfsl_i2c.c332 uint32_t master_state; in I2C_MasterWriteBlocking() local
359 master_state = (status & I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT; in I2C_MasterWriteBlocking()
360 switch (master_state) in I2C_MasterWriteBlocking()
448 uint32_t master_state; in I2C_MasterReadBlocking() local
470 master_state = (status & I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT; in I2C_MasterReadBlocking()
471 switch (master_state) in I2C_MasterReadBlocking()
735 uint32_t master_state; in I2C_MasterTransferAbort() local
754 master_state = (status & I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT; in I2C_MasterTransferAbort()
756 if (master_state != (uint32_t)I2C_STAT_MSTCODE_IDLE) in I2C_MasterTransferAbort()
853 uint32_t master_state; in I2C_RunTransferStateMachine() local
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/flexcomm/i2c/
Dfsl_i2c_dma.c205 uint32_t master_state; in I2C_RunTransferStateMachineDMA() local
262 master_state = (base->STAT & (uint32_t)I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT; in I2C_RunTransferStateMachineDMA()
264 …if ((master_state == (uint32_t)I2C_STAT_MSTCODE_NACKADR) || (master_state == (uint32_t)I2C_STAT_MS… in I2C_RunTransferStateMachineDMA()
270 if ((master_state == (uint32_t)I2C_STAT_MSTCODE_NACKADR) || (handle->checkAddrNack == true)) in I2C_RunTransferStateMachineDMA()
327 if ((master_state != (uint32_t)I2C_STAT_MSTCODE_TXREADY) && (0U == start_flag)) in I2C_RunTransferStateMachineDMA()
354 if ((master_state != (uint32_t)I2C_STAT_MSTCODE_TXREADY) && (0U == start_flag)) in I2C_RunTransferStateMachineDMA()
370 if ((master_state != (uint32_t)I2C_STAT_MSTCODE_RXREADY) && (0U == start_flag)) in I2C_RunTransferStateMachineDMA()
394 if (master_state != (uint32_t)I2C_STAT_MSTCODE_RXREADY) in I2C_RunTransferStateMachineDMA()
613 uint32_t master_state; in I2C_MasterTransferAbortDMA() local
636 master_state = (base->STAT & I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT; in I2C_MasterTransferAbortDMA()
[all …]
Dfsl_i2c.c551 uint32_t master_state; in I2C_MasterWriteBlocking() local
568 master_state = (base->STAT & I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT; in I2C_MasterWriteBlocking()
569 switch (master_state) in I2C_MasterWriteBlocking()
642 uint32_t master_state; in I2C_MasterReadBlocking() local
659 master_state = (base->STAT & I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT; in I2C_MasterReadBlocking()
660 switch (master_state) in I2C_MasterReadBlocking()
951 uint32_t master_state; in I2C_MasterTransferAbort() local
968 master_state = (base->STAT & I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT; in I2C_MasterTransferAbort()
970 if (master_state != (uint32_t)I2C_STAT_MSTCODE_IDLE) in I2C_MasterTransferAbort()
1056 uint32_t master_state; in I2C_RunTransferStateMachine() local
[all …]