loadcell2
2.0.0.0
|
Functions | |
void | loadcell2_cfg_setup (loadcell2_cfg_t *cfg) |
Config Object Initialization function. More... | |
LOADCELL2_RETVAL | loadcell2_init (loadcell2_t *ctx, loadcell2_cfg_t *cfg) |
Initialization function. More... | |
void | loadcell2_default_cfg (loadcell2_t *ctx) |
Click Default Configuration function. More... | |
void | loadcell2_generic_write (loadcell2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
void | loadcell2_generic_read (loadcell2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
uint8_t | loadcell2_check_data_ready (loadcell2_t *ctx) |
Check data ready function. More... | |
void | loadcell2_reset (loadcell2_t *ctx) |
Reset function. More... | |
LOADCELL2_RETVAL | loadcell2_power_on (loadcell2_t *ctx) |
Power On function. More... | |
void | loadcell2_set_ldo_voltage (loadcell2_t *ctx) |
Set LDO Voltage function. More... | |
void | loadcell2_set_gain (loadcell2_t *ctx, uint8_t gain_val) |
Set gain function. More... | |
void | loadcell2_set_sample_rate (loadcell2_t *ctx, uint8_t rate_sps) |
Set sample rate function. More... | |
void | loadcell2_turn_off_clk_chp (loadcell2_t *ctx) |
Turn Off clk chp function. More... | |
void | loadcell2_enable_dec_cap (loadcell2_t *ctx) |
Enables PGA output function. More... | |
void | loadcell2_calibrate_afe (loadcell2_t *ctx) |
Calibrate analog front end of system function. More... | |
uint32_t | loadcell2_get_result (loadcell2_t *ctx) |
Get results function. More... | |
void | loadcell2_tare (loadcell2_t *ctx, loadcell2_data_t *cell_data) |
Tare function. More... | |
uint8_t | loadcell2_calibration (loadcell2_t *ctx, uint16_t cal_val, loadcell2_data_t *cell_data) |
Calibration function. More... | |
float | loadcell2_get_weight (loadcell2_t *ctx, loadcell2_data_t *cell_data) |
Get weight function. More... | |
uint8_t | loadcell2_check_drdy (loadcell2_t *ctx) |
Check data ready function. More... | |
void loadcell2_calibrate_afe | ( | loadcell2_t * | ctx | ) |
Calibrate analog front end of system function.
loadcell2 | Click object. |
The function enables PGA output bypass capacitor of NAU7802 24-Bit Dual-Channel ADC on Load Cell 2 Click board.
uint8_t loadcell2_calibration | ( | loadcell2_t * | ctx, |
uint16_t | cal_val, | ||
loadcell2_data_t * | cell_data | ||
) |
Calibration function.
loadcell2 | Click object. |
This function do calibration.
void loadcell2_cfg_setup | ( | loadcell2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
uint8_t loadcell2_check_data_ready | ( | loadcell2_t * | ctx | ) |
Check data ready function.
loadcell2 | Click object. |
The function check measurement data ready of NAU7802 24-Bit Dual-Channel ADC on Load Cell 2 Click board.
uint8_t loadcell2_check_drdy | ( | loadcell2_t * | ctx | ) |
Check data ready function.
loadcell2 | Click object. |
The function check data ready state by return state of the INT pin of Load Cell 2 Click board.
void loadcell2_default_cfg | ( | loadcell2_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
This function executes default configuration for LoadCell2 click.
void loadcell2_enable_dec_cap | ( | loadcell2_t * | ctx | ) |
Enables PGA output function.
loadcell2 | Click object. |
The function enables PGA output bypass capacitor of NAU7802 24-Bit Dual-Channel ADC on Load Cell 2 Click board.
void loadcell2_generic_read | ( | loadcell2_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len | ||
) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
This function reads data from the desired register.
void loadcell2_generic_write | ( | loadcell2_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len | ||
) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
This function writes data to the desired register.
uint32_t loadcell2_get_result | ( | loadcell2_t * | ctx | ) |
Get results function.
loadcell2 | Click object. |
The function read ADC conversion result of NAU7802 24-Bit Dual-Channel ADC on Load Cell 2 Click board.
float loadcell2_get_weight | ( | loadcell2_t * | ctx, |
loadcell2_data_t * | cell_data | ||
) |
Get weight function.
loadcell2 | Click object. |
This function messure weight.
LOADCELL2_RETVAL loadcell2_init | ( | loadcell2_t * | ctx, |
loadcell2_cfg_t * | cfg | ||
) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
LOADCELL2_RETVAL loadcell2_power_on | ( | loadcell2_t * | ctx | ) |
Power On function.
loadcell2 | Click object. |
The function set power up analog and digital circuit of NAU7802 24-Bit Dual-Channel ADC on Load Cell 2 Click board.
void loadcell2_reset | ( | loadcell2_t * | ctx | ) |
Reset function.
loadcell2 | Click object. |
The function resets all registers of NAU7802 24-Bit Dual-Channel ADC on Load Cell 2 Click board.
void loadcell2_set_gain | ( | loadcell2_t * | ctx, |
uint8_t | gain_val | ||
) |
Set gain function.
loadcell2 | Click object. |
gain_val | Gain select :
|
The function set gain of NAU7802 24-Bit Dual-Channel ADC on Load Cell 2 Click board.
void loadcell2_set_ldo_voltage | ( | loadcell2_t * | ctx | ) |
Set LDO Voltage function.
loadcell2 | Click object. |
The function set LDO Voltage of 3.3V and internal LDO of NAU7802 24-Bit Dual-Channel ADC on Load Cell 2 Click board.
void loadcell2_set_sample_rate | ( | loadcell2_t * | ctx, |
uint8_t | rate_sps | ||
) |
Set sample rate function.
loadcell2 | Click object. |
rate_sps | Conversion rate select :
|
The function set sample rate of NAU7802 24-Bit Dual-Channel ADC on Load Cell 2 Click board.
void loadcell2_tare | ( | loadcell2_t * | ctx, |
loadcell2_data_t * | cell_data | ||
) |
Tare function.
loadcell2 | Click object. |
This function tare load cell.
void loadcell2_turn_off_clk_chp | ( | loadcell2_t * | ctx | ) |
Turn Off clk chp function.
loadcell2 | Click object. |
The function turn Off selected the CLK_CHP clock frequency of NAU7802 24-Bit Dual-Channel ADC on Load Cell 2 Click board.