1 /* 2 * Copyright (C) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef I_NFC_VENDOR_H 16 #define I_NFC_VENDOR_H 17 18 #include "phNxpNciHal_Adaptation.h" 19 20 namespace OHOS { 21 namespace HDI { 22 namespace Nfc { 23 class INfcVendor { 24 public: ~INfcVendor()25 virtual ~INfcVendor() {} 26 virtual int VendorOpen(nfc_stack_callback_t *p_cback, 27 nfc_stack_data_callback_t *p_data_cback); 28 virtual int VendorWrite(uint16_t data_len, const uint8_t *p_data); 29 virtual int VendorCoreInitialized(uint16_t core_init_rsp_len, 30 uint8_t *p_core_init_rsp_params); 31 virtual int VendorPrediscover(void); 32 virtual int VendorClose(bool bShutdown); 33 virtual int VendorControlGranted(void); 34 virtual int VendorPowerCycle(void); 35 virtual int VendorIoctl(long arg, void *p_data); 36 }; 37 } // Nfc 38 } // HDI 39 } // OHOS 40 #endif /* I_NFC_VENDOR_H */ 41