gsr 2.0.0.0
gsr.h File Reference

This file contains API for GSR 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  gsr_t
 Click ctx object definition. More...
 
struct  gsr_cfg_t
 Click configuration structure definition. More...
 

Macros

#define GSR_MAP_MIKROBUS(cfg, mikrobus)
 
#define GSR_RETVAL   uint8_t
 
#define GSR_OK   0x00
 
#define GSR_INIT_ERROR   0xFF
 

Functions

void gsr_cfg_setup (gsr_cfg_t *cfg)
 Config Object Initialization function.
 
GSR_RETVAL gsr_init (gsr_t *ctx, gsr_cfg_t *cfg)
 Initialization function.
 
void gsr_generic_transfer (gsr_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
uint16_t gsr_read_value (gsr_t *ctx)
 Read Analog Value.
 

Detailed Description

This file contains API for GSR Click driver.