stretch 2.0.0.0
|
Functions | |
void | stretch_cfg_setup (stretch_cfg_t *cfg) |
Config Object Initialization function. | |
STRETCH_RETVAL | stretch_init (stretch_t *ctx, stretch_cfg_t *cfg) |
Initialization function. | |
void | stretch_default_cfg (stretch_t *ctx) |
Click Default Configuration function. | |
stretch_data_t | stretch_generic_read (stretch_t *ctx) |
Generic read function. | |
void | stretch_turn_on_led (stretch_t *ctx) |
Turn on the LED function. | |
void | stretch_turn_off_led (stretch_t *ctx) |
Turn off the LED function. | |
void stretch_cfg_setup | ( | stretch_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void stretch_default_cfg | ( | stretch_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Stretch click.
stretch_data_t stretch_generic_read | ( | stretch_t * | ctx | ) |
Generic read function.
ctx | Click object. |
@description This function read ADC data.
STRETCH_RETVAL stretch_init | ( | stretch_t * | ctx, |
stretch_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 stretch_turn_off_led | ( | stretch_t * | ctx | ) |
Turn off the LED function.
ctx | Click object Function turn off the LED by clear PWM pin on Stretch click board. |
void stretch_turn_on_led | ( | stretch_t * | ctx | ) |
Turn on the LED function.
ctx | Click object Function turn on the LED by set PWM pin on Stretch click board. |