loadcell4 2.0.0.0
|
This file contains API for Load Cell 4 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | loadcell4_t |
Load Cell 4 Click context object. More... | |
struct | loadcell4_cfg_t |
Load Cell 4 Click configuration object. More... | |
struct | loadcell4_data_t |
Load Cell 4 Click data object. More... | |
Enumerations | |
enum | loadcell4_return_value_t { LOADCELL4_OK = 0 , LOADCELL4_ERROR = -1 } |
Load Cell 4 Click return value data. More... | |
Functions | |
void | loadcell4_cfg_setup (loadcell4_cfg_t *cfg) |
Load Cell 4 configuration object setup function. | |
err_t | loadcell4_init (loadcell4_t *ctx, loadcell4_cfg_t *cfg) |
Load Cell 4 initialization function. | |
err_t | loadcell4_default_cfg (loadcell4_t *ctx) |
Load Cell 4 default configuration function. | |
err_t | loadcell4_generic_write (loadcell4_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Load Cell 4 I2C writing function. | |
err_t | loadcell4_generic_read (loadcell4_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Load Cell 4 I2C reading function. | |
void | loadcell4_read_raw (loadcell4_t *ctx, uint32_t *rx_data) |
Read raw data function. | |
uint8_t | loadcell4_read_data (loadcell4_t *ctx, uint16_t *bridge_data, int16_t *temperature_data) |
Read data function. | |
uint16_t | loadcell4_read_bridge_data (loadcell4_t *ctx) |
Read bridge data function. | |
void | loadcell4_start_cmd_mode (loadcell4_t *ctx) |
Start command mode function. | |
void | loadcell4_end_cmd_mode (loadcell4_t *ctx) |
Start command mode function. | |
void | loadcell4_power_dev (loadcell4_t *ctx, uint8_t power_state) |
Enable power function. | |
void | loadcell4_write_eeprom (loadcell4_t *ctx, uint8_t cmd_byte, uint16_t data_word) |
Write eeprom function. | |
uint16_t | loadcell4_read_eeprom (loadcell4_t *ctx, uint8_t cmd_byte) |
Write eeprom function. | |
uint8_t | loadcell4_get_int (loadcell4_t *ctx) |
Get state of the INT pin function. | |
void | loadcell4_tare (loadcell4_t *ctx, loadcell4_data_t *cell_data) |
Tare the scales function. | |
err_t | loadcell4_calibration (loadcell4_t *ctx, uint16_t cal_val, loadcell4_data_t *cell_data) |
Calibration function. | |
float | loadcell4_get_weight (loadcell4_t *ctx, loadcell4_data_t *cell_data) |
Get weight function. | |
This file contains API for Load Cell 4 Click Driver.