tilt2 2.0.0.0
Public function

Functions

void tilt2_cfg_setup (tilt2_cfg_t *cfg)
 Config Object Initialization function.
 
TILT2_RETVAL tilt2_init (tilt2_t *ctx, tilt2_cfg_t *cfg)
 Initialization function.
 
uint8_t tilt2_tilt_detection (tilt2_t *ctx)
 Tilt detection function.
 

Detailed Description

Function Documentation

◆ tilt2_cfg_setup()

void tilt2_cfg_setup ( tilt2_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ tilt2_init()

TILT2_RETVAL tilt2_init ( tilt2_t * ctx,
tilt2_cfg_t * cfg )

Initialization function.

Parameters
tilt2Click object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ tilt2_tilt_detection()

uint8_t tilt2_tilt_detection ( tilt2_t * ctx)

Tilt detection function.

Parameters
ctxClick object.

@description This function detection tilt.