Blame view

BlinkerSchema/schema.ems 585 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version = "1.0.0"
description = "Blinker, the hello world program for mobile control"

schema Blinker {

    /* -------- resource cmd -------- */
    enum Cmd {
        START_CMD, STOP_CMD
    }
    Cmd cmd {
        writeonly
    }

    /* -------- resource count -------- */
    int16 count {
        readwrite
    }

    /* -------- resource delay -------- */
    num <0.5, 2.0, 0.100> delay {
        readwrite
    }

    /* -------- resource ledState -------- */
    enum LedState {
        LED_OFF, LED_ON
    }
    LedState ledState {
        readonly
        indicator
    }
}