slider2 2.0.0.0
|
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. | |
void slider2_cfg_setup | ( | slider2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void slider2_default_cfg | ( | slider2_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Slider 2 click.
void slider2_enable | ( | slider2_t * | ctx, |
uint8_t | state ) |
Setting state function.
ctx | Click object. |
state | State. |
@description This function sets desired state to EN pin.
slider2_data_t slider2_generic_read | ( | slider2_t * | ctx | ) |
Generic read function.
ctx | Click object. |
@description This function read ADC data.
SLIDER2_RETVAL slider2_init | ( | slider2_t * | ctx, |
slider2_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void slider2_set_reference | ( | slider2_t * | ctx, |
uint8_t | ref ) |
Setting reference function.
ctx | Click object. |
ref | Reference. |
@description This function sets desired reference to RSL pin.