loadcell2 2.0.0.0
|
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. | |
void loadcell2_calibrate_afe | ( | loadcell2_t * | ctx | ) |
Calibrate analog front end of system function.
loadcell2 | Click object. |
@description 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. |
@description This function do calibration.
void loadcell2_cfg_setup | ( | loadcell2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description 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. |
@description 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. |
@description 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. |
@description This function executes default configuration for LoadCell2 click.
void loadcell2_enable_dec_cap | ( | loadcell2_t * | ctx | ) |
Enables PGA output function.
loadcell2 | Click object. |
@description 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 |
@description 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. |
@description This function writes data to the desired register.
uint32_t loadcell2_get_result | ( | loadcell2_t * | ctx | ) |
Get results function.
loadcell2 | Click object. |
@description 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. |
@description This function messure weight.
LOADCELL2_RETVAL loadcell2_init | ( | loadcell2_t * | ctx, |
loadcell2_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description 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. |
@description 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. |
@description 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 :
|
@description 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. |
@description 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 :
|
@description 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. |
@description This function tare load cell.
void loadcell2_turn_off_clk_chp | ( | loadcell2_t * | ctx | ) |
Turn Off clk chp function.
loadcell2 | Click object. |
@description The function turn Off selected the CLK_CHP clock frequency of NAU7802 24-Bit Dual-Channel ADC on Load Cell 2 Click board.