1 /*
2  * Copyright 2022-2023 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 
17 #include <phNxpNciHal_ext.h>
18 
19 /*******************************************************************************
20 **
21 ** Function         phNxpNciHal_isULPDetSupported()
22 **
23 ** Description      this function is to check ULPDet feature is supported or not
24 **
25 ** Returns          true or false
26 *******************************************************************************/
27 bool phNxpNciHal_isULPDetSupported();
28 
29 /*******************************************************************************
30 **
31 ** Function         phNxpNciHal_setULPDetFlag()
32 **
33 ** Description      this function is called by Framework API to set ULPDet mode
34 **                  enable/disable
35 **
36 ** Parameters       flag - true to enable ULPDet, false to disable
37 **
38 ** Returns          true or false
39 *******************************************************************************/
40 void phNxpNciHal_setULPDetFlag(bool flag);
41 
42 /*******************************************************************************
43 **
44 ** Function         phNxpNciHal_getULPDetFlag()
45 **
46 ** Description      this function get the ULPDet state, true if it is enabled
47 **                  false if it is disabled
48 **
49 ** Returns          true or false
50 *******************************************************************************/
51 bool phNxpNciHal_getULPDetFlag();
52 
53 /*******************************************************************************
54 **
55 ** Function         phNxpNciHal_propConfULPDetMode()
56 **
57 ** Description      this function applies the configurations to enable/disable
58 **                  ULPDet Mode
59 **
60 ** Parameters       bEnable - true to enable, false to disable
61 **
62 ** Returns          NFCSTATUS_FAILED or NFCSTATUS_SUCCESS
63 *******************************************************************************/
64 NFCSTATUS phNxpNciHal_propConfULPDetMode(bool bEnable);
65 
66 /*******************************************************************************
67 **
68 ** Function         phNxpNciHal_handleULPDetCommand()
69 **
70 ** Description      This handles the ULPDET command and sets the ULPDET flag
71 **
72 ** Returns          It returns number of bytes received.
73 *******************************************************************************/
74 int phNxpNciHal_handleULPDetCommand(uint16_t data_len, const uint8_t* p_data);
75