ST25DV16 GPO Interrupt
Hello everyone,
I am trying to control the GPO interrupt of ST25DV16 using X-CUBE-NFC04. I know that I should change the GPO register. As I want to use GPO_RFWRITE and GPO_ENABLE so the register value should be 0xC0. But when I want to use function CUSTOM_NFCTAG_WriteRegister, it doesn't work. I guess another function, CUSTOM_NFCTAG_ConfigIT, can also control the GPO interruption, but it doesn't work as well(these functions never return NFCTAG_OK). I am sure that I can read UID successfully and I can receive GPO interrupt(at default setting) successfully. The following are some of my codes:
if(CUSTOM_NFCTAG_Init("ST25DV16")!=HAL_OK) {
Error_Handler();
}
else{
CUSTOM_GPO_Init();
if(CUSTOM_NFCTAG_WriteRegister("ST25DV16", 0xC0, 0x0000, 1) == NFCTAG_OK){
HAL_UART_Transmit(&huart2,"writereg Success", strlen("writereg Success"), 0xFFFF);
}
if(CUSTOM_NFCTAG_ConfigIT("ST25DV16", ST25DV_GPO_ENABLE_MASK | ST25DV_GPO_RFWRITE_MASK)==NFCTAG_OK){
HAL_UART_Transmit(&huart2,"IT Success", strlen("IT Success"), 0xFFFF);
}
}
