uv 2.0.0.0
|
Functions | |
void | uv_cfg_setup (uv_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | uv_init (uv_t *ctx, uv_cfg_t *cfg) |
Initialization function. | |
void | uv_set_callback_handler (uv_t *ctx, uv_callback_t handler) |
Callback Handler Setting function. | |
err_t | uv_read_adc_value (uv_t *ctx, uint16_t *data_out) |
ADC Reading function. | |
err_t | uv_read_adc_voltage (uv_t *ctx, float *data_out) |
ADC Voltage Reading function. | |
err_t | uv_read_an_pin_value (uv_t *ctx, uint16_t *data_out) |
AN Pin Reading function. | |
err_t | uv_read_an_pin_voltage (uv_t *ctx, float *data_out) |
AN Pin Voltage Reading function. | |
void | uv_calc_index (uv_t *ctx, float data_in, uint8_t *data_out) |
UV Index Calculation function. | |
void | uv_device_enable (uv_t *ctx) |
Device Power ON function. | |
void | uv_device_disable (uv_t *ctx) |
Device Power OFF function. | |
void uv_calc_index | ( | uv_t * | ctx, |
float | data_in, | ||
uint8_t * | data_out ) |
UV Index Calculation function.
[in] | ctx | Click object. |
[in] | data_in | ADC voltage value for conversion from ADC voltage to UV index level. |
[out] | data_out | UV index level. |
This function calculates UV index level depending on the converted ADC voltage value.
void uv_cfg_setup | ( | uv_cfg_t * | cfg | ) |
Config Object Initialization function.
[out] | cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void uv_device_disable | ( | uv_t * | ctx | ) |
Device Power OFF function.
[in] | ctx | Click object. |
This function allows device to be powered OFF / disabled.
void uv_device_enable | ( | uv_t * | ctx | ) |
Device Power ON function.
[in] | ctx | Click object. |
This function allows device to be powered ON / enabled.
Initialization function.
[out] | ctx | Click object. |
[in] | cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
err_t uv_read_adc_value | ( | uv_t * | ctx, |
uint16_t * | data_out ) |
ADC Reading function.
[in] | ctx | Click object. |
[out] | data_out | AD conversion result [12-bit]. |
This function reads AD conversion results.
err_t uv_read_adc_voltage | ( | uv_t * | ctx, |
float * | data_out ) |
ADC Voltage Reading function.
[in] | ctx | Click object. |
[out] | data_out | AD voltage value [V]. |
This function reads AD voltage value.
err_t uv_read_an_pin_value | ( | uv_t * | ctx, |
uint16_t * | data_out ) |
AN Pin Reading function.
[in] | ctx | Click object. |
[out] | data_out | AD conversion result [10-bit]. |
This function reads Analog pin by using AD converter from MCU.
err_t uv_read_an_pin_voltage | ( | uv_t * | ctx, |
float * | data_out ) |
AN Pin Voltage Reading function.
[in] | ctx | Click object. |
[out] | data_out | AN pin voltage value [V]. |
This function reads voltage on the Analog pin by using AD converter from MCU.
void uv_set_callback_handler | ( | uv_t * | ctx, |
uv_callback_t | handler ) |
Callback Handler Setting function.
[out] | ctx | Click object. |
[in] | handler | Callback handler function. |
This function sets a callback handler for the selected ctx object.