hallcurrent9 2.0.0.0
|
API for configuring and manipulating Hall Current 9 Click driver. More...
Topics | |
Hall Current 9 Registers List | |
List of registers of Hall Current 9 Click driver. | |
Hall Current 9 Registers Settings | |
Settings for registers of Hall Current 9 Click driver. | |
Hall Current 9 MikroBUS Map | |
MikroBUS pin mapping of Hall Current 9 Click driver. | |
Functions | |
void | hallcurrent9_cfg_setup (hallcurrent9_cfg_t *cfg) |
Hall Current 9 configuration object setup function. | |
err_t | hallcurrent9_init (hallcurrent9_t *ctx, hallcurrent9_cfg_t *cfg) |
Hall Current 9 initialization function. | |
err_t | hallcurrent9_read_adc (hallcurrent9_t *ctx, uint16_t *read_adc) |
Hall Current 9 I2C ADC reading function. | |
err_t | hallcurrent9_set_calibration (hallcurrent9_t *ctx, hallcurrent9_calibration_data_t *adc_val) |
Hall Current 9 set calibration function. | |
float | hallcurrent9_get_current (hallcurrent9_t *ctx, hallcurrent9_calibration_data_t *adc_val) |
Hall Current 9 get current function. | |
API for configuring and manipulating Hall Current 9 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void hallcurrent9_cfg_setup | ( | hallcurrent9_cfg_t * | cfg | ) |
Hall Current 9 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See hallcurrent9_cfg_t object definition for detailed explanation. |
float hallcurrent9_get_current | ( | hallcurrent9_t * | ctx, |
hallcurrent9_calibration_data_t * | adc_val ) |
Hall Current 9 get current function.
This function reads 12-bit ADC data and calculate current ( mA ) by using I2C serial interface.
[in] | ctx | : Click context object. See hallcurrent9_t object definition for detailed explanation. |
[in] | adc_val | : Pointer to the memory location of the structure where data be stored. |
See #err_t definition for detailed explanation.
err_t hallcurrent9_init | ( | hallcurrent9_t * | ctx, |
hallcurrent9_cfg_t * | cfg ) |
Hall Current 9 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See hallcurrent9_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See hallcurrent9_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t hallcurrent9_read_adc | ( | hallcurrent9_t * | ctx, |
uint16_t * | read_adc ) |
Hall Current 9 I2C ADC reading function.
This function reads 12-bit ADC data by using I2C serial interface.
[in] | ctx | : Click context object. See hallcurrent9_t object definition for detailed explanation. |
[out] | read_adc | : Output ADC read data. |
0
- Success, -1
- Error.err_t hallcurrent9_set_calibration | ( | hallcurrent9_t * | ctx, |
hallcurrent9_calibration_data_t * | adc_val ) |
Hall Current 9 set calibration function.
This function sets the calibration value into the calibration data structure by using I2C serial interface.
[in] | ctx | : Click context object. See #adc11_t object definition for detailed explanation. |
[out] | adc_val | : Pointer to the memory location of the structure where data be stored. |
0
- Success, -1
- Error.