1 #ifndef __NFC_SEC_HAL__ 2 #define __NFC_SEC_HAL__ 3 4 #include <android/hardware/nfc/1.2/INfc.h> 5 #include <android/hardware/nfc/1.2/types.h> 6 #include <hardware/nfc.h> 7 8 using ::android::hardware::nfc::V1_2::NfcConfig; 9 10 int nfc_hal_init(void); 11 void nfc_hal_deinit(void); 12 int nfc_hal_open(nfc_stack_callback_t* p_cback, 13 nfc_stack_data_callback_t* p_data_cback); 14 int nfc_hal_write(uint16_t data_len, const uint8_t* p_data); 15 int nfc_hal_core_initialized(uint8_t* p_core_init_rsp_params); 16 int nfc_hal_pre_discover(); 17 int nfc_hal_close(); 18 int nfc_hal_control_granted(); 19 int nfc_hal_power_cycle(); 20 21 int nfc_hal_factory_reset(void); 22 int nfc_hal_closeForPowerOffCase(void); 23 void nfc_hal_getVendorConfig(android::hardware::nfc::V1_1::NfcConfig& config); 24 void nfc_hal_getVendorConfig_1_2(NfcConfig& config); 25 26 #endif // __NFC_SEC_HAL__ 27