#include "event.h"
Functions | |
at_ble_status_t | interface_send (uint8_t *msg, uint16_t u16TxLen) |
at_ble_status_t | interface_send_wait (uint8_t *msg, uint16_t u16TxLen, uint16_t msg_id, uint16_t src_id, uint8_t **rsp) |
Variables | |
uint8_t | interface_send_msg [INTERFACE_SEND_BUF_MAX] |
#define INTERFACE_API_PKT_ID 0x05 |
Referenced by platform_interface_callback().
#define INTERFACE_HDR_LENGTH 9 |
Referenced by interface_send(), and platform_interface_callback().
#define INTERFACE_MSG_DONE | ( | ) | }while(0) |
Referenced by dbg_le_get_bd_addr_req_handler(), dbg_le_set_bd_addr_req_handler(), dbg_rd_mem_req_handler(), dbg_rd_mem_req_handler32(), dbg_set_tx_pw_req_handler(), dbg_wr_mem_req_handler(), dbg_wr_mem_req_handler32(), dbg_wr_mem_req_handler32_reset(), gapc_bond_cfm_handler_key_exch(), gapc_bond_cfm_handler_pair_resp(), gapc_bond_cmd_handler(), gapc_connection_cfm_handler(), gapc_disconnect_cmd_handler(), gapc_encrypt_cfm_handler(), gapc_encrypt_cmd_handler(), gapc_get_info_cmd_handler(), gapc_get_tx_pwr_req_handler(), gapc_key_exch(), gapc_param_update_cfm_handler(), gapc_param_update_cmd_handler(), gapc_security_cmd_handler(), gapc_set_tx_pwr_req_handler(), gapm_cancel_cmd_handler(), gapm_connection_cfm_handler(), gapm_reset_req_handler(), gapm_resolv_addr_cmd_handler(), gapm_set_dev_config_cmd_handler(), gapm_set_dev_name_handler(), gapm_start_adv_cmd_handler(), gapm_start_connection_cmd_handler(), gapm_start_scan_cmd_handler(), gapm_white_list_mgm_cmd(), gattc_disc_cmd_handler(), gattc_execute_write_cmd_handler(), gattc_mtu_cmd_handler(), gattc_read_cmd_handler_by_uuid(), gattc_read_cmd_handler_multible(), gattc_read_cmd_handler_simple_read(), gattc_reg_to_peer_handler(), gattc_send_evt_cmd_handler(), gattc_svc_changed_notification_cmd_handler(), gattc_write_cmd_handler(), gattc_write_cmd_ind(), gattc_write_cmd_ind_handler(), gattm_add_attribute_req_handler(), gattm_add_svc_req_handler(), gattm_att_get_value_req_handler(), gattm_att_set_value_req_handler(), wifiprov_configure_provisioning(), wifiprov_create_db(), wifiprov_disable(), wifiprov_scan_list_ind_send(), wifiprov_scan_mode_change_ind_send(), wifiprov_start(), and wifiprov_wifi_con_update().
#define INTERFACE_MSG_INIT | ( | msg_id, | |
dest_id | |||
) |
Referenced by dbg_le_get_bd_addr_req_handler(), dbg_le_set_bd_addr_req_handler(), dbg_rd_mem_req_handler(), dbg_rd_mem_req_handler32(), dbg_set_tx_pw_req_handler(), dbg_wr_mem_req_handler(), dbg_wr_mem_req_handler32(), dbg_wr_mem_req_handler32_reset(), gapc_bond_cfm_handler_key_exch(), gapc_bond_cfm_handler_pair_resp(), gapc_bond_cmd_handler(), gapc_connection_cfm_handler(), gapc_disconnect_cmd_handler(), gapc_encrypt_cfm_handler(), gapc_encrypt_cmd_handler(), gapc_get_info_cmd_handler(), gapc_get_tx_pwr_req_handler(), gapc_key_exch(), gapc_param_update_cfm_handler(), gapc_param_update_cmd_handler(), gapc_security_cmd_handler(), gapc_set_tx_pwr_req_handler(), gapm_cancel_cmd_handler(), gapm_connection_cfm_handler(), gapm_reset_req_handler(), gapm_resolv_addr_cmd_handler(), gapm_set_dev_config_cmd_handler(), gapm_set_dev_name_handler(), gapm_start_adv_cmd_handler(), gapm_start_connection_cmd_handler(), gapm_start_scan_cmd_handler(), gapm_white_list_mgm_cmd(), gattc_disc_cmd_handler(), gattc_execute_write_cmd_handler(), gattc_mtu_cmd_handler(), gattc_read_cmd_handler_by_uuid(), gattc_read_cmd_handler_multible(), gattc_read_cmd_handler_simple_read(), gattc_reg_to_peer_handler(), gattc_send_evt_cmd_handler(), gattc_svc_changed_notification_cmd_handler(), gattc_write_cmd_handler(), gattc_write_cmd_ind(), gattc_write_cmd_ind_handler(), gattm_add_attribute_req_handler(), gattm_add_svc_req_handler(), gattm_att_get_value_req_handler(), gattm_att_set_value_req_handler(), wifiprov_configure_provisioning(), wifiprov_create_db(), wifiprov_disable(), wifiprov_scan_list_ind_send(), wifiprov_scan_mode_change_ind_send(), wifiprov_start(), and wifiprov_wifi_con_update().
Referenced by dbg_le_set_bd_addr_req_handler(), dbg_wr_mem_req_handler(), dbg_wr_mem_req_handler32(), dbg_wr_mem_req_handler32_reset(), gapc_bond_cfm_handler_key_exch(), gapc_connection_cfm_handler(), gapc_encrypt_cfm_handler(), gapc_encrypt_cmd_handler(), gapc_key_exch(), gapm_connection_cfm_handler(), gapm_resolv_addr_cmd_handler(), gapm_set_dev_config_cmd_handler(), gapm_set_dev_name_handler(), gapm_start_adv_cmd_handler(), gapm_start_connection_cmd_handler(), gapm_start_scan_cmd_handler(), gapm_white_list_mgm_cmd(), gattc_disc_cmd_handler(), gattc_read_cmd_handler_by_uuid(), gattc_write_cmd_handler(), gattc_write_cmd_ind_handler(), gattm_add_attribute_req_handler(), gattm_att_set_value_req_handler(), wifiprov_configure_provisioning(), wifiprov_scan_list_ind_send(), and wifiprov_start().
Referenced by gapm_start_adv_cmd_handler().
#define INTERFACE_PACK_ARG_UINT16 | ( | arg | ) |
Referenced by dbg_set_tx_pw_req_handler(), gapc_encrypt_cmd_handler(), gapc_get_tx_pwr_req_handler(), gapc_key_exch(), gapc_param_update_cfm_handler(), gapc_param_update_cmd_handler(), gapc_set_tx_pwr_req_handler(), gapm_connection_cfm_handler(), gapm_set_dev_config_cmd_handler(), gapm_start_adv_cmd_handler(), gapm_start_connection_cmd_handler(), gapm_start_scan_cmd_handler(), gattc_disc_cmd_handler(), gattc_read_cmd_handler_by_uuid(), gattc_read_cmd_handler_multible(), gattc_read_cmd_handler_simple_read(), gattc_reg_to_peer_handler(), gattc_send_evt_cmd_handler(), gattc_svc_changed_notification_cmd_handler(), gattc_write_cmd_handler(), gattc_write_cmd_ind(), gattm_add_attribute_req_handler(), gattm_add_svc_req_handler(), gattm_att_get_value_req_handler(), and gattm_att_set_value_req_handler().
#define INTERFACE_PACK_ARG_UINT32 | ( | arg | ) |
Referenced by dbg_rd_mem_req_handler(), dbg_rd_mem_req_handler32(), dbg_wr_mem_req_handler(), dbg_wr_mem_req_handler32(), dbg_wr_mem_req_handler32_reset(), and gapc_connection_cfm_handler().
#define INTERFACE_PACK_ARG_UINT8 | ( | arg | ) | *__ptr++ = (arg) |
Referenced by dbg_rd_mem_req_handler(), dbg_rd_mem_req_handler32(), dbg_set_tx_pw_req_handler(), dbg_wr_mem_req_handler(), dbg_wr_mem_req_handler32(), dbg_wr_mem_req_handler32_reset(), gapc_bond_cfm_handler_key_exch(), gapc_bond_cfm_handler_pair_resp(), gapc_bond_cmd_handler(), gapc_connection_cfm_handler(), gapc_disconnect_cmd_handler(), gapc_encrypt_cfm_handler(), gapc_encrypt_cmd_handler(), gapc_get_info_cmd_handler(), gapc_get_tx_pwr_req_handler(), gapc_key_exch(), gapc_param_update_cfm_handler(), gapc_param_update_cmd_handler(), gapc_security_cmd_handler(), gapc_set_tx_pwr_req_handler(), gapm_cancel_cmd_handler(), gapm_connection_cfm_handler(), gapm_reset_req_handler(), gapm_resolv_addr_cmd_handler(), gapm_set_dev_config_cmd_handler(), gapm_set_dev_name_handler(), gapm_start_adv_cmd_handler(), gapm_start_connection_cmd_handler(), gapm_start_scan_cmd_handler(), gapm_white_list_mgm_cmd(), gattc_disc_cmd_handler(), gattc_execute_write_cmd_handler(), gattc_mtu_cmd_handler(), gattc_read_cmd_handler_by_uuid(), gattc_read_cmd_handler_multible(), gattc_read_cmd_handler_simple_read(), gattc_reg_to_peer_handler(), gattc_send_evt_cmd_handler(), gattc_svc_changed_notification_cmd_handler(), gattc_write_cmd_handler(), gattc_write_cmd_ind(), gattm_add_attribute_req_handler(), gattm_add_svc_req_handler(), wifiprov_configure_provisioning(), wifiprov_create_db(), wifiprov_scan_mode_change_ind_send(), and wifiprov_wifi_con_update().
#define INTERFACE_PACK_LEN | ( | ) |
#define INTERFACE_RCV_BUFF_LEN 500 |
Referenced by platform_interface_callback().
#define INTERFACE_SEND_BUF_MAX 600 |
#define INTERFACE_SEND_NO_WAIT | ( | ) | interface_send(interface_send_msg, (__ptr - &interface_send_msg[INTERFACE_HDR_LENGTH])) |
Referenced by dbg_wr_mem_req_handler32_reset(), gapc_bond_cfm_handler_key_exch(), gapc_bond_cfm_handler_pair_resp(), gapc_bond_cmd_handler(), gapc_connection_cfm_handler(), gapc_disconnect_cmd_handler(), gapc_encrypt_cfm_handler(), gapc_encrypt_cmd_handler(), gapc_get_info_cmd_handler(), gapc_get_tx_pwr_req_handler(), gapc_key_exch(), gapc_param_update_cfm_handler(), gapc_param_update_cmd_handler(), gapc_security_cmd_handler(), gapc_set_tx_pwr_req_handler(), gapm_cancel_cmd_handler(), gapm_connection_cfm_handler(), gapm_resolv_addr_cmd_handler(), gapm_start_adv_cmd_handler(), gapm_start_connection_cmd_handler(), gapm_start_scan_cmd_handler(), gattc_disc_cmd_handler(), gattc_execute_write_cmd_handler(), gattc_mtu_cmd_handler(), gattc_read_cmd_handler_by_uuid(), gattc_read_cmd_handler_multible(), gattc_read_cmd_handler_simple_read(), gattc_reg_to_peer_handler(), gattc_send_evt_cmd_handler(), gattc_svc_changed_notification_cmd_handler(), gattc_write_cmd_handler(), gattc_write_cmd_ind(), gattc_write_cmd_ind_handler(), wifiprov_disable(), wifiprov_scan_list_ind_send(), wifiprov_scan_mode_change_ind_send(), wifiprov_start(), and wifiprov_wifi_con_update().
#define INTERFACE_SEND_WAIT | ( | msg_id, | |
src_id | |||
) | interface_send_wait(interface_send_msg, (__ptr - &interface_send_msg[INTERFACE_HDR_LENGTH]), msg_id, src_id, &__ptr) |
Referenced by dbg_le_get_bd_addr_req_handler(), dbg_le_set_bd_addr_req_handler(), dbg_rd_mem_req_handler(), dbg_rd_mem_req_handler32(), dbg_set_tx_pw_req_handler(), dbg_wr_mem_req_handler(), dbg_wr_mem_req_handler32(), gapm_reset_req_handler(), gapm_set_dev_config_cmd_handler(), gapm_set_dev_name_handler(), gapm_white_list_mgm_cmd(), gattm_add_attribute_req_handler(), gattm_add_svc_req_handler(), gattm_att_get_value_req_handler(), gattm_att_set_value_req_handler(), wifiprov_configure_provisioning(), and wifiprov_create_db().
Referenced by dbg_le_get_bd_addr_req_handler(), dbg_rd_mem_req_handler(), dbg_rd_mem_req_handler32(), gapc_bond_ind(), gapc_con_req_ind(), gapc_encrypt_req_ind(), gapm_addr_solved_ind_handler(), gapm_adv_report_evt_handler(), gapm_dev_bdaddr_ind_handler(), gattc_disc_char_desc_ind_parser(), gattc_disc_char_ind_parser(), gattc_disc_svc_incl_ind_parser(), gattc_disc_svc_ind_parser(), gattc_event_ind_parser(), gattc_read_ind_parser(), gattc_write_cmd_ind(), gattm_att_get_value_req_handler(), and wifiprov_complete_ind_handler().
#define INTERFACE_UNPACK_DONE | ( | ) | }while(0) |
Referenced by gapc_bond_ind(), gapc_bond_req_ind(), gapc_cmp_evt(), gapc_con_max_PA_gain_get_ind_parser(), gapc_con_req_ind(), gapc_con_rssi_ind_parser(), gapc_con_tx_pow_get_ind_parser(), gapc_con_tx_pow_set_ind_parser(), gapc_disconnect_ind(), gapc_encrypt_ind(), gapc_encrypt_req_ind(), gapc_param_update_req_ind(), gapc_param_updated_ind(), gapc_sec_req_ind(), gapm_addr_solved_ind_handler(), gapm_adv_report_evt_handler(), gapm_cmp_evt(), gapm_dev_bdaddr_ind_handler(), gattc_complete_evt_handler(), gattc_disc_char_desc_ind_parser(), gattc_disc_char_ind_parser(), gattc_disc_svc_incl_ind_parser(), gattc_disc_svc_ind_parser(), gattc_event_ind_parser(), gattc_read_ind_parser(), gattc_write_cmd_ind(), platform_interface_callback(), wifiprov_complete_ind_handler(), and wifiprov_scan_mode_change_ind_handler().
#define INTERFACE_UNPACK_INIT | ( | ptr | ) |
Referenced by gapc_bond_ind(), gapc_bond_req_ind(), gapc_cmp_evt(), gapc_con_max_PA_gain_get_ind_parser(), gapc_con_req_ind(), gapc_con_rssi_ind_parser(), gapc_con_tx_pow_get_ind_parser(), gapc_con_tx_pow_set_ind_parser(), gapc_disconnect_ind(), gapc_encrypt_ind(), gapc_encrypt_req_ind(), gapc_param_update_req_ind(), gapc_param_updated_ind(), gapc_sec_req_ind(), gapm_addr_solved_ind_handler(), gapm_adv_report_evt_handler(), gapm_cmp_evt(), gapm_dev_bdaddr_ind_handler(), gattc_complete_evt_handler(), gattc_disc_char_desc_ind_parser(), gattc_disc_char_ind_parser(), gattc_disc_svc_incl_ind_parser(), gattc_disc_svc_ind_parser(), gattc_event_ind_parser(), gattc_read_ind_parser(), gattc_write_cmd_ind(), platform_interface_callback(), wifiprov_complete_ind_handler(), and wifiprov_scan_mode_change_ind_handler().
#define INTERFACE_UNPACK_UINT16 | ( | ptr | ) |
Referenced by gapc_bond_ind(), gapc_con_req_ind(), gapc_disconnect_ind(), gapc_encrypt_req_ind(), gapc_param_update_req_ind(), gapc_param_updated_ind(), gattc_disc_char_desc_ind_parser(), gattc_disc_char_ind_parser(), gattc_disc_svc_incl_ind_parser(), gattc_disc_svc_ind_parser(), gattc_event_ind_parser(), gattc_read_ind_parser(), gattc_write_cmd_ind(), gattm_add_attribute_req_handler(), gattm_add_svc_req_handler(), gattm_att_get_value_req_handler(), gattm_att_set_value_req_handler(), and platform_interface_callback().
#define INTERFACE_UNPACK_UINT32 | ( | ptr | ) |
Referenced by dbg_le_set_bd_addr_req_handler(), dbg_rd_mem_req_handler(), dbg_rd_mem_req_handler32(), dbg_set_tx_pw_req_handler(), dbg_wr_mem_req_handler(), dbg_wr_mem_req_handler32(), gapc_bond_ind(), gapc_bond_req_ind(), gapc_cmp_evt(), gapc_con_max_PA_gain_get_ind_parser(), gapc_con_req_ind(), gapc_con_rssi_ind_parser(), gapc_con_tx_pow_get_ind_parser(), gapc_con_tx_pow_set_ind_parser(), gapc_disconnect_ind(), gapc_encrypt_ind(), gapc_sec_req_ind(), gapm_adv_report_evt_handler(), gapm_cmp_evt(), gapm_reset_req_handler(), gapm_set_dev_config_cmd_handler(), gapm_set_dev_name_handler(), gattc_complete_evt_handler(), gattc_disc_char_desc_ind_parser(), gattc_disc_char_ind_parser(), gattc_disc_svc_incl_ind_parser(), gattc_disc_svc_ind_parser(), gattc_event_ind_parser(), gattc_write_cmd_ind(), gattm_add_attribute_req_handler(), gattm_add_svc_req_handler(), gattm_att_get_value_req_handler(), gattm_att_set_value_req_handler(), wifiprov_complete_ind_handler(), wifiprov_configure_provisioning(), wifiprov_create_db(), and wifiprov_scan_mode_change_ind_handler().
at_ble_status_t interface_send | ( | uint8_t * | msg, |
uint16_t | u16TxLen | ||
) |
References INTERFACE_HDR_LENGTH, and platform_interface_send().
Referenced by interface_send_wait().
at_ble_status_t interface_send_wait | ( | uint8_t * | msg, |
uint16_t | u16TxLen, | ||
uint16_t | msg_id, | ||
uint16_t | src_id, | ||
uint8_t ** | rsp | ||
) |
uint8_t interface_send_msg[INTERFACE_SEND_BUF_MAX] |