slider 2.0.0.0
slider.h File Reference

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

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  slider_t
 Click ctx object definition. More...
 
struct  slider_cfg_t
 Click configuration structure definition. More...
 

Macros

#define SLIDER_MAP_MIKROBUS(cfg, mikrobus)
 
#define SLIDER_RETVAL   uint8_t
 
#define SLIDER_OK   0x00
 
#define SLIDER_INIT_ERROR   0xFF
 

Functions

void slider_cfg_setup (slider_cfg_t *cfg)
 Config Object Initialization function.
 
SLIDER_RETVAL slider_init (slider_t *ctx, slider_cfg_t *cfg)
 Initialization function.
 
void slider_default_cfg (slider_t *ctx)
 Click Default Configuration function.
 
void slider_generic_transfer (slider_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
uint32_t slider_read_adc (slider_t *ctx)
 ADC read function.
 
uint32_t slider_read_adc_and_ready (slider_t *ctx)
 ADC and READY read function.
 
void slider_enable_led_output (slider_t *ctx, uint8_t state)
 Output enable function.
 
void slider_enable_output_laches (slider_t *ctx, uint8_t state)
 Output laches enable function.
 
uint32_t slider_write_output (slider_t *ctx)
 Output write function.
 

Detailed Description

This file contains API for Slider Click driver.