dac 2.0.0.0
|
Functions | |
void | dac_cfg_setup (dac_cfg_t *cfg) |
Config Object Initialization function. | |
DAC_RETVAL | dac_init (dac_t *ctx, dac_cfg_t *cfg) |
Initialization function. | |
void | dac_set_voltage (dac_t *ctx, uint16_t v_out) |
Set voltage function. | |
void | dac_set_voltage_pct (dac_t *ctx, uint8_t v_out_pct) |
Function write procentage value. | |
void dac_cfg_setup | ( | dac_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
DAC_RETVAL dac_init | ( | dac_t * | ctx, |
dac_cfg_t * | cfg ) |
Initialization function.
dac | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void dac_set_voltage | ( | dac_t * | ctx, |
uint16_t | v_out ) |
Set voltage function.
ctx | Click object. |
v_out | 12-bit data value |
@description This function is used to set output voltage.
void dac_set_voltage_pct | ( | dac_t * | ctx, |
uint8_t | v_out_pct ) |
Function write procentage value.
ctx | Click object. |
v_out_pct | Data procentage value. |
@description This function is used to set output voltage in percents.