Home | History | Annotate | Download | only in inc
      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 {
     25     struct nfc_nci_device nci_device;
     26 
     27     /* Local definitions */
     28 } pn547_dev_t;
     29 
     30 /* NXP HAL functions */
     31 
     32 int phNxpNciHal_open(nfc_stack_callback_t *p_cback,
     33         nfc_stack_data_callback_t *p_data_cback);
     34 int phNxpNciHal_write(uint16_t data_len, const uint8_t *p_data);
     35 int phNxpNciHal_core_initialized(uint8_t* p_core_init_rsp_params);
     36 int phNxpNciHal_pre_discover(void);
     37 int phNxpNciHal_close(void);
     38 int phNxpNciHal_control_granted(void);
     39 int phNxpNciHal_power_cycle(void);
     40 
     41 #endif /* _PHNXPNCIHAL_ADAPTATION_H_ */
     42