| Nordic Thingy:52 v2.0.0

Modules | Data Structures | Macros | Functions
Motion
Thingy modules

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_handle | Handle for BLE services.
  [in] | p_params | Init 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] | wakeup | Boolean indicating either wakeup or sleep forever.

Return values

  NRF_SUCCESS. |