14.1. Our Goal

In Chapter 5 you saw several of the Laddie application's user interfaces to the ZONE structure: framebuffer, CLI, and web. Here's the ZONE struct from the Laddie source:

typedef struct
{
    int    id;         // ID number of alarm [1-5]
    char   name[ZONE_NAME_LEN];  // the alarm name
    int    enabled;    // 1 if enabled
    int    edge;       // 1 if alarm on low to high transition
    int    latching;   // 1 if should latch the alarm
    int    input;      // is the latest raw input from the alarm
    int    alarm;      // 1 if in alarm
    int    count;      // count of alarms on this pin
}
ZONE;

Figure 14-1 shows how this looked in the RTA table editor.

Figure 14-1. The ZONE struct in the RTA table editor

Jumping ...

Get Linux Appliance Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.