Multilink-Multirole application.
Copyright (c) 2018 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 "multilink_multirole_app.h"
#include "bno055_port.h"
#include "bno055.h"
#include "acc_gyro_sensor_service.h"
|
static |
References adv_data, ble_adv_data_set(), ble_adv_param_set(), ble_scan_resp_data_set(), BLE_SUCCESS, BM_ADV_CONNECTABLE_UNDIRECTED, DBG_LOG, and NULL.
Referenced by main().
|
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, MAX_REMOTE_DEVICE, memcpy_inplace_reorder(), NUMBER_OF_SENSORS, PACKED::sensor_char_list, sensor_service, 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, ble_uuid_val_t::uuid_128b, and ble_uuid_val_t::uuid_16b.
|
static |
|
static |
References ACCE_UUID, BLE_UUID_128B_LEN, and event_msg_t::data.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References PACKED::addr, at_ble_addr_t::addr, APP_DEVICE_ROLE_CENTRAL, APP_DEVICE_ROLE_PERIPHERAL, APP_STATE_DISCOVERY_PENDING, APP_STATE_READY, BLE_ADDR_LEN, ble_adv_start(), BLE_SUCCESS, app_ble_remote_device_info_t::conn_handle, PACKED::conn_handle, PACKED::conn_param, event_msg_t::data, DBG_LOG, MAX_REMOTE_CENTRAL_DEVICE, MAX_REMOTE_DEVICE, app_ble_remote_device_info_t::peer_addr, peer_addr, PACKED::peer_addr, remote_central_device_count, remote_peripheral_device_count, PACKED::role, service_disc_pending, PACKED::status, and PACKED::type.
Referenced by register_connected_callback().
|
static |
References acce_notify_enabled, APP_DEVICE_ROLE_PERIPHERAL, ble_adv_start(), ble_mgr_scan_stop(), BLE_SCAN_DUPLICATE_FILTER_ENABLED, BLE_SCAN_ENABLED, ble_scan_start(), BLE_SUCCESS, PACKED::conn_handle, event_msg_t::data, DBG_LOG, gyro_notify_enabled, hw_timer_stop(), MAX_REMOTE_DEVICE, PACKED::reason, remote_central_device_count, and remote_peripheral_device_count.
|
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.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
void button_cb | ( | void | ) |
int main | ( | void | ) |
References acc_gyro_sensor_service_init(), ACCE_GYRO_SENSOR_SERVICE_UUID, acce_notify_enabled, acce_sensor_data_send(), ACCE_UUID, adv_data, app_adv_param_set(), APP_DEVICE_ROLE_CENTRAL, app_init(), app_notify_timer_expired, APP_STATE_DISCOVERY_PENDING, APP_STATE_READY, ble_adv_start(), ble_gatt_service_read(), BLE_MATCHING_PARAM_PAYLOAD, ble_mgr_adv_stop(), ble_mgr_characteristic_notify_set(), ble_mgr_device_init(), ble_mgr_get_event(), ble_mgr_peripheral_device_match_params(), ble_mgr_scan_start(), ble_mgr_scan_stop(), ble_primary_service_characteristics_discover(), BLE_SCAN_DUPLICATE_FILTER_ENABLED, BLE_SCAN_ENABLED, ble_scan_start(), ble_set_connection_params(), BLE_SUCCESS, BLE_UUID_128B, BLE_UUID_128B_LEN, bno055_initialize(), bno055_read_accel_xyz(), bno055_read_gyro_xyz(), PACKED::cccd_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, found_cccd_index, gyro_notify_enabled, gyro_sensor_data_send(), GYRO_UUID, hw_timer_init(), hw_timer_register_callback(), ble_mgr_adv_report_match_param_t::matching_param, MAX_REMOTE_CENTRAL_DEVICE, MAX_REMOTE_DEVICE, MAX_REMOTE_PERIPHERAL_DEVICE, PACKED::min_conn_interval, NUMBER_OF_SENSORS, remote_central_device_count, remote_peripheral_device_count, scan_resp_data, SENSOR_1_ACCELEROMETER, SENSOR_2_GYROSCOPE, PACKED::sensor_char_list, sensor_service, serial_console_init(), service_disc_pending, PACKED::service_uuid, state, system_init(), timer_callback_fn(), ble_uuid_t::type, ble_uuid_t::uuid, PACKED::uuid, ble_uuid_val_t::uuid_128b, and ble_uuid_val_t::uuid_16b.
|
static |
References app_notify_timer_expired.
Referenced by main().
acc_sensor_t acc_sensor_value = {0} |
Referenced by app_disconnected_cb(), and main().
|
static |
|
static |
|
static |
|
static |
|
static |
Referenced by main(), and timer_callback_fn().
|
static |
|
static |
|
static |
uint8_t event_buf[EVENT_BUFFER_LENGTH] |
Referenced by main().
event_t evt_param = {.event_msg.data = event_buf, .event_msg.data_len = 0, .event_id = 0} |
uint8_t found_cccd_index = 0 |
Referenced by main().
Referenced by app_disconnected_cb(), and main().
gyro_sensor_t gyro_sensor_value = {0} |
uint8_t remote_central_device_count = 0 |
Referenced by app_connected_cb(), app_disconnected_cb(), and main().
app_ble_remote_device_info_t remote_device_info[MAX_REMOTE_DEVICE] = {0} |
uint8_t remote_peripheral_device_count = 0 |
Referenced by app_connected_cb(), app_disconnected_cb(), and main().
|
static |
Referenced by main().
Referenced by app_connected_cb(), app_disconnected_cb(), and main().
acc_sensor_value_t sonsor_data = {0} |