Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/platform/stm32f4xx/
Di2c.c161 uint8_t masterState; member
523 atomicWriteByte(&state->masterState, STM_I2C_MASTER_START); in stmI2cMasterTxRxDone()
532 atomicWriteByte(&state->masterState, STM_I2C_MASTER_IDLE); in stmI2cMasterTxRxDone()
545 atomicWriteByte(&state->masterState, STM_I2C_MASTER_START); in stmI2cMasterDmaTxDone()
611 if (atomicReadByte(&state->masterState) == STM_I2C_MASTER_START) { in stmI2cMasterSentStart()
613 atomicWriteByte(&state->masterState, STM_I2C_MASTER_TX_ADDR); in stmI2cMasterSentStart()
616 atomicWriteByte(&state->masterState, STM_I2C_MASTER_RX_ADDR); in stmI2cMasterSentStart()
627 uint8_t masterState = atomicReadByte(&state->masterState); in stmI2cMasterSentAddr() local
629 if (masterState == STM_I2C_MASTER_TX_ADDR) { in stmI2cMasterSentAddr()
633 atomicWriteByte(&state->masterState, STM_I2C_MASTER_TX_DATA); in stmI2cMasterSentAddr()
[all …]