profet10a 2.0.0.0
|
API for configuring and manipulating PROFET10A Click driver. More...
Topics | |
PROFET 10A Registers Settings | |
Settings for registers of PROFET10A Click driver. | |
PROFET 10A MikroBUS Map | |
MikroBUS pin mapping of PROFET 10A Click driver. | |
Functions | |
void | profet10a_cfg_setup (profet10a_cfg_t *cfg) |
PROFET 10A configuration object setup function. | |
err_t | profet10a_init (profet10a_t *ctx, profet10a_cfg_t *cfg) |
PROFET 10A initialization function. | |
err_t | profet10a_read_an_pin_value (profet10a_t *ctx, uint16_t *data_out) |
PROFET 10A read AN pin value function. | |
err_t | profet10a_read_an_pin_voltage (profet10a_t *ctx, float *data_out) |
PROFET 10A read AN pin voltage level function. | |
err_t | profet10a_set_mode (profet10a_t *ctx, uint8_t mode) |
PROFET 10A set mode. | |
API for configuring and manipulating PROFET10A Click driver.
API for configuring and manipulating PROFET 10A Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void profet10a_cfg_setup | ( | profet10a_cfg_t * | cfg | ) |
PROFET 10A configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See profet10a_cfg_t object definition for detailed explanation. |
err_t profet10a_init | ( | profet10a_t * | ctx, |
profet10a_cfg_t * | cfg ) |
PROFET 10A initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See profet10a_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See profet10a_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t profet10a_read_an_pin_value | ( | profet10a_t * | ctx, |
uint16_t * | data_out ) |
PROFET 10A read AN pin value function.
This function reads results of AD conversion of the AN pin.
[in] | ctx | : Click context object. See profet10a_t object definition for detailed explanation. |
[out] | data_out | : Output ADC result. |
0
- Success, -1
- Error.err_t profet10a_read_an_pin_voltage | ( | profet10a_t * | ctx, |
float * | data_out ) |
PROFET 10A 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 profet10a_t object definition for detailed explanation. |
[out] | data_out | : Output voltage level of the analog pin [V]. |
0
- Success, -1
- Error.err_t profet10a_set_mode | ( | profet10a_t * | ctx, |
uint8_t | mode ) |
PROFET 10A set mode.
This function sets DEN and IN pins state to set device in selected mode.
[in] | ctx | : Click context object. See profet10a_t object definition for detailed explanation. |
[in] | mode | : Mode to set. |
0
- Success, -1
- Error.