dac 2.0.0.0
Public function

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.
 

Detailed Description

Function Documentation

◆ dac_cfg_setup()

void dac_cfg_setup ( dac_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ dac_init()

DAC_RETVAL dac_init ( dac_t * ctx,
dac_cfg_t * cfg )

Initialization function.

Parameters
dacClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ dac_set_voltage()

void dac_set_voltage ( dac_t * ctx,
uint16_t v_out )

Set voltage function.

Parameters
ctxClick object.
v_out12-bit data value

@description This function is used to set output voltage.

◆ dac_set_voltage_pct()

void dac_set_voltage_pct ( dac_t * ctx,
uint8_t v_out_pct )

Function write procentage value.

Parameters
ctxClick object.
v_out_pctData procentage value.

@description This function is used to set output voltage in percents.