Data Fields

Command Struct Reference

Holds one command that is received via i2c. More...

Data Fields

uint8_t address
 number of output channel (between 0 and CHANNEL_COUNT-1
uint16_t value
 value to be assigned to the channel (between 0 and 128*128-1 = 16383
ReadCommandState state
 what are we waiting for?

Detailed Description

Holds one command that is received via i2c.

The command consists of an address (number of output channel) and a 16-bit value. The state is used to indicate what part of the next command we are waiting for.

Definition at line 367 of file main.c.


Field Documentation

number of output channel (between 0 and CHANNEL_COUNT-1

Definition at line 368 of file main.c.

Referenced by evaluate_i2c_input().

what are we waiting for?

Definition at line 372 of file main.c.

Referenced by evaluate_i2c_input().

uint16_t Command::value

value to be assigned to the channel (between 0 and 128*128-1 = 16383

Definition at line 370 of file main.c.

Referenced by evaluate_i2c_input().


The documentation for this struct was generated from the following file: