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