1 /*
2  * Copyright (C) 2012-2014 NXP Semiconductors
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 #ifndef _PHNXPNCIHAL_ADAPTATION_H_
18 #define _PHNXPNCIHAL_ADAPTATION_H_
19 
20 #include <hardware/hardware.h>
21 #include <hardware/nfc.h>
22 
23 typedef struct {
24   struct nfc_nci_device nci_device;
25 
26   /* Local definitions */
27 } pn547_dev_t;
28 
29 /* NXP HAL functions */
30 
31 int phNxpNciHal_open(nfc_stack_callback_t* p_cback,
32                      nfc_stack_data_callback_t* p_data_cback);
33 int phNxpNciHal_write(uint16_t data_len, const uint8_t* p_data);
34 int phNxpNciHal_core_initialized(uint8_t* p_core_init_rsp_params);
35 int phNxpNciHal_pre_discover(void);
36 int phNxpNciHal_close(void);
37 int phNxpNciHal_control_granted(void);
38 int phNxpNciHal_power_cycle(void);
39 
40 #endif /* _PHNXPNCIHAL_ADAPTATION_H_ */
41