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. | |
void multimeter_cfg_setup | ( | multimeter_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void multimeter_default_cfg | ( | multimeter_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Multimeter click.
uint16_t multimeter_get_resistance_range | ( | multimeter_t * | ctx, |
uint8_t | range ) |
Get resistance range function.
ctx | Click object. |
range | Scan 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_RETVAL multimeter_init | ( | multimeter_t * | ctx, |
multimeter_cfg_t * | cfg ) |
Initialization function.
multimeter | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
float multimeter_read_capacitance | ( | multimeter_t * | ctx | ) |
Read capacitance function.
ctx | Click object. |
@description This function reads and returns capacitance data.
float multimeter_read_current | ( | multimeter_t * | ctx | ) |
Read current function.
ctx | Click object. |
@description This function reads and returns current data.
float multimeter_read_resistance | ( | multimeter_t * | ctx | ) |
Read resistance function.
ctx | Click object. |
@description This function reads and returns resistance data.
float multimeter_read_voltage | ( | multimeter_t * | ctx | ) |
Read voltage function.
ctx | Click object. |
@description This function reads and returns voltage data.
void multimeter_set_resistance_range | ( | multimeter_t * | ctx, |
uint8_t | range ) |
Set resistance range function.
ctx | Click object. |
range | Scan range variable. |
@description This function configures the scan range by activating pins that control which of the MOSFET gates will open.