loadcell2 2.0.0.0
|
This file contains API for Load Cell 2 Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | loadcell2_t |
Click ctx object definition. More... | |
struct | loadcell2_cfg_t |
Click configuration structure definition. More... | |
struct | loadcell2_data_t |
Click data structure definition. More... | |
Functions | |
void | loadcell2_cfg_setup (loadcell2_cfg_t *cfg) |
Config Object Initialization function. | |
LOADCELL2_RETVAL | loadcell2_init (loadcell2_t *ctx, loadcell2_cfg_t *cfg) |
Initialization function. | |
void | loadcell2_default_cfg (loadcell2_t *ctx) |
Click Default Configuration function. | |
void | loadcell2_generic_write (loadcell2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | loadcell2_generic_read (loadcell2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | loadcell2_check_data_ready (loadcell2_t *ctx) |
Check data ready function. | |
void | loadcell2_reset (loadcell2_t *ctx) |
Reset function. | |
LOADCELL2_RETVAL | loadcell2_power_on (loadcell2_t *ctx) |
Power On function. | |
void | loadcell2_set_ldo_voltage (loadcell2_t *ctx) |
Set LDO Voltage function. | |
void | loadcell2_set_gain (loadcell2_t *ctx, uint8_t gain_val) |
Set gain function. | |
void | loadcell2_set_sample_rate (loadcell2_t *ctx, uint8_t rate_sps) |
Set sample rate function. | |
void | loadcell2_turn_off_clk_chp (loadcell2_t *ctx) |
Turn Off clk chp function. | |
void | loadcell2_enable_dec_cap (loadcell2_t *ctx) |
Enables PGA output function. | |
void | loadcell2_calibrate_afe (loadcell2_t *ctx) |
Calibrate analog front end of system function. | |
uint32_t | loadcell2_get_result (loadcell2_t *ctx) |
Get results function. | |
void | loadcell2_tare (loadcell2_t *ctx, loadcell2_data_t *cell_data) |
Tare function. | |
uint8_t | loadcell2_calibration (loadcell2_t *ctx, uint16_t cal_val, loadcell2_data_t *cell_data) |
Calibration function. | |
float | loadcell2_get_weight (loadcell2_t *ctx, loadcell2_data_t *cell_data) |
Get weight function. | |
uint8_t | loadcell2_check_drdy (loadcell2_t *ctx) |
Check data ready function. | |
This file contains API for Load Cell 2 Click driver.