| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

Functions | Variables
EVAL-AD5696R.ino File Reference

Go to the source code of this file.

## Functions
static void | setup ()
static void | loop ()
static void | print_title ()
| Prints the title block. More...
static void | print_prompt (uint8_t selected_dac, float ref_voltage)
static uint8_t | menu_1_select_dac (uint8_t *selected_dac)
static uint8_t | menu_2_write_to_input_register (uint8_t selected_dac, float vref)
| Menu 2: Write to input register only. More...
static uint8_t | menu_3_update_dac (uint8_t selected_dac)
static uint8_t | menu_4_write_and_update_dac (uint8_t selected_dac, float vref)
static uint8_t | menu_5_set_DAC_power_mode (uint8_t selected_dac)
static uint8_t | menu_6_select_ref_voltage (float *vref)
static uint8_t | menu_7_read_back_dac_input_registers ()
static uint8_t | menu_8_set_ldac_mask ()
static uint8_t | menu_9_assert_ldac ()
static uint8_t | menu_10_set_gain ()
static uint8_t | menu_11_assert_soft_reset ()
static uint8_t | menu_12_assert_hard_reset ()
static uint16_t | voltage_to_code (float voltage, float vRef)
static uint16_t | get_voltage_code (float vRef)
static float | get_voltage_float ()

## Variables
const String | dac_selection [4]
i2c_init_param | i2c_params
spi_init_param | spi_params
ad5686_init_param | init_params
ad5686_dev * | device
gpio_desc | gpio_gain
static int32_t | connected = FAILURE

## Function Documentation

## ◆ get_voltage_code()

static uint16_t get_voltage_code | ( | float | vRef | ) |
| static

Definition at line 608 of file EVAL-AD5696R.ino.

## ◆ get_voltage_float()

static float get_voltage_float | ( |  | ) |
| static

Definition at line 615 of file EVAL-AD5696R.ino.

## ◆ loop()

static void loop | ( | void |  | ) |
| static

Definition at line 137 of file EVAL-AD5696R.ino.

## ◆ menu_10_set_gain()

static uint8_t menu_10_set_gain | ( |  | ) |
| static

Definition at line 534 of file EVAL-AD5696R.ino.

## ◆ menu_11_assert_soft_reset()

static uint8_t menu_11_assert_soft_reset | ( |  | ) |
| static

Definition at line 568 of file EVAL-AD5696R.ino.

## ◆ menu_12_assert_hard_reset()

static uint8_t menu_12_assert_hard_reset | ( |  | ) |
| static

Definition at line 577 of file EVAL-AD5696R.ino.

## ◆ menu_1_select_dac()

static uint8_t menu_1_select_dac | ( | uint8_t * | selected_dac | ) |
| static

Definition at line 264 of file EVAL-AD5696R.ino.

## ◆ menu_2_write_to_input_register()

static uint8_t menu_2_write_to_input_register | ( | uint8_t | selected_dac,
|  | float | vref
| ) |  |
| static

Menu 2: Write to input register only.

Does not update the output voltage.

Returns
  Returns the state of the acknowledge bit after the I2C address write. 0=acknowledge, 1=no acknowledge.

Parameters

  vref | DAC to be updated. 0=A, 1=B, 2=All

Definition at line 294 of file EVAL-AD5696R.ino.

## ◆ menu_3_update_dac()

static uint8_t menu_3_update_dac | ( | uint8_t | selected_dac | ) |
| static

Definition at line 304 of file EVAL-AD5696R.ino.

## ◆ menu_4_write_and_update_dac()

static uint8_t menu_4_write_and_update_dac | ( | uint8_t | selected_dac,
|  | float | vref
| ) |  |
| static

Parameters

  vref | DAC to be updated. 0=A, 1=B, 2=All

Definition at line 316 of file EVAL-AD5696R.ino.

## ◆ menu_5_set_DAC_power_mode()

static uint8_t menu_5_set_DAC_power_mode | ( | uint8_t | selected_dac | ) |
| static

Definition at line 329 of file EVAL-AD5696R.ino.

## ◆ menu_6_select_ref_voltage()

static uint8_t menu_6_select_ref_voltage | ( | float * | vref | ) |
| static

Definition at line 419 of file EVAL-AD5696R.ino.

## ◆ menu_7_read_back_dac_input_registers()

static uint8_t menu_7_read_back_dac_input_registers | ( |  | ) |
| static

Definition at line 455 of file EVAL-AD5696R.ino.

## ◆ menu_8_set_ldac_mask()

static uint8_t menu_8_set_ldac_mask | ( |  | ) |
| static

Definition at line 506 of file EVAL-AD5696R.ino.

## ◆ menu_9_assert_ldac()

static uint8_t menu_9_assert_ldac | ( |  | ) |
| static

Definition at line 524 of file EVAL-AD5696R.ino.

## ◆ print_prompt()

static void print_prompt | ( | uint8_t | selected_dac,
|  | float | ref_voltage
| ) |  |
| static

Parameters

  ref_voltage | this parameter is passed so that it can be printed at the bottom of the menu.

Definition at line 231 of file EVAL-AD5696R.ino.

## ◆ print_title()

static void print_title | ( | void |  | ) |
| static

Prints the title block.

Definition at line 218 of file EVAL-AD5696R.ino.

## ◆ setup()

static void setup | ( | void |  | ) |
| static

Definition at line 105 of file EVAL-AD5696R.ino.

## ◆ voltage_to_code()

static uint16_t voltage_to_code | ( | float | voltage,
|  | float | vRef
| ) |  |
| static

Definition at line 590 of file EVAL-AD5696R.ino.

## Variable Documentation

## ◆ connected

int32_t connected = FAILURE
| static

Definition at line 103 of file EVAL-AD5696R.ino.

## ◆ dac_selection

const String dac_selection[4]

Initial value:
=
{
"A",
"B",
"C",
"D"
}

Definition at line 56 of file EVAL-AD5696R.ino.

## ◆ device

ad5686_dev* device

Definition at line 94 of file EVAL-AD5696R.ino.

## ◆ gpio_gain

gpio_desc gpio_gain

Initial value:
=
{
GENERIC_GPIO,
0,
2,
}
GENERIC_GPIO
Definition: platform_drivers.h:121

Definition at line 96 of file EVAL-AD5696R.ino.

## ◆ i2c_params

i2c_init_param i2c_params

Initial value:
=
{
GENERIC_I2C,
0,
100000,
0x0F,
}
GENERIC_I2C
Definition: platform_drivers.h:74

Definition at line 65 of file EVAL-AD5696R.ino.

## ◆ init_params

ad5686_init_param init_params

Initial value:
=
{
i2c_params,
spi_params,
4,
5,
ID_AD5696R,
}
spi_params
spi_init_param spi_params
Definition: EVAL-AD5696R.ino:73
i2c_params
i2c_init_param i2c_params
Definition: EVAL-AD5696R.ino:65

Definition at line 82 of file EVAL-AD5696R.ino.

## ◆ spi_params

spi_init_param spi_params

Initial value:
=
{
GENERIC_SPI,
0,
1,
0,
0,
}
GENERIC_SPI
Definition: platform_drivers.h:92

Definition at line 73 of file EVAL-AD5696R.ino.