loadcell 2.0.0.0
|
This file contains API for Load cell Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | loadcell_t |
Click ctx object definition. More... | |
struct | loadcell_cfg_t |
Click configuration structure definition. More... | |
struct | loadcell_data_t |
Load cell data structure definition. More... | |
Macros | |
#define | LOADCELL_MAP_MIKROBUS(cfg, mikrobus) |
#define | LOADCELL_RETVAL uint8_t |
#define | LOADCELL_OK 0x00 |
#define | LOADCELL_INIT_ERROR 0xFF |
#define | LOADCELL_CHANN_A_GATE_128_NEXT 0 |
#define | LOADCELL_CHANN_B_GATE_32_NEXT 1 |
#define | LOADCELL_CHANN_A_GATE_64_NEXT 2 |
#define | LOADCELL_10HZ_INTERNAL_OSC 0 |
#define | LOADCELL_80HZ_INTERNAL_OSC 1 |
#define | LOADCELL_POWER_UP 0 |
#define | LOADCELL_POWER_DOWN 1 |
#define | LOADCELL_GET_RESULT_ERROR 0 |
#define | LOADCELL_GET_RESULT_OK 1 |
#define | LOADCELL_WEIGHT_100G 100 |
#define | LOADCELL_WEIGHT_500G 500 |
#define | LOADCELL_WEIGHT_1000G 1000 |
#define | LOADCELL_WEIGHT_5000G 5000 |
#define | LOADCELL_WEIGHT_10000G 10000 |
#define | LOADCELL_DEFAULT_WEIGHT_SCALE_COEFFICIENT 0.088495575221 |
#define | LOADCELL_DATA_NO_DATA 0 |
#define | LOADCELL_DATA_OK 1 |
Functions | |
void | loadcell_cfg_setup (loadcell_cfg_t *cfg) |
Config Object Initialization function. | |
LOADCELL_RETVAL | loadcell_init (loadcell_t *ctx, loadcell_cfg_t *cfg) |
Initialization function. | |
void | loadcell_default_cfg (loadcell_t *ctx) |
Click Default Configuration function. | |
uint8_t | loadcell_check_out (loadcell_t *ctx) |
Check status of pin DO (do_pin). | |
uint8_t | loadcell_read_results (loadcell_t *ctx, uint8_t input_sel, uint32_t *data_out) |
Read results of function. | |
void | loadcell_set_rate (loadcell_t *ctx, uint8_t rate_sel) |
Set rate function. | |
void | loadcell_reset (loadcell_t *ctx) |
Reset clock function. | |
void | loadcell_set_mode (loadcell_t *ctx, uint8_t pwr_mode) |
Set clock mode function. | |
void | loadcell_tare (loadcell_t *ctx, uint8_t input_sel, loadcell_data_t *cell_data) |
Function of messure and read results. | |
uint8_t | loadcell_calibration (loadcell_t *ctx, uint8_t input_sel, uint16_t cal_val, loadcell_data_t *cell_data) |
Calibration function. | |
float | loadcell_get_weight (loadcell_t *ctx, uint8_t input_sel, loadcell_data_t *cell_data) |
Get weight function. | |
This file contains API for Load cell Click driver.