emg 2.0.0.0
|
API for configuring and manipulating EMG Click driver. More...
Topics | |
EMG MikroBUS Map | |
MikroBUS pin mapping of EMG Click driver. | |
Functions | |
void | emg_cfg_setup (emg_cfg_t *cfg) |
EMG configuration object setup function. | |
err_t | emg_init (emg_t *ctx, emg_cfg_t *cfg) |
EMG initialization function. | |
err_t | emg_read_an_pin_value (emg_t *ctx, uint16_t *data_out) |
EMG read AN pin value function. | |
err_t | emg_read_an_pin_voltage (emg_t *ctx, float *data_out) |
EMG read AN pin voltage level function. | |
API for configuring and manipulating EMG Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void emg_cfg_setup | ( | emg_cfg_t * | cfg | ) |
EMG configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See emg_cfg_t object definition for detailed explanation. |
EMG initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See emg_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See emg_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t emg_read_an_pin_value | ( | emg_t * | ctx, |
uint16_t * | data_out ) |
EMG read AN pin value function.
This function reads results of AD conversion of the AN pin.
[in] | ctx | : Click context object. See emg_t object definition for detailed explanation. |
[out] | data_out | : Output ADC result. |
0
- Success, -1
- Error.err_t emg_read_an_pin_voltage | ( | emg_t * | ctx, |
float * | data_out ) |
EMG 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 emg_t object definition for detailed explanation. |
[out] | data_out | : Output voltage level of the analog pin [V]. |
0
- Success, -1
- Error.