stretch 2.0.0.0
stretch.h File Reference

This file contains API for Stretch Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"

Go to the source code of this file.

Data Structures

struct  stretch_t
 Click ctx object definition. More...
 
struct  stretch_cfg_t
 Click configuration structure definition. More...
 

Macros

#define STRETCH_MAP_MIKROBUS(cfg, mikrobus)
 
#define STRETCH_RETVAL   uint8_t
 
#define STRETCH_OK   0x00
 
#define STRETCH_INIT_ERROR   0xFF
 

Typedefs

typedef uint16_t stretch_data_t
 Analog data type.
 

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

This file contains API for Stretch Click driver.