| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

Data Structures | Macros
Linduino.h File Reference
Linduino: Linear Technology Arduino-Compatible Demonstration Board Support Libraries Linduino: Linear Technology Arduino-Compatible Demonstration Board Support Libraries » | QuikEval EEPROM library

Header File for Linduino Libraries and Demo Code. More...

## Detailed Description

Header File for Linduino Libraries and Demo Code.

Definition in file Linduino.h.

Go to the source code of this file.

## Data Structures
union | LT_union_int16_2bytes
| This union splits one int16_t (16-bit signed integer) or uint16_t (16-bit unsigned integer) into two uint8_t's (8-bit unsigned integers) and vice versa. More...
union | LT_union_int32_4bytes
| This union splits one int32_t (32-bit signed integer) or uint32_t (32-bit unsigned integer) four uint8_t's (8-bit unsigned integers) and vice versa. More...
union | LT_union_uint32_2uint16s
| This union splits one int32_t (32-bit signed integer) or uint32_t (32-bit unsigned integer) into two uint16_t's (16-bit unsigned integers) and vice versa. More...
union | LT_union_float_4bytes
| This union splits one float into four uint8_t's (8-bit unsigned integers) and vice versa. More...

## Macros
#define | output_low(pin) digitalWrite(pin, LOW)
| Set "pin" low. More...
#define | output_high(pin) digitalWrite(pin, HIGH)
| Set "pin" high. More...
#define | input(pin) digitalRead(pin)
| Return the state of pin "pin". More...
LINDUINO PIN ASSIGNMENTS
#define | QUIKEVAL_GPIO 9
| Linduino QuikEval GPIO pin (QuikEval connector pin 14) connects to Arduino pin 9. More...
#define | QUIKEVAL_CS SS
| QuikEval CS pin (SPI chip select on QuikEval connector pin 6) connects to Arduino SS pin. More...
#define | QUIKEVAL_MUX_MODE_PIN 8
| QUIKEVAL_MUX_MODE_PIN defines the control pin for the QuikEval MUX. More...
ENDIAN DEPENDENT BYTE INDEXES
Arduino/Linduino is a Little Endian Device, where the least significant byte is stored in the first byte of larger data types.
#define | LSB 0
| Location of Least Signficant Byte when Word is accessed as Byte Array. More...
#define | MSB 1
| Location of Most Signficant Byte when Word is accessed as Byte Array. More...
#define | LSW 0
| Location of Least Signficant Word when Long Word is accessed as Byte Array. More...
#define | MSW 1
| Location of most Signficant Word when Long Word is accessed as Byte Array. More...

## Macro Definition Documentation

## ◆ input

#define input | ( |  | pin | ) | digitalRead(pin)

Return the state of pin "pin".

Parameters

  pin | pin to be read (HIGH or LOW).

Returns
  the state of pin "pin"

Definition at line 79 of file Linduino.h.

## ◆ LSB

#define LSB 0

Location of Least Signficant Byte when Word is accessed as Byte Array.

Definition at line 90 of file Linduino.h.

## ◆ LSW

#define LSW 0

Location of Least Signficant Word when Long Word is accessed as Byte Array.

Definition at line 92 of file Linduino.h.

## ◆ MSB

#define MSB 1

Location of Most Signficant Byte when Word is accessed as Byte Array.

Definition at line 91 of file Linduino.h.

## ◆ MSW

#define MSW 1

Location of most Signficant Word when Long Word is accessed as Byte Array.

Definition at line 93 of file Linduino.h.

## ◆ output_high

#define output_high | ( |  | pin | ) | digitalWrite(pin, HIGH)

Set "pin" high.

Parameters

  pin | pin to be driven HIGH

Definition at line 75 of file Linduino.h.

## ◆ output_low

#define output_low | ( |  | pin | ) | digitalWrite(pin, LOW)

Set "pin" low.

Parameters

  pin | pin to be driven LOW

Definition at line 72 of file Linduino.h.

## ◆ QUIKEVAL_CS

#define QUIKEVAL_CS SS

QuikEval CS pin (SPI chip select on QuikEval connector pin 6) connects to Arduino SS pin.

Definition at line 57 of file Linduino.h.

## ◆ QUIKEVAL_GPIO

#define QUIKEVAL_GPIO 9

Linduino QuikEval GPIO pin (QuikEval connector pin 14) connects to Arduino pin 9.

Definition at line 56 of file Linduino.h.

## ◆ QUIKEVAL_MUX_MODE_PIN

#define QUIKEVAL_MUX_MODE_PIN 8

QUIKEVAL_MUX_MODE_PIN defines the control pin for the QuikEval MUX.

The I2C port's SCL and the SPI port's SCK signals share the same pin on the Linduino's QuikEval connector. Additionally, the I2C port's SDA and the SPI port's MOSI signals share the same pin on the Linduino's QuikEval connector. The pair of pins connected to the QuikEval connector is switched using a MUX on the Linduino board. The control pin to switch the MUX is defined as QUIKEVAL_MUX_MODE_PIN (Arduino pin 8).

Definition at line 58 of file Linduino.h.