• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  *  Copyright (C) 2009-2014 Broadcom Corporation
4  *
5  *  Licensed under the Apache License, Version 2.0 (the "License");
6  *  you may not use this file except in compliance with the License.
7  *  You may obtain a copy of the License at:
8  *
9  *  http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  *
17  ******************************************************************************/
18 
19 /******************************************************************************
20  *
21  *  defines NCI interface messages (for DH)
22  *
23  ******************************************************************************/
24 #ifndef NFC_NCI_HMSGS_H
25 #define NFC_NCI_HMSGS_H
26 
27 #include <stdbool.h>
28 
29 #include "nci_defs.h"
30 #include "nfc_target.h"
31 #include "nfc_types.h"
32 
33 bool nci_proc_core_rsp(NFC_HDR* p_msg);
34 void nci_proc_rf_management_rsp(NFC_HDR* p_msg);
35 void nci_proc_ee_management_rsp(NFC_HDR* p_msg);
36 void nci_proc_core_ntf(NFC_HDR* p_msg);
37 void nci_proc_rf_management_ntf(NFC_HDR* p_msg);
38 void nci_proc_ee_management_ntf(NFC_HDR* p_msg);
39 void nci_proc_prop_rsp(NFC_HDR* p_msg);
40 void nci_proc_prop_raw_vs_rsp(NFC_HDR* p_msg);
41 void nci_proc_prop_ntf(NFC_HDR* p_msg);
42 
43 uint8_t nci_snd_core_reset(uint8_t reset_type);
44 uint8_t nci_snd_core_init(uint8_t nci_version);
45 uint8_t nci_snd_core_get_config(uint8_t* param_ids, uint8_t num_ids);
46 uint8_t nci_snd_core_set_config(uint8_t* p_param_tlvs, uint8_t tlv_size);
47 
48 uint8_t nci_snd_core_conn_create(uint8_t dest_type, uint8_t num_tlv,
49                                  uint8_t tlv_size, uint8_t* p_param_tlvs);
50 uint8_t nci_snd_core_conn_close(uint8_t conn_id);
51 
52 uint8_t nci_snd_discover_cmd(uint8_t num, tNCI_DISCOVER_PARAMS* p_param);
53 
54 uint8_t nci_snd_discover_select_cmd(uint8_t rf_disc_id, uint8_t protocol,
55                                     uint8_t rf_interface);
56 uint8_t nci_snd_deactivate_cmd(uint8_t de_act_type);
57 uint8_t nci_snd_discover_map_cmd(uint8_t num, tNCI_DISCOVER_MAPS* p_maps);
58 uint8_t nci_snd_t3t_polling(uint16_t system_code, uint8_t rc, uint8_t tsn);
59 uint8_t nci_snd_parameter_update_cmd(uint8_t* p_param_tlvs, uint8_t tlv_size);
60 uint8_t nci_snd_iso_dep_nak_presence_check_cmd();
61 uint8_t nci_snd_core_set_power_sub_state(uint8_t screen_state);
62 
63 #if (NFC_NFCEE_INCLUDED == TRUE && NFC_RW_ONLY == FALSE)
64 uint8_t nci_snd_nfcee_discover(uint8_t discover_action);
65 uint8_t nci_snd_nfcee_mode_set(uint8_t nfcee_id, uint8_t nfcee_mode);
66 uint8_t nci_snd_set_routing_cmd(bool more, uint8_t num_tlv, uint8_t tlv_size,
67                                 uint8_t* p_param_tlvs);
68 uint8_t nci_snd_get_routing_cmd(void);
69 uint8_t nci_snd_nfcee_power_link_control(uint8_t nfcee_id, uint8_t pl_config);
70 #endif
71 
72 uint8_t nci_snd_rf_extension_control_cmd(uint8_t mode, uint8_t rf_ext_id,
73                                          uint8_t* p_data, uint8_t data_len);
74 uint8_t nci_snd_ep_removal_detection_cmd(uint8_t waiting_time);
75 uint8_t nci_snd_rf_wpt_control_cmd(uint8_t* p_param_tlvs, uint8_t tlv_size);
76 uint8_t nci_snd_android_get_caps_cmd(void);
77 
78 #endif /* NFC_NCI_MSGS_H */
79