Accelerometer Gyroscope sensor service.
Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | acc_sensor_value_t_ |
Macros | |
#define | ACCE_GYRO_SENSOR_SERVICE_UUID 0x1b, 0xc5, 0xd5, 0xa5, 0x02, 0x00, 0xa6, 0x87, 0xe5, 0x11, 0x36, 0x39, 0xc1, 0xba, 0x5a, 0xf0 |
#define | ACCE_UUID 0x1b, 0xc5, 0xd5, 0xa5, 0x02, 0x00, 0xa6, 0x87, 0xe5, 0x11, 0x36, 0x39, 0xd7, 0xba, 0x5a, 0xf0 |
#define | GYRO_UUID 0x1b, 0xc5, 0xd5, 0xa5, 0x02, 0x00, 0xa6, 0x87, 0xe5, 0x11, 0x36, 0x39, 0xd4, 0xba, 0x5a, 0xf0 |
#define | NUMBER_OF_SENSORS 2 |
Typedefs | |
typedef struct bno055_accel_t | acc_sensor_t |
typedef struct acc_sensor_value_t_ | acc_sensor_value_t |
typedef struct bno055_gyro_t | gyro_sensor_t |
typedef acc_sensor_value_t | gyro_sensor_value_t |
Enumerations | |
enum | sensor_list_t { SENSOR_1_ACCELEROMETER, SENSOR_2_GYROSCOPE, SENSOR_1_ACCELEROMETER, SENSOR_2_GYROSCOPE, SENSOR_1_ACCELEROMETER, SENSOR_2_GYROSCOPE } |
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) |
#define ACCE_GYRO_SENSOR_SERVICE_UUID 0x1b, 0xc5, 0xd5, 0xa5, 0x02, 0x00, 0xa6, 0x87, 0xe5, 0x11, 0x36, 0x39, 0xc1, 0xba, 0x5a, 0xf0 |
Referenced by acc_gyro_sensor_service_init(), and main().
#define ACCE_UUID 0x1b, 0xc5, 0xd5, 0xa5, 0x02, 0x00, 0xa6, 0x87, 0xe5, 0x11, 0x36, 0x39, 0xd7, 0xba, 0x5a, 0xf0 |
Referenced by acc_gyro_sensor_service_init(), app_char_value_write_cb(), and main().
#define GYRO_UUID 0x1b, 0xc5, 0xd5, 0xa5, 0x02, 0x00, 0xa6, 0x87, 0xe5, 0x11, 0x36, 0x39, 0xd4, 0xba, 0x5a, 0xf0 |
Referenced by acc_gyro_sensor_service_init(), and main().
#define NUMBER_OF_SENSORS 2 |
Referenced by app_char_disc_resp_cb(), and main().
typedef struct bno055_accel_t acc_sensor_t |
typedef struct acc_sensor_value_t_ acc_sensor_value_t |
typedef struct bno055_gyro_t gyro_sensor_t |
enum sensor_list_t |
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().