multimeter 2.0.0.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

Function Documentation

◆ multimeter_cfg_setup()

void multimeter_cfg_setup ( multimeter_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ multimeter_default_cfg()

void multimeter_default_cfg ( multimeter_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Multimeter click.

◆ multimeter_get_resistance_range()

uint16_t multimeter_get_resistance_range ( multimeter_t * ctx,
uint8_t range )

Get resistance range function.

Parameters
ctxClick object.
rangeScan range variable.

@description This function calculates the resistance scan range with the help of the set_resistance_range(...) function and returns the scan range value.

◆ multimeter_init()

MULTIMETER_RETVAL multimeter_init ( multimeter_t * ctx,
multimeter_cfg_t * cfg )

Initialization function.

Parameters
multimeterClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ multimeter_read_capacitance()

float multimeter_read_capacitance ( multimeter_t * ctx)

Read capacitance function.

Parameters
ctxClick object.

@description This function reads and returns capacitance data.

◆ multimeter_read_current()

float multimeter_read_current ( multimeter_t * ctx)

Read current function.

Parameters
ctxClick object.

@description This function reads and returns current data.

◆ multimeter_read_resistance()

float multimeter_read_resistance ( multimeter_t * ctx)

Read resistance function.

Parameters
ctxClick object.

@description This function reads and returns resistance data.

◆ multimeter_read_voltage()

float multimeter_read_voltage ( multimeter_t * ctx)

Read voltage function.

Parameters
ctxClick object.

@description This function reads and returns voltage data.

◆ multimeter_set_resistance_range()

void multimeter_set_resistance_range ( multimeter_t * ctx,
uint8_t range )

Set resistance range function.

Parameters
ctxClick object.
rangeScan range variable.

@description This function configures the scan range by activating pins that control which of the MOSFET gates will open.