Home
last modified time | relevance | path

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

/external/libnfc-nxp/Linux_x86/
DphDal4Nfc_i2c.c55 static phDal4Nfc_I2cPortContext_t gI2cPortContext; variable
69 memset(&gI2cPortContext, 0, sizeof(phDal4Nfc_I2cPortContext_t)); in phDal4Nfc_i2c_initialize()
85 gI2cPortContext.nHandle = (int)(intptr_t) pDalHwContext->p_board_driver; in phDal4Nfc_i2c_set_open_from_handle()
86 DAL_ASSERT_STR(gI2cPortContext.nHandle >= 0, "Bad passed com port handle"); in phDal4Nfc_i2c_set_open_from_handle()
87 gI2cPortContext.nOpened = 1; in phDal4Nfc_i2c_set_open_from_handle()
100 return gI2cPortContext.nOpened; in phDal4Nfc_i2c_is_opened()
127 if (gI2cPortContext.nOpened == 1) in phDal4Nfc_i2c_close()
129 close(gI2cPortContext.nHandle); in phDal4Nfc_i2c_close()
130 gI2cPortContext.nHandle = 0; in phDal4Nfc_i2c_close()
131 gI2cPortContext.nOpened = 0; in phDal4Nfc_i2c_close()
[all …]