hydrogen
2.0.0.0
|
API for configuring and manipulating Hydrogen Click driver. More...
Modules | |
Hydrogen Registers List | |
List of registers of Hydrogen Click driver. | |
Hydrogen Registers Settings | |
Hydrogen description register. | |
Hydrogen MikroBUS Map | |
Hydrogen description setting. | |
Functions | |
void | hydrogen_cfg_setup (hydrogen_cfg_t *cfg) |
Hydrogen configuration object setup function. More... | |
err_t | hydrogen_init (hydrogen_t *ctx, hydrogen_cfg_t *cfg) |
Hydrogen initialization function. More... | |
err_t | hydrogen_read_an_pin_value (hydrogen_t *ctx, uint16_t *data_out) |
Hydrogen read AN pin value function. More... | |
err_t | hydrogen_read_an_pin_voltage (hydrogen_t *ctx, float *data_out) |
Hydrogen read AN pin voltage level function. More... | |
API for configuring and manipulating Hydrogen Click driver.
void hydrogen_cfg_setup | ( | hydrogen_cfg_t * | cfg | ) |
Hydrogen configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See hydrogen_cfg_t object definition for detailed explanation. |
err_t hydrogen_init | ( | hydrogen_t * | ctx, |
hydrogen_cfg_t * | cfg | ||
) |
Hydrogen initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See hydrogen_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See hydrogen_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t hydrogen_read_an_pin_value | ( | hydrogen_t * | ctx, |
uint16_t * | data_out | ||
) |
Hydrogen read AN pin value function.
This function reads results of AD conversion of the AN pin.
[in] | ctx | : Click context object. See hydrogen_t object definition for detailed explanation. |
[out] | data_out | : Output ADC result. |
0
- Success, -1
- Error.err_t hydrogen_read_an_pin_voltage | ( | hydrogen_t * | ctx, |
float * | data_out | ||
) |
Hydrogen read AN pin voltage level function.
This function reads results of AD conversion of the AN pin and converts them to proportional voltage level.
[in] | ctx | : Click context object. See hydrogen_t object definition for detailed explanation. |
[out] | data_out | : Output voltage level of the analog pin [V]. |
0
- Success, -1
- Error.