GAP-Central application.
Copyright (c) 2018-2021 Microchip Technology Inc. and its subsidiaries.
#include "platform_files.h"
#include "bm_mode.h"
#include "bm_application_mode.h"
#include "bm_utils.h"
#include "event_mem.h"
#include "ble_api.h"
#include "platform.h"
#include "ble_manager.h"
#include "central_app.h"
Variables | |
static const ble_common_event_cb_t | app_common_event_handle |
static const ble_gap_event_cb_t | app_gap_event_handle |
static const ble_gatt_client_event_cb_t | app_gatt_client_event_handle |
static const ble_gatt_server_event_cb_t | app_gatt_server_event_handle |
static const ble_pairing_event_cb_t | app_pairing_event_handle |
static const ble_gatt_transparent_event_cb_t | app_transparent_event_handle |
uint8_t | event_buf [EVENT_BUFFER_LENGTH] |
event_t | evt_param = {.event_msg.data = event_buf, .event_msg.data_len = 0, .event_id = 0} |
bool | is_cccd_found = false |
app_ble_remote_device_info_t | remote_device_info = {0} |
sensor_char_t | sensor_char_list [NUMBER_OF_SENSORS] |
sensor_service_t | sensor_service |
bool | service_disc_pending = false |
acc_sensor_value_t | sonsor_data = {0} |
|
static |
References PACKED::addr, PACKED::adv_event_type, BLE_SUCCESS, event_msg_t::data, PACKED::data_len, DBG_LOG, and PACKED::rssi.
|
static |
References BLE_UUID_16B_LEN, and event_msg_t::data.
|
static |
References PACKED::attrib_data, BLE_SUCCESS, BLE_UUID_128B, BLE_UUID_128B_LEN, BLE_UUID_16B, BLE_UUID_16B_LEN, PACKED::char_attr_handle, PACKED::conn_handle, event_msg_t::data, event_msg_t::data_len, DBG_LOG, PACKED::length, memcpy_inplace_reorder(), NUMBER_OF_SENSORS, PACKED::sensor_char_list, SERVICE_DISC_CHAR_RESP_ATTRIB_HANDLE_START, SERVICE_DISC_CHAR_RESP_CHAR_UUID_START, SERVICE_DISC_CHAR_RESP_CONN_HANDLE_LEN, SERVICE_DISC_CHAR_RESP_LENGTH_LEN, PACKED::uuid, and ble_uuid_val_t::uuid_128b.
|
static |
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References PACKED::addr, BLE_ADDR_LEN, BLE_SUCCESS, app_ble_remote_device_info_t::conn_handle, PACKED::conn_handle, app_ble_remote_device_info_t::conn_param, PACKED::conn_param, event_msg_t::data, app_ble_remote_device_info_t::peer_addr, PACKED::peer_addr, service_disc_pending, PACKED::status, and PACKED::type.
|
static |
References ble_mgr_scan_start(), BLE_SUCCESS, event_msg_t::data, DBG_LOG, PACKED::reason, and service_disc_pending.
|
static |
References BLE_COMMON_EVENT_TYPE, BLE_GAP_EVENT_TYPE, BLE_GATT_CLIENT_EVENT_TYPE, BLE_GATT_SERVER_EVENT_TYPE, BLE_GATT_TP_EVENT_TYPE, ble_mgr_events_register_callback(), and BLE_PAIRING_EVENT_TYPE.
Referenced by main().
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS, and DBG_LOG.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS, and DBG_LOG.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
void button_cb | ( | void | ) |
int main | ( | void | ) |
References ACCE_GYRO_SENSOR_SERVICE_UUID, adv_data, app_init(), BLE_MATCHING_PARAM_PAYLOAD, ble_mgr_characteristic_notify_set(), ble_mgr_device_init(), ble_mgr_get_event(), ble_mgr_peripheral_device_match_params(), ble_mgr_scan_start(), ble_primary_service_characteristics_discover(), ble_set_connection_params(), BLE_SUCCESS, BLE_UUID_128B, PACKED::cccd_handle, PACKED::cccd_value, app_ble_remote_device_info_t::conn_handle, ble_mgr_adv_report_match_param_t::data, ble_mgr_adv_report_match_param_t::data_len, ble_mgr_adv_report_match_param_t::data_start, DBG_LOG, event_buf, is_cccd_found, ble_mgr_adv_report_match_param_t::matching_param, PACKED::min_conn_interval, NUMBER_OF_SENSORS, SENSOR_1_ACCELEROMETER, SENSOR_2_GYROSCOPE, PACKED::sensor_char_list, serial_console_init(), service_disc_pending, system_init(), and ble_uuid_t::type.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
uint8_t event_buf[EVENT_BUFFER_LENGTH] |
event_t evt_param = {.event_msg.data = event_buf, .event_msg.data_len = 0, .event_id = 0} |
app_ble_remote_device_info_t remote_device_info = {0} |
sensor_char_t sensor_char_list[NUMBER_OF_SENSORS] |
sensor_service_t sensor_service |
acc_sensor_value_t sonsor_data = {0} |