slider2 2.0.0.0
Public function

Functions

void slider2_cfg_setup (slider2_cfg_t *cfg)
 Config Object Initialization function.
 
SLIDER2_RETVAL slider2_init (slider2_t *ctx, slider2_cfg_t *cfg)
 Initialization function.
 
void slider2_default_cfg (slider2_t *ctx)
 Click Default Configuration function.
 
slider2_data_t slider2_generic_read (slider2_t *ctx)
 Generic read function.
 
void slider2_enable (slider2_t *ctx, uint8_t state)
 Setting state function.
 
void slider2_set_reference (slider2_t *ctx, uint8_t ref)
 Setting reference function.
 

Detailed Description

Function Documentation

◆ slider2_cfg_setup()

void slider2_cfg_setup ( slider2_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.

◆ slider2_default_cfg()

void slider2_default_cfg ( slider2_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Slider 2 click.

◆ slider2_enable()

void slider2_enable ( slider2_t * ctx,
uint8_t state )

Setting state function.

Parameters
ctxClick object.
stateState.

@description This function sets desired state to EN pin.

◆ slider2_generic_read()

slider2_data_t slider2_generic_read ( slider2_t * ctx)

Generic read function.

Parameters
ctxClick object.
Returns
ADC data

@description This function read ADC data.

◆ slider2_init()

SLIDER2_RETVAL slider2_init ( slider2_t * ctx,
slider2_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ slider2_set_reference()

void slider2_set_reference ( slider2_t * ctx,
uint8_t ref )

Setting reference function.

Parameters
ctxClick object.
refReference.

@description This function sets desired reference to RSL pin.