1 /* 2 * Copyright (C) 2021 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 #pragma once 17 18 #include <aidl/android/hardware/nfc/INfc.h> 19 #include <aidl/android/hardware/nfc/NfcConfig.h> 20 #include <aidl/android/hardware/nfc/NfcEvent.h> 21 #include <aidl/android/hardware/nfc/NfcStatus.h> 22 #include <aidl/android/hardware/nfc/PresenceCheckAlgorithm.h> 23 #include <aidl/android/hardware/nfc/ProtocolDiscoveryConfig.h> 24 #include "hardware_nfc.h" 25 26 using aidl::android::hardware::nfc::NfcConfig; 27 using aidl::android::hardware::nfc::NfcEvent; 28 using aidl::android::hardware::nfc::NfcStatus; 29 using aidl::android::hardware::nfc::PresenceCheckAlgorithm; 30 using aidl::android::hardware::nfc::ProtocolDiscoveryConfig; 31 32 int Vendor_hal_open(nfc_stack_callback_t* p_cback, nfc_stack_data_callback_t* p_data_cback); 33 int Vendor_hal_write(uint16_t data_len, const uint8_t* p_data); 34 35 int Vendor_hal_core_initialized(); 36 37 int Vendor_hal_pre_discover(); 38 39 int Vendor_hal_close(); 40 41 int Vendor_hal_close_off(); 42 43 int Vendor_hal_power_cycle(); 44 45 void Vendor_hal_factoryReset(); 46 47 void Vendor_hal_getConfig(NfcConfig& config); 48 49 void Vendor_hal_setVerboseLogging(bool enable); 50 51 bool Vendor_hal_getVerboseLogging(); 52