loadcell5 2.0.0.0
|
API for configuring and manipulating Load Cell 5 Click driver. More...
Topics | |
Load Cell 5 Registers Settings | |
Settings for registers of Load Cell 5 Click driver. | |
Load Cell 5 MikroBUS Map | |
MikroBUS pin mapping of Load Cell 5 Click driver. | |
Loadcell5_get | |
Loadcell5_cfg_data | |
Functions | |
void | loadcell5_cfg_setup (loadcell5_cfg_t *cfg) |
Load Cell 5 configuration object setup function. | |
err_t | loadcell5_init (loadcell5_t *ctx, loadcell5_cfg_t *cfg) |
Load Cell 5 initialization function. | |
err_t | loadcell5_default_cfg (loadcell5_t *ctx) |
Load Cell 5 default configuration function. | |
err_t | loadcell5_set_power_mode (loadcell5_t *ctx, uint8_t pwr_mode) |
Load Cell 5 set power mode function. | |
void | loadcell5_hw_reset (loadcell5_t *ctx) |
Load Cell 5 set hardware reset function. | |
err_t | loadcell5_filter_select (loadcell5_t *ctx, uint8_t fil_sel) |
Load Cell 5 filter select function. | |
err_t | loadcell5_set_gain (loadcell5_t *ctx, uint8_t gain) |
Load Cell 5 set gain function. | |
err_t | loadcell5_get_data (loadcell5_t *ctx, uint8_t *status, uint32_t *adc_data) |
Load Cell 5 data reading function. | |
uint32_t | loadcell5_read_adc (loadcell5_t *ctx) |
Load Cell 5 reading ADC data function. | |
void | loadcell5_tare (loadcell5_t *ctx, loadcell5_data_t *cell_data) |
Load Cell 5 tare the scales function. | |
err_t | loadcell5_calibration (loadcell5_t *ctx, uint16_t cal_val, loadcell5_data_t *cell_data) |
Load Cell 5 calibration function. | |
float | loadcell5_get_weight (loadcell5_t *ctx, loadcell5_data_t *cell_data) |
Load Cell 5 get weight function. | |
uint8_t | loadcell5_check_data_ready (loadcell5_t *ctx) |
Load Cell 5 get error function. | |
API for configuring and manipulating Load Cell 5 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
err_t loadcell5_calibration | ( | loadcell5_t * | ctx, |
uint16_t | cal_val, | ||
loadcell5_data_t * | cell_data ) |
Load Cell 5 calibration function.
This function for the calibration sets the calibration value into the cell data structure of the AD7780 24-Bit, Pin-Programmable, Ultralow Power Sigma-Delta ADC on Load Cell 5 Click board.
[in] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
[in] | cal_val | : Etalon weight value
|
[out] | cell_data | : Pointer to the memory location of the structure where data be stored. |
0
- Success, -1
- Error.void loadcell5_cfg_setup | ( | loadcell5_cfg_t * | cfg | ) |
Load Cell 5 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See loadcell5_cfg_t object definition for detailed explanation. |
uint8_t loadcell5_check_data_ready | ( | loadcell5_t * | ctx | ) |
Load Cell 5 get error function.
This function reads the state of the RDY ( INT ) pin of Load Cell 5 click board.
[in] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
0
- INT pin state low, 1
- INT pin state high.err_t loadcell5_default_cfg | ( | loadcell5_t * | ctx | ) |
Load Cell 5 default configuration function.
This function executes a default configuration of Load Cell 5 click board.
[in] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t loadcell5_filter_select | ( | loadcell5_t * | ctx, |
uint8_t | fil_sel ) |
Load Cell 5 filter select function.
This function adjusts the selection for the filter of the he AD7780 24-Bit, Pin-Programmable, Ultralow Power Sigma-Delta ADC on Load Cell 5 Click board.
[in] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
[in] | fil_sel | :
|
0
- Success, -1
- Error.err_t loadcell5_get_data | ( | loadcell5_t * | ctx, |
uint8_t * | status, | ||
uint32_t * | adc_data ) |
Load Cell 5 data reading function.
This function reads a status and ADC data from the AD7780 24-Bit, Pin-Programmable, Ultralow Power Sigma-Delta ADC on Load Cell 5 Click board.
[in] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
[out] | status | : Status data. |
[out] | adc_data | : 24-bit ADC data. |
0
- Success, -1
- Error.float loadcell5_get_weight | ( | loadcell5_t * | ctx, |
loadcell5_data_t * | cell_data ) |
Load Cell 5 get weight function.
This function gets float value of the scales measurements [ g ] of the AD7780 24-Bit, Pin-Programmable, Ultralow Power Sigma-Delta ADC on Load Cell 5 Click board.
[in] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
[out] | cell_data | : Pointer to the memory location of the structure where data be stored. |
void loadcell5_hw_reset | ( | loadcell5_t * | ctx | ) |
Load Cell 5 set hardware reset function.
This function performs hardware reset of the he AD7780 24-Bit, Pin-Programmable, Ultralow Power Sigma-Delta ADC on Load Cell 5 Click board.
[in] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
err_t loadcell5_init | ( | loadcell5_t * | ctx, |
loadcell5_cfg_t * | cfg ) |
Load Cell 5 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See loadcell5_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.uint32_t loadcell5_read_adc | ( | loadcell5_t * | ctx | ) |
Load Cell 5 reading ADC data function.
This function reads the ADC data from the AD7780 24-Bit, Pin-Programmable, Ultralow Power Sigma-Delta ADC on Load Cell 5 Click board.
[in] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
err_t loadcell5_set_gain | ( | loadcell5_t * | ctx, |
uint8_t | gain ) |
Load Cell 5 set gain function.
This function adjusts the selection for the gain of the he AD7780 24-Bit, Pin-Programmable, Ultralow Power Sigma-Delta ADC on Load Cell 5 Click board.
[in] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
[in] | gain | :
|
0
- Success, -1
- Error.err_t loadcell5_set_power_mode | ( | loadcell5_t * | ctx, |
uint8_t | pwr_mode ) |
Load Cell 5 set power mode function.
This function performs power up or power down of the he AD7780 24-Bit, Pin-Programmable, Ultralow Power Sigma-Delta ADC on Load Cell 5 Click board.
[in] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
[in] | pwr_mode | :
|
0
- Success, -1
- Error.void loadcell5_tare | ( | loadcell5_t * | ctx, |
loadcell5_data_t * | cell_data ) |
Load Cell 5 tare the scales function.
This function for the tare scales sets the tara value into the cell data structure of the AD7780 24-Bit, Pin-Programmable, Ultralow Power Sigma-Delta ADC on Load Cell 5 Click board.
[in] | ctx | : Click context object. See loadcell5_t object definition for detailed explanation. |
[out] | cell_data | : Pointer to the memory location of the structure where data be stored. |