Accelerometer Gyroscope sensor service functionalities.
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 "ble_manager.h"
#include "bno055_port.h"
#include "bno055.h"
#include "acc_gyro_sensor_service.h"
Functions | |
ble_service_t * | acc_gyro_sensor_service_init (acc_sensor_t *acc_sensor_char, gyro_sensor_t *gyro_sensor_char) |
ble_status_t | acce_sensor_data_send (acc_sensor_t *acce_data, uint8_t conn_handle) |
ble_status_t | gyro_sensor_data_send (gyro_sensor_t *gyro_data, uint8_t conn_handle) |
Variables | |
ble_char_t | sensor_char [2] = {0} |
ble_service_t | sensor_service = {0} |
ble_service_t* acc_gyro_sensor_service_init | ( | acc_sensor_t * | acc_sensor_char, |
gyro_sensor_t * | gyro_sensor_char | ||
) |
References ACCE_GYRO_SENSOR_SERVICE_UUID, ACCE_UUID, BLE_CHAR_NOTIFY, BLE_CHAR_READ, BLE_PM_WRITABLE, BLE_UUID_128B, BLE_UUID_128B_LEN, ble_client_char_config_desc_t::ccd_included, ble_client_char_config_desc_t::ccd_value, PACKED::char_count, PACKED::char_handle, PACKED::char_list, PACKED::char_val, PACKED::client_config_desc, GYRO_UUID, PACKED::handle, ble_client_char_config_desc_t::handle, PACKED::init_value, PACKED::len, PACKED::max_len, memcpy_inplace_reorder(), ble_client_char_config_desc_t::perm, PACKED::perm, PACKED::permissions, PRIMARY_SERVICE, PACKED::properties, sensor_char, sensor_service, PACKED::type, PACKED::uuid, ble_uuid_val_t::uuid_128b, and PACKED::value_handle.
Referenced by main().
ble_status_t acce_sensor_data_send | ( | acc_sensor_t * | acce_data, |
uint8_t | conn_handle | ||
) |
References ble_characteristic_value_send(), PACKED::char_list, PACKED::char_val, DBG_LOG, memcpy_inplace_reorder(), PACKED::value_handle, bno055_accel_t::x, bno055_accel_t::y, and bno055_accel_t::z.
Referenced by main().
ble_status_t gyro_sensor_data_send | ( | gyro_sensor_t * | gyro_data, |
uint8_t | conn_handle | ||
) |
References ble_characteristic_value_send(), PACKED::char_list, PACKED::char_val, DBG_LOG, memcpy_inplace_reorder(), PACKED::value_handle, bno055_gyro_t::x, bno055_gyro_t::y, and bno055_gyro_t::z.
Referenced by main().
ble_char_t sensor_char[2] = {0} |
Referenced by acc_gyro_sensor_service_init().
ble_service_t sensor_service = {0} |
Referenced by acc_gyro_sensor_service_init(), app_char_disc_resp_cb(), and main().