multimeter 2.0.0.0
multimeter.h File Reference

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

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

Go to the source code of this file.

Data Structures

struct  calibration_t
 Calibration structure. More...
 
struct  calibration_cfg_t
 Calibration configuration structure. More...
 
struct  multimeter_t
 Click ctx object definition. More...
 
struct  multimeter_cfg_t
 Click configuration structure definition. More...
 

Macros

#define MULTIMETER_MAP_MIKROBUS(cfg, mikrobus)
 
#define MULTIMETER_RETVAL   uint8_t
 
#define MULTIMETER_OK   0x00
 
#define MULTIMETER_INIT_ERROR   0xFF
 
#define MULTIMETER_I_CHANNEL   0x00
 
#define MULTIMETER_U_CHANNEL   0x01
 
#define MULTIMETER_R_CHANNEL   0x02
 
#define MULTIMETER_C_CHANNEL   0x03
 
#define MULTIMETER_MAX_VOLTAGE   4095.0
 

Functions

void multimeter_cfg_setup (multimeter_cfg_t *cfg)
 Config Object Initialization function.
 
MULTIMETER_RETVAL multimeter_init (multimeter_t *ctx, multimeter_cfg_t *cfg)
 Initialization function.
 
void multimeter_default_cfg (multimeter_t *ctx)
 Click Default Configuration function.
 
float multimeter_read_capacitance (multimeter_t *ctx)
 Read capacitance function.
 
float multimeter_read_voltage (multimeter_t *ctx)
 Read voltage function.
 
float multimeter_read_current (multimeter_t *ctx)
 Read current function.
 
float multimeter_read_resistance (multimeter_t *ctx)
 Read resistance function.
 
uint16_t multimeter_get_resistance_range (multimeter_t *ctx, uint8_t range)
 Get resistance range function.
 
void multimeter_set_resistance_range (multimeter_t *ctx, uint8_t range)
 Set resistance range function.
 

Detailed Description

This file contains API for Multimeter Click driver.