rmeter 2.0.0.0
|
This file contains API for R Meter Click driver. More...
#include "drv_digital_out.h"
#include "drv_analog_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | rmeter_t |
Click ctx object definition. More... | |
struct | rmeter_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RMETER_MAP_MIKROBUS(cfg, mikrobus) |
#define | RMETER_OK 0 |
#define | RMETER_INIT_ERROR (-1) |
Typedefs | |
typedef void(* | rmeter_callback_t) (char *) |
Click callback handler definition. | |
Functions | |
void | rmeter_cfg_setup (rmeter_cfg_t *cfg) |
Config Object Setup function. | |
err_t | rmeter_init (rmeter_t *ctx, rmeter_cfg_t *cfg) |
Initialization function. | |
void | rmeter_set_callback_handler (rmeter_t *ctx, rmeter_callback_t handler) |
Callback Handler Setup function. | |
void | rmeter_set_range_up_to_1k9_ohms (rmeter_t *ctx) |
Range Setup Up To 1k9 Ohms function. | |
void | rmeter_set_range_up_to_17k_ohms (rmeter_t *ctx) |
Range Setup Up To 17k Ohms function. | |
void | rmeter_set_range_up_to_1M9_ohms (rmeter_t *ctx) |
Range Setup Up To 1M9 Ohms function. | |
err_t | rmeter_read_measurement (rmeter_t *ctx, uint16_t *data_out) |
Measurement Reading function. | |
err_t | rmeter_calculate_resistance (rmeter_t *ctx, float *data_out, uint16_t data_in) |
Resistance Calculation function. | |
uint16_t | rmeter_auto_scale_range_execution (rmeter_t *ctx) |
Auto Scale Range Execution function. | |
err_t | rmeter_read_an (rmeter_t *ctx, uint16_t *data_out) |
AN Pin Reading function. | |
err_t | rmeter_read_an_voltage (rmeter_t *ctx, float *data_out) |
AN Voltage Level Reading function. | |
This file contains API for R Meter Click driver.