force4 2.0.0.0
force4.h File Reference

This file contains API for Force 4 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"

Go to the source code of this file.

Data Structures

struct  force4_t
 Click ctx object definition. More...
 
struct  force4_cfg_t
 Click configuration structure definition. More...
 

Macros

#define FORCE4_MAP_MIKROBUS(cfg, mikrobus)
 
#define FORCE4_RETVAL   uint8_t
 
#define FORCE4_OK   0x00
 
#define FORCE4_INIT_ERROR   0xFF
 
#define FORCE4_SLAVE_ADDRES   0x4D
 

Functions

void force4_cfg_setup (force4_cfg_t *cfg)
 Config Object Initialization function.
 
FORCE4_RETVAL force4_init (force4_t *ctx, force4_cfg_t *cfg)
 Initialization function.
 
void force4_generic_write (force4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void force4_generic_read (force4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
uint16_t force4_read_adc (force4_t *ctx)
 Function for reading 12bit ADC data from device.
 

Detailed Description

This file contains API for Force 4 Click driver.