| Nordic Thingy:52 v2.0.0

Data Structures | Macros | Typedefs | Functions
ble_tms.h File Reference

Go to the source code of this file.

## Data Structures

struct | ble_tms_init_t
| Motion Service initialization structure. More...
struct | ble_tms_s
| Motion Service structure. More...

## Macros

#define | BLE_TMS_CONFIG_COMP_INT_MAX 1000
| Maximum compass compensation interval [ms].
#define | BLE_TMS_CONFIG_COMP_INT_MIN 100
| Minimum compass compensation interval [ms].
#define | BLE_TMS_CONFIG_MPUF_MAX 200
| Maximum motion processing frequency [Hz].
#define | BLE_TMS_CONFIG_MPUF_MIN 5
| Minimum motion processing frequency [Hz]. (4 Hz minimum to mpu_set_sample_rate())
#define | BLE_TMS_CONFIG_PEDO_INT_MAX 5000
| Maximum pedometer interval [ms].
#define | BLE_TMS_CONFIG_PEDO_INT_MIN 100
| Minimum pedometer interval [ms].
#define | BLE_TMS_CONFIG_TEMP_INT_MAX 5000
| Maximum temperature compensation interval [ms].
#define | BLE_TMS_CONFIG_TEMP_INT_MIN 100
| Minimum temperature compensation interval [ms].
#define | BLE_TMS_CONFIG_WOM_MAX 1
| Wake on motion off.
#define | BLE_TMS_CONFIG_WOM_MIN 0
| Wake on motion on.
#define | BLE_TMS_MAX_DATA_LEN (BLE_GATT_ATT_MTU_DEFAULT - 3)
#define | BLE_UUID_TMS_SERVICE 0x0400

## Typedefs

typedef void(* | ble_tms_evt_handler_t) (ble_tms_t *p_tms, ble_tms_evt_type_t evt_type, uint8_t *p_data, uint16_t length)
| Motion Service event handler type.

## Functions

uint32_t | ble_tms_euler_set (ble_tms_t *p_tms, ble_tms_euler_t *p_data)
| Function for sending euler angle data. More...
uint32_t | ble_tms_gravity_set (ble_tms_t *p_tms, ble_tms_gravity_t *p_data)
| Function for sending gravity vector data. More...
uint32_t | ble_tms_heading_set (ble_tms_t *p_tms, ble_tms_heading_t *p_data)
| Function for sending compass heading data. More...
uint32_t | ble_tms_init (ble_tms_t *p_wss, const ble_tms_init_t *p_tms_init)
| Function for initializing the Motion Service. More...
void | ble_tms_on_ble_evt (ble_tms_t *p_wss, ble_evt_t *p_ble_evt)
| Function for handling the Motion Service's BLE events. More...
uint32_t | ble_tms_orientation_set (ble_tms_t *p_tms, ble_tms_orientation_t *p_data)
| Function for sending orientation data. More...
uint32_t | ble_tms_pedo_set (ble_tms_t *p_tms, ble_tms_pedo_t *p_data)
| Function for sending pedometer data. More...
uint32_t | ble_tms_quat_set (ble_tms_t *p_tms, ble_tms_quat_t *p_data)
| Function for sending quaternion data. More...
uint32_t | ble_tms_raw_set (ble_tms_t *p_tms, ble_tms_raw_t *p_data)
| Function for sending raw data. More...
uint32_t | ble_tms_rot_mat_set (ble_tms_t *p_tms, ble_tms_rot_mat_t *p_data)
| Function for sending rotation matrix data. More...
uint32_t | ble_tms_tap_set (ble_tms_t *p_tms, ble_tms_tap_t *p_data)
| Function for sending tap data. More...