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 "nci_defs.h" 28 #include "nfc_types.h" 29 30 #include <stdbool.h> 31 32 bool nci_proc_core_rsp(NFC_HDR* p_msg); 33 void nci_proc_rf_management_rsp(NFC_HDR* p_msg); 34 void nci_proc_ee_management_rsp(NFC_HDR* p_msg); 35 void nci_proc_core_ntf(NFC_HDR* p_msg); 36 void nci_proc_rf_management_ntf(NFC_HDR* p_msg); 37 void nci_proc_ee_management_ntf(NFC_HDR* p_msg); 38 void nci_proc_prop_rsp(NFC_HDR* p_msg); 39 void nci_proc_prop_raw_vs_rsp(NFC_HDR* p_msg); 40 void nci_proc_prop_ntf(NFC_HDR* p_msg); 41 42 uint8_t nci_snd_core_reset(uint8_t reset_type); 43 uint8_t nci_snd_core_init(uint8_t nci_version); 44 uint8_t nci_snd_core_get_config(uint8_t* param_ids, uint8_t num_ids); 45 uint8_t nci_snd_core_set_config(uint8_t* p_param_tlvs, uint8_t tlv_size); 46 47 uint8_t nci_snd_core_conn_create(uint8_t dest_type, uint8_t num_tlv, 48 uint8_t tlv_size, uint8_t* p_param_tlvs); 49 uint8_t nci_snd_core_conn_close(uint8_t conn_id); 50 51 uint8_t nci_snd_discover_cmd(uint8_t num, tNCI_DISCOVER_PARAMS* p_param); 52 53 uint8_t nci_snd_discover_select_cmd(uint8_t rf_disc_id, uint8_t protocol, 54 uint8_t rf_interface); 55 uint8_t nci_snd_deactivate_cmd(uint8_t de_act_type); 56 uint8_t nci_snd_discover_map_cmd(uint8_t num, tNCI_DISCOVER_MAPS* p_maps); 57 uint8_t nci_snd_t3t_polling(uint16_t system_code, uint8_t rc, uint8_t tsn); 58 uint8_t nci_snd_parameter_update_cmd(uint8_t* p_param_tlvs, uint8_t tlv_size); 59 uint8_t nci_snd_iso_dep_nak_presence_check_cmd(); 60 uint8_t nci_snd_core_set_power_sub_state(uint8_t screen_state); 61 62 #if (NFC_NFCEE_INCLUDED == TRUE && NFC_RW_ONLY == FALSE) 63 uint8_t nci_snd_nfcee_discover(uint8_t discover_action); 64 uint8_t nci_snd_nfcee_mode_set(uint8_t nfcee_id, uint8_t nfcee_mode); 65 uint8_t nci_snd_set_routing_cmd(bool more, uint8_t num_tlv, uint8_t tlv_size, 66 uint8_t* p_param_tlvs); 67 uint8_t nci_snd_get_routing_cmd(void); 68 uint8_t nci_snd_nfcee_power_link_control(uint8_t nfcee_id, uint8_t pl_config); 69 #endif 70 71 #endif /* NFC_NCI_MSGS_H */ 72