Microchip® Advanced Software Framework

acc_gyro_sensor_service.h File Reference

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_tacc_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
#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

Referenced by app_char_disc_resp_cb(), and main().

typedef struct bno055_accel_t acc_sensor_t
typedef struct bno055_gyro_t gyro_sensor_t

Enumerator
SENSOR_1_ACCELEROMETER 
SENSOR_2_GYROSCOPE 
SENSOR_1_ACCELEROMETER 
SENSOR_2_GYROSCOPE 
SENSOR_1_ACCELEROMETER 
SENSOR_2_GYROSCOPE