Nordic Thingy:52 v2.2.0

Motion module API. More...

Modules

 Motion flash configuration
 Motion module flash configuration.
 

Data Structures

struct  m_motion_init_t
 TWI configuration struct. More...
 

Macros

#define MOTION_DEFAULT_CONFIG
 Motion module default configuration.
 

Functions

uint32_t m_motion_init (m_ble_service_handle_t *p_handle, m_motion_init_t *p_params)
 Function for initializing motion module. More...
 
uint32_t m_motion_sleep_prepare (bool wakeup)
 Function for preparing for sleep mode. More...
 

Detailed Description

Motion module API.

Function Documentation

◆ m_motion_init()

uint32_t m_motion_init ( m_ble_service_handle_t p_handle,
m_motion_init_t p_params 
)

Function for initializing motion module.

Parameters
[out]p_handleHandle for BLE services.
[in]p_paramsInit parameters.
Return values
NRF_SUCCESS.

◆ m_motion_sleep_prepare()

uint32_t m_motion_sleep_prepare ( bool  wakeup)

Function for preparing for sleep mode.

Parameters
[in]wakeupBoolean indicating either wakeup or sleep forever.
Return values
NRF_SUCCESS.