GAP-Peripheral 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 "peripheral_app.h"
#include "bno055_port.h"
#include "bno055.h"
#include "acc_gyro_sensor_service.h"
Variables | |
acc_sensor_t | acc_sensor_value = {0} |
bool | acce_notify_enabled = false |
static const uint8_t | adv_data [] |
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 |
bool | app_notify_timer_expired = false |
static const ble_pairing_event_cb_t | app_pairing_event_handle |
static const ble_gatt_transparent_event_cb_t | app_transparent_event_handle |
static ble_service_t * | ble_service = NULL |
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 | gyro_notify_enabled = false |
gyro_sensor_t | gyro_sensor_value = {0} |
app_ble_remote_device_info_t | remote_device_info |
static const uint8_t | scan_resp_data [] = {0x0C, 0x09, 0x53, 0x65, 0x6E, 0x73, 0x6F, 0x72, 0x2D, 0x44, 0x65, 0x6D, 0x6F} |
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
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 |
|
static |
|
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_notify_enabled, acce_sensor_data_send(), adv_data, app_init(), app_notify_timer_expired, ble_gatt_service_read(), ble_mgr_adv_start(), ble_mgr_device_init(), ble_mgr_get_event(), BLE_SUCCESS, bno055_initialize(), bno055_read_accel_xyz(), bno055_read_gyro_xyz(), app_ble_remote_device_info_t::conn_handle, DBG_LOG, event_buf, gyro_notify_enabled, gyro_sensor_data_send(), hw_timer_init(), hw_timer_register_callback(), scan_resp_data, serial_console_init(), system_init(), and timer_callback_fn().
|
static |
References app_notify_timer_expired.
Referenced by main().
acc_sensor_t acc_sensor_value = {0} |
|
static |
|
static |
|
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} |
gyro_sensor_t gyro_sensor_value = {0} |
app_ble_remote_device_info_t remote_device_info |
|
static |
Referenced by app_disconnected_cb(), and main().