dac7 2.0.0.0
|
Functions | |
void | dac7_cfg_setup (dac7_cfg_t *cfg) |
Config Object Initialization function. | |
DAC7_RETVAL | dac7_init (dac7_t *ctx, dac7_cfg_t *cfg) |
Initialization function. | |
void | dac7_write_data (dac7_t *ctx, uint8_t def_cmd, uint8_t addr_cmd, uint16_t write_data) |
Generic write data function. | |
DAC7_RETVAL_T | dac7_set_channel (dac7_t *ctx, uint8_t set_cmd, uint8_t addr_ch, uint16_t write_data) |
Set the values of the specified channel function. | |
DAC7_RETVAL_T | dac7_set_ch_voltage (dac7_t *ctx, uint8_t addr_ch, uint16_t vol_val, uint16_t v_ref_mv) |
Set the voltage values of the specified channel function. | |
DAC7_RETVAL_T | dac7_update_channel (dac7_t *ctx, uint8_t addr_ch, uint16_t ch_data) |
Update channel function. | |
DAC7_RETVAL_T | dac7_set_power (dac7_t *ctx, uint8_t pwr_en, uint8_t sel_ch) |
Set power mode function. | |
DAC7_RETVAL_T | dac7_sw_reset (dac7_t *ctx) |
Software reset function. | |
DAC7_RETVAL_T | dac7_set_ldac (dac7_t *ctx, uint8_t sel_ch) |
Set LDAC setup function. | |
DAC7_RETVAL_T | dac7_set_internal_reference (dac7_t *ctx, uint8_t int_ref_en) |
Set internal reference function. | |
void dac7_cfg_setup | ( | dac7_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
DAC7_RETVAL dac7_init | ( | dac7_t * | ctx, |
dac7_cfg_t * | cfg ) |
Initialization function.
dac7 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
DAC7_RETVAL_T dac7_set_ch_voltage | ( | dac7_t * | ctx, |
uint8_t | addr_ch, | ||
uint16_t | vol_val, | ||
uint16_t | v_ref_mv ) |
Set the voltage values of the specified channel function.
ctx | Click object. |
addr_ch | 3-bit address command. |
vol_val | Voltage values [ from 0 mV to 4096 mV or 5000 mV ]. |
v_ref_mv | Voltage reference value. |
@description This function set 12-bit value of 3-bit command definition to the target 3-bit address command of AD5624R Quad, 12-bit nanoDACs on DAC 7 Click board.
DAC7_RETVAL_T dac7_set_channel | ( | dac7_t * | ctx, |
uint8_t | set_cmd, | ||
uint8_t | addr_ch, | ||
uint16_t | write_data ) |
Set the values of the specified channel function.
ctx | Click object. |
set_cmd | 3-bit command definition. |
addr_ch | 3-bit address command. |
write_data | 12-bit values of the specified channel. |
@description This function set 12-bit value of 3-bit command definition to the target 3-bit address command of AD5624R Quad, 12-bit nanoDACs on DAC 7 Click board.
DAC7_RETVAL_T dac7_set_internal_reference | ( | dac7_t * | ctx, |
uint8_t | int_ref_en ) |
Set internal reference function.
ctx | Click object. |
int_ref_en | Channel selection. |
@description This function set internal reference of respective channel of AD5624R Quad, 12-bit nanoDACs on DAC 7 Click board.
DAC7_RETVAL_T dac7_set_ldac | ( | dac7_t * | ctx, |
uint8_t | sel_ch ) |
Set LDAC setup function.
ctx | Click object. |
sel_ch | Channel selection. |
@description This function set LDAC setup of respective channel of AD5624R Quad, 12-bit nanoDACs on DAC 7 Click board.
DAC7_RETVAL_T dac7_set_power | ( | dac7_t * | ctx, |
uint8_t | pwr_en, | ||
uint8_t | sel_ch ) |
Set power mode function.
ctx | Click object. |
pwr_en | Power Enable/Disable. |
sel_ch | Channel selection. |
@description This function set power mode of selected channel of AD5624R Quad, 12-bit nanoDACs on DAC 7 Click board.
DAC7_RETVAL_T dac7_sw_reset | ( | dac7_t * | ctx | ) |
Software reset function.
ctx | Click object. |
@description This function set software reset of selected channel of AD5624R Quad, 12-bit nanoDACs on DAC 7 Click board.
DAC7_RETVAL_T dac7_update_channel | ( | dac7_t * | ctx, |
uint8_t | addr_ch, | ||
uint16_t | ch_data ) |
Update channel function.
ctx | Click object. |
addr_ch | 3-bit address command. |
ch_data | 12-bit values of the specified channel. |
@description This function write and update 12-bit data to the target 3-bit address command of AD5624R Quad, 12-bit nanoDACs on DAC 7 Click board.
void dac7_write_data | ( | dac7_t * | ctx, |
uint8_t | def_cmd, | ||
uint8_t | addr_cmd, | ||
uint16_t | write_data ) |
Generic write data function.
ctx | Click object. |
def_cmd | 3-bit command definition. |
addr_cmd | 3-bit address command. |
write_data | 12-bit data to write. |
@description This function set 3-bit command definition and write 12-bit data to the target 3-bit address command of AD5624R Quad, 12-bit nanoDACs on DAC 7 Click board.