rmstodc 2.0.0.0
|
Functions | |
void | rmstodc_cfg_setup (rmstodc_cfg_t *cfg) |
Config Object Initialization function. | |
RMSTODC_RETVAL | rmstodc_init (rmstodc_t *ctx, rmstodc_cfg_t *cfg) |
Initialization function. | |
uint16_t | rms2dc_read_adc (rmstodc_t *ctx) |
ADC Read function. | |
uint16_t | rms2dc_vout_adc (rmstodc_t *ctx, uint16_t vcc_sel) |
Get Output Voltage function. | |
void | rms2dc_enable (rmstodc_t *ctx, uint8_t state) |
Enable function. | |
void rms2dc_enable | ( | rmstodc_t * | ctx, |
uint8_t | state ) |
Enable function.
state | 0 - ON, 1 - OFF |
Function turns ON/OFF the device.
uint16_t rms2dc_read_adc | ( | rmstodc_t * | ctx | ) |
ADC Read function.
Function returns a 12bit result of AD conversion.
uint16_t rms2dc_vout_adc | ( | rmstodc_t * | ctx, |
uint16_t | vcc_sel ) |
Get Output Voltage function.
vcc_sel | VCC value selection [mV] |
Function returns the output voltage value calculated to mV, depending on the power voltage selection.
void rmstodc_cfg_setup | ( | rmstodc_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
RMSTODC_RETVAL rmstodc_init | ( | rmstodc_t * | ctx, |
rmstodc_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.