loadcell 2.0.0.0
|
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. | |
uint8_t loadcell_calibration | ( | loadcell_t * | ctx, |
uint8_t | input_sel, | ||
uint16_t | cal_val, | ||
loadcell_data_t * | cell_data ) |
Calibration function.
loadcell | Click object. |
cfg | Click configuration structure. |
@description This function do calibration.
void loadcell_cfg_setup | ( | loadcell_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t loadcell_check_out | ( | loadcell_t * | ctx | ) |
Check status of pin DO (do_pin).
loadcell | Click object. |
cfg | Click configuration structure. |
@description When the data output pin (DO) goes to a LOW logic level, the host microcontroller (MCU) can start generating clock pulses on the SCK pin.
void loadcell_default_cfg | ( | loadcell_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Load cell click.
float loadcell_get_weight | ( | loadcell_t * | ctx, |
uint8_t | input_sel, | ||
loadcell_data_t * | cell_data ) |
Get weight function.
loadcell | Click object. |
cfg | Click configuration structure. |
@description This function messure weight.
LOADCELL_RETVAL loadcell_init | ( | loadcell_t * | ctx, |
loadcell_cfg_t * | cfg ) |
Initialization function.
loadcell | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t loadcell_read_results | ( | loadcell_t * | ctx, |
uint8_t | input_sel, | ||
uint32_t * | data_out ) |
Read results of function.
loadcell | Click object. |
cfg | Click configuration structure. |
@description This function read result for this click.
void loadcell_reset | ( | loadcell_t * | ctx | ) |
Reset clock function.
loadcell | Click object. |
cfg | Click configuration structure. |
@description This function reset serial data clock.
void loadcell_set_mode | ( | loadcell_t * | ctx, |
uint8_t | pwr_mode ) |
Set clock mode function.
loadcell | Click object. |
cfg | Click configuration structure. |
@description This function set clock mode.
void loadcell_set_rate | ( | loadcell_t * | ctx, |
uint8_t | rate_sel ) |
Set rate function.
loadcell | Click object. |
cfg | Click configuration structure. |
@description A HIGH logic level on this pin will set the output data rate at 80 samples per second (SPS), while the LOW logic level will set the data rate to 10 SPS. .
void loadcell_tare | ( | loadcell_t * | ctx, |
uint8_t | input_sel, | ||
loadcell_data_t * | cell_data ) |
Function of messure and read results.
loadcell | Click object. |
cfg | Click configuration structure. |
@description This function read results of messure.