1 /* 2 * Copyright 2024 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 #include <phNfcStatus.h> 17 18 /******************************************************************************* 19 * 20 * Function setObserveModeFlag() 21 * 22 * Description It sets the observe mode flag 23 * 24 * Parameters bool - true to enable observe mode 25 * false to disable observe mode 26 * 27 * Returns void 28 * 29 ******************************************************************************/ 30 void setObserveModeFlag(bool flag); 31 32 /******************************************************************************* 33 * 34 * Function isObserveModeEnabled() 35 * 36 * Description It gets the observe mode flag 37 * 38 * Returns bool true if the observed mode is enabled 39 * otherwise false 40 * 41 ******************************************************************************/ 42 bool isObserveModeEnabled(); 43 44 /******************************************************************************* 45 * 46 * Function handleObserveMode() 47 * 48 * Description This handles the ObserveMode command and enables the observe 49 * Mode flag 50 * 51 * Returns It returns number of bytes received. 52 * 53 ******************************************************************************/ 54 int handleObserveMode(uint16_t data_len, const uint8_t* p_data); 55 56 /******************************************************************************* 57 * 58 * Function handleGetObserveModeStatus() 59 * 60 * Description Handles the Get Observe mode command and gives the observe 61 * mode status 62 * 63 * Returns It returns number of bytes received. 64 * 65 ******************************************************************************/ 66 int handleGetObserveModeStatus(uint16_t data_len, const uint8_t* p_data); 67