Nordic Thingy:52
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
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_MAX_DATA_LEN   (GATT_MTU_SIZE_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...