hztov2 2.0.0.0
|
Functions | |
void | hztov2_cfg_setup (hztov2_cfg_t *cfg) |
Config Object Initialization function. | |
HZTOV2_RETVAL | hztov2_init (hztov2_t *ctx, hztov2_cfg_t *cfg) |
Initialization function. | |
hztov2_data_t | hztov2_generic_read (hztov2_t *ctx) |
Generic read function. | |
float | hztov2_read_voltage (hztov2_t *ctx) |
Read voltage function. | |
void | hztov2_en_pin (hztov2_t *ctx, uint8_t pin_state) |
Function for enabling the click board. | |
HZTOV2_RETVAL | hztov2_fin_set (hztov2_t *ctx, uint32_t fin) |
PWM frequency set function. | |
void hztov2_cfg_setup | ( | hztov2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void hztov2_en_pin | ( | hztov2_t * | ctx, |
uint8_t | pin_state ) |
Function for enabling the click board.
ctx | Click object. |
pin_state | Pin state. |
@description This function enable the click board.
HZTOV2_RETVAL hztov2_fin_set | ( | hztov2_t * | ctx, |
uint32_t | fin ) |
PWM frequency set function.
ctx | Click object. |
fin | PWM frequency input value in the range of 200 to 120000 Hz. |
@description This function sets PWM clock frequency at FIN pin.
hztov2_data_t hztov2_generic_read | ( | hztov2_t * | ctx | ) |
Generic read function.
ctx | Click object. |
@description This function read ADC data.
HZTOV2_RETVAL hztov2_init | ( | hztov2_t * | ctx, |
hztov2_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
float hztov2_read_voltage | ( | hztov2_t * | ctx | ) |
Read voltage function.
ctx | Click object. |
@description This function read ADC data and converts it to voltage.