| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

Functions | Variables
_24xx_iso_spi_poll.ino File Reference
Example Designs » LTC24xx_iso_spi_poll: Modified LTC24xx sketch for isoSPI LTC6820

Go to the source code of this file.

## Functions
static void | print_title ()
| Prints the title block when program first starts. More...
static void | print_prompt ()
| Prints main menu. More...
static void | print_user_command (uint8_t menu)
| Display selected differential channels. More...
static uint8_t | menu_1_read_single_ended ()
| read from ADC single-ended More...
static uint8_t | menu_2_read_differential ()
| Read channels in differential mode. More...
static void | setup ()
| Initialize Linduino. More...
static void | loop ()
| Repeats Linduino loop. More...

## Variables
static uint8_t | demo_board_connected
| Set to 1 if the board is connected. More...
static float | reference_voltage = 5.0
| The reference voltage range, set to 5v through JP2 and JP3 by default. More...
const uint16_t | MISO_TIMEOUT = 100
| The MISO timeout (ms) More...
const uint8_t | BUILD_COMMAND_SINGLE_ENDED [16]
| Builds the command for single-ended mode. More...
const uint8_t | BUILD_COMMAND_DIFF [16]

## Function Documentation

## ◆ loop()

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

Repeats Linduino loop.

Definition at line 135 of file _24xx_iso_spi_poll.ino.

## ◆ menu_1_read_single_ended()

static uint8_t menu_1_read_single_ended | ( |  | ) |
| static

read from ADC single-ended

Returns
  0 if successful, 1 if failure
  0 when m is entered into menu, 1 if timeout for EOC

Definition at line 199 of file _24xx_iso_spi_poll.ino.

## ◆ menu_2_read_differential()

static uint8_t menu_2_read_differential | ( |  | ) |
| static

Read channels in differential mode.

Returns
  0 when m is entered into menu, 1 if timeout for EOC

Definition at line 274 of file _24xx_iso_spi_poll.ino.

## ◆ print_prompt()

static void print_prompt | ( |  | ) |
| static

Prints main menu.

Definition at line 187 of file _24xx_iso_spi_poll.ino.

## ◆ print_title()

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

Prints the title block when program first starts.

Definition at line 171 of file _24xx_iso_spi_poll.ino.

## ◆ print_user_command()

static void print_user_command | ( | uint8_t | menu | ) |
| static

Display selected differential channels.

Displaying Single-Ended channels is straightforward; not so with differential because the inputs can take either polarity.

Parameters

  menu | the selected channels

Definition at line 363 of file _24xx_iso_spi_poll.ino.

## ◆ setup()

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

Initialize Linduino.

Definition at line 118 of file _24xx_iso_spi_poll.ino.

## Variable Documentation

## ◆ BUILD_COMMAND_DIFF

const uint8_t BUILD_COMMAND_DIFF[16]

Initial value:
= {LTC24XX_MULTI_CH_P0_N1,
LTC24XX_MULTI_CH_P2_N3,
LTC24XX_MULTI_CH_P4_N5,
LTC24XX_MULTI_CH_P6_N7,
LTC24XX_MULTI_CH_P8_N9,
LTC24XX_MULTI_CH_P10_N11,
LTC24XX_MULTI_CH_P12_N13,
LTC24XX_MULTI_CH_P14_N15,
LTC24XX_MULTI_CH_P1_N0,
LTC24XX_MULTI_CH_P3_N2,
LTC24XX_MULTI_CH_P5_N4,
LTC24XX_MULTI_CH_P7_N6,
LTC24XX_MULTI_CH_P9_N8,
LTC24XX_MULTI_CH_P11_N10,
LTC24XX_MULTI_CH_P13_N12,
LTC24XX_MULTI_CH_P15_N14
}
LTC24XX_MULTI_CH_P13_N12
#define LTC24XX_MULTI_CH_P13_N12
Definition: LTC24XX_general.h:225
LTC24XX_MULTI_CH_P1_N0
#define LTC24XX_MULTI_CH_P1_N0
Definition: LTC24XX_general.h:207
LTC24XX_MULTI_CH_P4_N5
#define LTC24XX_MULTI_CH_P4_N5
Definition: LTC24XX_general.h:212
LTC24XX_MULTI_CH_P9_N8
#define LTC24XX_MULTI_CH_P9_N8
Definition: LTC24XX_general.h:219
LTC24XX_MULTI_CH_P14_N15
#define LTC24XX_MULTI_CH_P14_N15
Definition: LTC24XX_general.h:227
LTC24XX_MULTI_CH_P3_N2
#define LTC24XX_MULTI_CH_P3_N2
Definition: LTC24XX_general.h:210
LTC24XX_MULTI_CH_P2_N3
#define LTC24XX_MULTI_CH_P2_N3
Definition: LTC24XX_general.h:209
LTC24XX_MULTI_CH_P10_N11
#define LTC24XX_MULTI_CH_P10_N11
Definition: LTC24XX_general.h:221
LTC24XX_MULTI_CH_P12_N13
#define LTC24XX_MULTI_CH_P12_N13
Definition: LTC24XX_general.h:224
LTC24XX_MULTI_CH_P5_N4
#define LTC24XX_MULTI_CH_P5_N4
Definition: LTC24XX_general.h:213
LTC24XX_MULTI_CH_P8_N9
#define LTC24XX_MULTI_CH_P8_N9
Definition: LTC24XX_general.h:218
LTC24XX_MULTI_CH_P7_N6
#define LTC24XX_MULTI_CH_P7_N6
Definition: LTC24XX_general.h:216
LTC24XX_MULTI_CH_P15_N14
#define LTC24XX_MULTI_CH_P15_N14
Definition: LTC24XX_general.h:228
LTC24XX_MULTI_CH_P11_N10
#define LTC24XX_MULTI_CH_P11_N10
Definition: LTC24XX_general.h:222
LTC24XX_MULTI_CH_P0_N1
#define LTC24XX_MULTI_CH_P0_N1
Definition: LTC24XX_general.h:206
LTC24XX_MULTI_CH_P6_N7
#define LTC24XX_MULTI_CH_P6_N7
Definition: LTC24XX_general.h:215

Definition at line 98 of file _24xx_iso_spi_poll.ino.

## ◆ BUILD_COMMAND_SINGLE_ENDED

const uint8_t BUILD_COMMAND_SINGLE_ENDED[16]

Initial value:
= {LTC24XX_MULTI_CH_CH0,
LTC24XX_MULTI_CH_CH1,
LTC24XX_MULTI_CH_CH2,
LTC24XX_MULTI_CH_CH3,
LTC24XX_MULTI_CH_CH4,
LTC24XX_MULTI_CH_CH5,
LTC24XX_MULTI_CH_CH6,
LTC24XX_MULTI_CH_CH7,
LTC24XX_MULTI_CH_CH8,
LTC24XX_MULTI_CH_CH9,
LTC24XX_MULTI_CH_CH10,
LTC24XX_MULTI_CH_CH11,
LTC24XX_MULTI_CH_CH12,
LTC24XX_MULTI_CH_CH13,
LTC24XX_MULTI_CH_CH14,
LTC24XX_MULTI_CH_CH15
}
LTC24XX_MULTI_CH_CH3
#define LTC24XX_MULTI_CH_CH3
Definition: LTC24XX_general.h:185
LTC24XX_MULTI_CH_CH14
#define LTC24XX_MULTI_CH_CH14
Definition: LTC24XX_general.h:196
LTC24XX_MULTI_CH_CH8
#define LTC24XX_MULTI_CH_CH8
Definition: LTC24XX_general.h:190
LTC24XX_MULTI_CH_CH15
#define LTC24XX_MULTI_CH_CH15
Definition: LTC24XX_general.h:197
LTC24XX_MULTI_CH_CH13
#define LTC24XX_MULTI_CH_CH13
Definition: LTC24XX_general.h:195
LTC24XX_MULTI_CH_CH1
#define LTC24XX_MULTI_CH_CH1
Definition: LTC24XX_general.h:183
LTC24XX_MULTI_CH_CH6
#define LTC24XX_MULTI_CH_CH6
Definition: LTC24XX_general.h:188
LTC24XX_MULTI_CH_CH5
#define LTC24XX_MULTI_CH_CH5
Definition: LTC24XX_general.h:187
LTC24XX_MULTI_CH_CH0
#define LTC24XX_MULTI_CH_CH0
Definition: LTC24XX_general.h:182
LTC24XX_MULTI_CH_CH11
#define LTC24XX_MULTI_CH_CH11
Definition: LTC24XX_general.h:193
LTC24XX_MULTI_CH_CH2
#define LTC24XX_MULTI_CH_CH2
Definition: LTC24XX_general.h:184
LTC24XX_MULTI_CH_CH12
#define LTC24XX_MULTI_CH_CH12
Definition: LTC24XX_general.h:194
LTC24XX_MULTI_CH_CH7
#define LTC24XX_MULTI_CH_CH7
Definition: LTC24XX_general.h:189
LTC24XX_MULTI_CH_CH10
#define LTC24XX_MULTI_CH_CH10
Definition: LTC24XX_general.h:192
LTC24XX_MULTI_CH_CH9
#define LTC24XX_MULTI_CH_CH9
Definition: LTC24XX_general.h:191
LTC24XX_MULTI_CH_CH4
#define LTC24XX_MULTI_CH_CH4
Definition: LTC24XX_general.h:186

Builds the command for single-ended mode.

Definition at line 79 of file _24xx_iso_spi_poll.ino.

## ◆ demo_board_connected

uint8_t demo_board_connected
| static

Set to 1 if the board is connected.

Definition at line 72 of file _24xx_iso_spi_poll.ino.

## ◆ MISO_TIMEOUT

const uint16_t MISO_TIMEOUT = 100

The MISO timeout (ms)

Definition at line 76 of file _24xx_iso_spi_poll.ino.

## ◆ reference_voltage

float reference_voltage = 5.0
| static

The reference voltage range, set to 5v through JP2 and JP3 by default.

Definition at line 73 of file _24xx_iso_spi_poll.ino.