stretch 2.0.0.0
Public function

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.
 

Detailed Description

Function Documentation

◆ stretch_cfg_setup()

void stretch_cfg_setup ( stretch_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.

◆ stretch_default_cfg()

void stretch_default_cfg ( stretch_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Stretch click.

◆ stretch_generic_read()

stretch_data_t stretch_generic_read ( stretch_t * ctx)

Generic read function.

Parameters
ctxClick object.
Returns
ADC data

@description This function read ADC data.

◆ stretch_init()

STRETCH_RETVAL stretch_init ( stretch_t * ctx,
stretch_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ stretch_turn_off_led()

void stretch_turn_off_led ( stretch_t * ctx)

Turn off the LED function.

Parameters
ctxClick object Function turn off the LED by clear PWM pin on Stretch click board.

◆ stretch_turn_on_led()

void stretch_turn_on_led ( stretch_t * ctx)

Turn on the LED function.

Parameters
ctxClick object Function turn on the LED by set PWM pin on Stretch click board.