• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 NFC_VENDOR_ADAPTIONS_H
16 #define NFC_VENDOR_ADAPTIONS_H
17 
18 #include "infc_vendor.h"
19 
20 namespace OHOS {
21 namespace HDI {
22 namespace Nfc {
23 class NfcVendorAdaptions : public INfcVendor {
24 public:
25     NfcVendorAdaptions();
26     ~NfcVendorAdaptions() override;
27 
28     int VendorOpen(nfc_stack_callback_t *p_cback,
29                    nfc_stack_data_callback_t *p_data_cback) override;
30     int VendorWrite(uint16_t data_len, const uint8_t *p_data) override;
31     int VendorCoreInitialized(uint16_t core_init_rsp_len,
32                               uint8_t *p_core_init_rsp_params) override;
33     int VendorPrediscover(void) override;
34     int VendorClose(bool bShutdown) override;
35     int VendorControlGranted(void) override;
36     int VendorPowerCycle(void) override;
37     int VendorIoctl(long arg, void *p_data) override;
38 };
39 } // Nfc
40 } // HDI
41 } // OHOS
42 
43 #endif // NFC_VENDOR_ADAPTIONS_H
44