#include "platform.h"
#include "at_ble_api.h"
#include "gapm_task.h"
#include "gapc_task.h"
#include "gattc_task.h"
#include "gattm_task.h"
#include "wifiprov_task.h"
#include "device.h"
#include "interface.h"
#include "event.h"
Data Structures | |
struct | event |
Macros | |
#define | EVENT_POOL_DEPTH 10 |
Functions | |
at_ble_status_t | at_ble_event_get (at_ble_events_t *event, void *params, uint32_t timeout) |
extracts the next event form the event queue More... | |
at_ble_status_t | at_ble_event_user_defined_post (void *params) |
Posts a user defined custom event into the event queue, allowing the user code to process other events in the same event handling loop. More... | |
static void | event_free (struct event *event) |
static at_ble_status_t | event_get (uint16_t *msg_id, uint16_t *src_id, uint8_t **data, uint32_t timeout) |
void | event_init (void) |
void | event_post (uint16_t msg_id, uint16_t src_id, void *data) |
static at_ble_events_t | handle_ble_event (uint16_t msg_id, uint16_t src_id, uint8_t *data, void *params) |
uint32_t | special_events_handler (uint16_t msg_id, uint16_t src_id, uint8_t *data) |
Variables | |
static struct event * | event_free_list |
static struct event * | event_pending_list |
static struct event | event_pool [EVENT_POOL_DEPTH] |
struct str_watched_event | watched_event |
#define EVENT_POOL_DEPTH 10 |
Referenced by event_init().
|
static |
References event, and event_free_list.
Referenced by event_get(), and event_init().
|
static |
References AT_BLE_SUCCESS, AT_BLE_TIMEOUT, event_free(), event_pending_list, event::next, NULL, platform_event_wait(), event::src_id, and status.
Referenced by at_ble_event_get().
void event_init | ( | void | ) |
References event_free(), event_pool, EVENT_POOL_DEPTH, and NULL.
Referenced by at_ble_init().
void event_post | ( | uint16_t | msg_id, |
uint16_t | src_id, | ||
void * | data | ||
) |
References event::data, event_free_list, event_pending_list, event::msg_id, event::next, NULL, platform_event_signal(), and event::src_id.
Referenced by at_ble_event_user_defined_post(), and platform_interface_callback().
|
static |
References AT_BLE_CHARACTERISTIC_CHANGED, AT_BLE_CHARACTERISTIC_FOUND, AT_BLE_CHARACTERISTIC_READ_RESPONSE, AT_BLE_CONN_PARAM_UPDATE_DONE, AT_BLE_DESCRIPTOR_FOUND, AT_BLE_DISCONNECTED, AT_BLE_ENCRYPTION_REQUEST, AT_BLE_ENCRYPTION_STATUS_CHANGED, AT_BLE_INCLUDED_SERVICE_FOUND, AT_BLE_MAX_PA_GAIN_VALUE, AT_BLE_PRIMARY_SERVICE_FOUND, AT_BLE_RAND_ADDR_CHANGED, AT_BLE_RESOLV_RAND_ADDR_STATUS, AT_BLE_RX_POWER_VALUE, AT_BLE_SCAN_INFO, AT_BLE_SERVICE_CHANGED_NOTIFICATION_CONFIRMED, AT_BLE_SLAVE_SEC_REQUEST, AT_BLE_TX_POWER_SET, AT_BLE_TX_POWER_VALUE, AT_BLE_UNDEFINED_EVENT, AT_BLE_WIFIPROV_COMPLETE_IND, AT_BLE_WIFIPROV_SCAN_MODE_CHANGE_IND, device, GAPC_BOND_IND, gapc_bond_ind(), GAPC_BOND_REQ_IND, gapc_bond_req_ind(), GAPC_CMP_EVT, gapc_cmp_evt(), GAPC_CON_MAX_PA_GAIN_GET_IND, gapc_con_max_PA_gain_get_ind_parser(), GAPC_CON_RSSI_IND, gapc_con_rssi_ind_parser(), GAPC_CON_TX_POW_GET_IND, gapc_con_tx_pow_get_ind_parser(), GAPC_CON_TX_POW_SET_IND, gapc_con_tx_pow_set_ind_parser(), GAPC_DISCONNECT_IND, gapc_disconnect_ind(), GAPC_ENCRYPT_IND, gapc_encrypt_ind(), GAPC_ENCRYPT_REQ_IND, gapc_encrypt_req_ind(), GAPC_PARAM_UPDATE_REQ_IND, gapc_param_update_req_ind(), GAPC_PARAM_UPDATED_IND, gapc_param_updated_ind(), gapc_sec_req_ind(), GAPC_SECURITY_IND, GAPM_ADDR_SOLVED_IND, gapm_addr_solved_ind_handler(), gapm_adv_report_evt_handler(), GAPM_ADV_REPORT_IND, GAPM_CMP_EVT, gapm_cmp_evt(), GAPM_DEV_BDADDR_IND, gapm_dev_bdaddr_ind_handler(), GATTC_CMP_EVT, gattc_complete_evt_handler(), GATTC_DISC_CHAR_DESC_IND, gattc_disc_char_desc_ind_parser(), GATTC_DISC_CHAR_IND, gattc_disc_char_ind_parser(), GATTC_DISC_SVC_INCL_IND, gattc_disc_svc_incl_ind_parser(), GATTC_DISC_SVC_IND, gattc_disc_svc_ind_parser(), GATTC_EVENT_IND, gattc_event_ind_parser(), GATTC_READ_IND, gattc_read_ind_parser(), GATTC_SVC_CHANGED_CFG_IND, GATTC_WRITE_CMD_IND, gattc_write_cmd_ind(), device_info::role, ROLE_SLAVE, WIFIPROV_COMPLETE_IND, wifiprov_complete_ind_handler(), WIFIPROV_SCAN_MODE_CHANGE_IND, and wifiprov_scan_mode_change_ind_handler().
Referenced by at_ble_event_get().
uint32_t special_events_handler | ( | uint16_t | msg_id, |
uint16_t | src_id, | ||
uint8_t * | data | ||
) |
|
static |
Referenced by event_free(), and event_post().
|
static |
Referenced by event_get(), and event_post().
|
static |
Referenced by event_init().
struct str_watched_event watched_event |
Referenced by interface_send_wait(), and special_events_handler().