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