1 /* 2 * Copyright 2022 NXP 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 <phNxpNciHal.h> 19 20 #define STEP_TIME_MS 100 21 22 /** 23 * NFCC power states 24 */ 25 enum NfccStates { 26 STANDBY = 0, 27 ULPDET, 28 ACTIVE, 29 MAX_STATES, 30 }; 31 32 /******************************************************************************* 33 ** 34 ** Function phNxpNciHal_registerToPowerStats() 35 ** 36 ** Description Function to hook with android powerstats HAL. 37 ** This abstracts power stats HAL implementation with power 38 ** tracker feature. 39 ** Parameters None 40 ** Returns NFCSTATUS_FAILED or NFCSTATUS_SUCCESS 41 *******************************************************************************/ 42 NFCSTATUS phNxpNciHal_registerToPowerStats(); 43 44 /******************************************************************************* 45 ** 46 ** Function phNxpNciHal_unregisterPowerStats() 47 ** 48 ** Description Function to unhook from android powerstats HAL. 49 ** This abstracts power stats HAL implementation with power 50 ** tracker feature. 51 ** Parameters None 52 ** Returns NFCSTATUS_FAILED or NFCSTATUS_SUCCESS 53 *******************************************************************************/ 54 NFCSTATUS phNxpNciHal_unregisterPowerStats(); 55