1 /****************************************************************************** 2 * 3 * Copyright 2018-2020 NXP 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ******************************************************************************/ 18 19 #ifndef VENDOR_NXP_NXPNFC_V2_0_NXPNFC_H 20 #define VENDOR_NXP_NXPNFC_V2_0_NXPNFC_H 21 22 #include <hidl/MQDescriptor.h> 23 #include <hidl/Status.h> 24 #include <vendor/nxp/nxpnfc/2.0/INxpNfc.h> 25 26 enum Constants : uint16_t { 27 HAL_NFC_ESE_HARD_RESET = 5, 28 }; 29 30 namespace vendor { 31 namespace nxp { 32 namespace nxpnfc { 33 namespace V2_0 { 34 namespace implementation { 35 36 using ::android::hardware::hidl_vec; 37 using ::android::hardware::Return; 38 using ::android::hardware::Void; 39 using ::android::hidl::base::V1_0::IBase; 40 using ::vendor::nxp::nxpnfc::V2_0::INxpNfc; 41 42 struct NxpNfc : public INxpNfc { 43 Return<void> getVendorParam(const ::android::hardware::hidl_string& key, 44 getVendorParam_cb _hidl_cb) override; 45 Return<bool> setVendorParam( 46 const ::android::hardware::hidl_string& key, 47 const ::android::hardware::hidl_string& value) override; 48 Return<bool> resetEse(uint64_t resetType) override; 49 Return<bool> setEseUpdateState(NxpNfcHalEseState state) override; 50 Return<bool> setNxpTransitConfig( 51 const ::android::hardware::hidl_string& strval) override; 52 Return<bool> isJcopUpdateRequired() override; 53 Return<bool> isLsUpdateRequired() override; 54 }; 55 56 } // namespace implementation 57 } // namespace V2_0 58 } // namespace nxpnfc 59 } // namespace nxp 60 } // namespace vendor 61 62 #endif // VENDOR_NXP_NXPNFC_V2_0_NXPNFC_H 63