|
В .h файле написано
/* Data type definitions */typedef
enum // Student working place state
{
ALONE=0, //
PAIR, // in pair
GROUP, // in group
CONF // in coference
}
State;typedef enum { // LED display color types
CL_NONE = 0,
CL_RED,
CL_GREEN,
CL_YELLOW,
CL_G_BLINKED, // Blinked green
CL_R_BLINKED, // Blinked red
CL_RED_GREEN // Alternative red / green
}
Color;typedef struct { // Student work place data
State state:2; // The place state
Color color:3; // LED color
char selct:1; // The place selection: ON / OFF
char mike:1; // Microphone state: ON / OFF
char inspct:1; // Teacher inspection: ON / OFF
}
Student;//
// SRAM variables
//
extern Student Students[NSTUDENTS]; // Student working places
/* Global data */Student Students[NSTUDENTS]; // Student working places
E-mail: info@telesys.ru