Open Lighting Architecture  0.9.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
E133Enums.h
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU Library General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
15  *
16  * E133Enums.h
17  * Enums for use with E1.33
18  * Copyright (C) 2013 Simon Newton
19  */
20 
21 #ifndef INCLUDE_OLA_E133_E133ENUMS_H_
22 #define INCLUDE_OLA_E133_E133ENUMS_H_
23 
24 namespace ola {
25 namespace e133 {
26 
27 // Table A-6, Discovery Stats
28 enum DiscoveryState {
29  DISCOVERY_INCOMPLETE = 0,
31  DISCOVERY_FULL = 3,
32  DISCOVERY_NOT_ACTIVE = 4,
33 };
34 
35 // Table A-7, Endpoint Modes.
36 enum EndpointMode {
37  ENDPOINT_MODE_DISABLED = 0,
38  ENDPOINT_MODE_INPUT = 1,
39  ENDPOINT_MODE_OUTPUT = 2,
40 };
41 
42 // Table A-9 E1.33 Status Codes
43 enum E133StatusCode {
44  SC_E133_ACK = 0x0000,
45  SC_E133_RDM_TIMEOUT = 0x0001,
46  SC_E133_RDM_INVALID_RESPONSE = 0x0002,
47  SC_E133_BUFFER_FULL = 0x0003,
48  SC_E133_UNKNOWN_UID = 0x0004,
49  SC_E133_NONEXISTANT_ENDPOINT = 0x0005,
50  SC_E133_WRONG_ENDPOINT = 0x0006,
51  SC_E133_ACK_OVERFLOW_CACHE_EXPIRED = 0x0007,
52  SC_E133_ACK_OVERFLOW_IN_PROGRESS = 0x0008,
53  SC_E133_BROADCAST_COMPLETE = 0x0009,
54 };
55 
56 // The max size of an E1.33 Status string.
57 enum {
58  MAX_E133_STATUS_STRING_SIZE = 64
59 };
60 } // namespace e133
61 } // namespace ola
62 #endif // INCLUDE_OLA_E133_E133ENUMS_H_