1 /*
2  * Copyright 2021 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 #if (NXP_NFC_RECOVERY == TRUE)
18 
19 #ifndef __PHNXPNCIHAL_RECOVERY_H_
20 #define __PHNXPNCIHAL_RECOVERY_H_
21 
22 #define NCI_MSG_RSP 0x40
23 #define NCI_MSG_NTF 0x60
24 #define NCI_RSP_IDX (0)
25 #define DL_RSP_IDX (0)
26 #define DL_RSP_STAT_IDX (2)
27 #define DL_RSP_SESS_IDX (3)
28 #define DL_MSG_RSP 0x00
29 #define DL_MSG_STAT_RSP 0x00
30 #define DL_SESSION_CLOSE_TAG 0x00
31 
32 // timeout for tml read response
33 #define RESPONSE_READ_TIMEOUT_NS (200 * 1000 * 1000)
34 // timeout for tml write cmd
35 #define WRITE_TIMEOUT_NS (200 * 1000 * 1000)
36 // Time to wait for first NCI rest response
37 #define NCI_RESET_RESP_READ_DELAY_US (10000)
38 
39 void phNxpNciHal_RecoverFWTearDown();
40 #endif
41 #endif
42