Home
last modified time | relevance | path

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

/hardware/st/nfc/st21nfc/adaptation/
Di2clayer.cc426 int clk_state = -1; in i2cWrite() local
435 if (hal_ctrl_clk && 0 > (clk_state = ioctl(fid, ST21NFC_CLK_STATE, NULL))) { in i2cWrite()
438 clk_state = -1; in i2cWrite()
440 STLOG_HAL_D("ST21NFC_CLK_STATE = %d", clk_state); in i2cWrite()
441 if (clk_state == 1 && (pvBuffer[3] == 0x01 || pvBuffer[3] == 0x03)) { in i2cWrite()
446 } else if (0 > (clk_state = ioctl(fid, ST21NFC_CLK_STATE, NULL))) { in i2cWrite()
449 clk_state = -1; in i2cWrite()
451 if (clk_state != 0) { in i2cWrite()
452 STLOG_HAL_E("CLK_DISABLE STATE ERROR clk_state = %d", clk_state); in i2cWrite()
454 } else if (clk_state == 0 && (pvBuffer[3] == 0x02 || pvBuffer[3] == 0x00)) { in i2cWrite()
[all …]