loadcell7 2.1.0.0
|
This file contains API for Load Cell 7 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | loadcell7_t |
Load Cell 7 Click context object. More... | |
struct | loadcell7_cfg_t |
Load Cell 7 Click configuration object. More... | |
Macros | |
#define | LOADCELL7_NUM_CONVERSIONS 80 |
Load Cell 7 number of AD conversions used in a single calculation. | |
#define | LOADCELL7_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE |
Data sample selection. | |
#define | LOADCELL7_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE |
#define | LOADCELL7_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | loadcell7_return_value_t { LOADCELL7_OK = 0 , LOADCELL7_ERROR = -1 } |
Load Cell 7 Click return value data. More... | |
Functions | |
void | loadcell7_cfg_setup (loadcell7_cfg_t *cfg) |
Load Cell 7 configuration object setup function. | |
err_t | loadcell7_init (loadcell7_t *ctx, loadcell7_cfg_t *cfg) |
Load Cell 7 initialization function. | |
void | loadcell7_enable_device (loadcell7_t *ctx) |
Load Cell 7 enable device function. | |
void | loadcell7_disable_device (loadcell7_t *ctx) |
Load Cell 7 disable device function. | |
err_t | loadcell7_read_raw_adc (loadcell7_t *ctx, int32_t *data_out) |
Load Cell 7 read raw adc function. | |
err_t | loadcell7_tare_scale (loadcell7_t *ctx) |
Load Cell 7 tare scale function. | |
err_t | loadcell7_calibrate_weight (loadcell7_t *ctx, float cal_weight) |
Load Cell 7 calibrate weight function. | |
err_t | loadcell7_get_weight (loadcell7_t *ctx, float *weight) |
Load Cell 7 get weight function. | |
This file contains API for Load Cell 7 Click Driver.