summaryrefslogtreecommitdiff
path: root/extns/impl/nxpnfc/2.0/NxpNfc.h
blob: 2f09058eebd22003ba4362a0d2bcc0b123b3ac7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/******************************************************************************
 *
 *  Copyright 2018-2020 NXP
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 ******************************************************************************/

#ifndef VENDOR_NXP_NXPNFC_V2_0_NXPNFC_H
#define VENDOR_NXP_NXPNFC_V2_0_NXPNFC_H

#include <vendor/nxp/nxpnfc/2.0/INxpNfc.h>
#include <hidl/MQDescriptor.h>
#include <hidl/Status.h>

enum Constants : uint16_t {
    HAL_NFC_ESE_HARD_RESET = 5,
};


namespace vendor {
namespace nxp {
namespace nxpnfc {
namespace V2_0 {
namespace implementation {

using ::android::hidl::base::V1_0::IBase;
using ::vendor::nxp::nxpnfc::V2_0::INxpNfc;
using ::android::hardware::hidl_vec;
using ::android::hardware::Return;
using ::android::hardware::Void;

struct NxpNfc : public INxpNfc{
  Return<void> getVendorParam(const ::android::hardware::hidl_string &key,
                                 getVendorParam_cb _hidl_cb) override;
  Return<bool>
  setVendorParam(const ::android::hardware::hidl_string &key,
                    const ::android::hardware::hidl_string &value) override;
  Return<bool> resetEse(uint64_t resetType) override;
  Return<bool> setEseUpdateState(NxpNfcHalEseState state) override;
  Return<bool> setNxpTransitConfig(const ::android::hardware::hidl_string &strval) override;
  Return<bool> isJcopUpdateRequired() override;
  Return<bool> isLsUpdateRequired() override;
};

}  // namespace implementation
}  // namespace V2_0
}  // namespace nxpnfc
}  // namespace nxp
}  // namespace vendor

#endif  // VENDOR_NXP_NXPNFC_V2_0_NXPNFC_H