Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
Loading...
Searching...
No Matches
TestDisplay.idl
1/* SPDX-License-Identifier: BSD-3-Clause */
2/*
3 * Copyright 2012 Raritan Inc. All rights reserved.
4 */
5
6#ifndef __TEST_DISPLAY_IDL__
7#define __TEST_DISPLAY_IDL__
8
9/**
10 * Test Interfaces
11 */
12module test {
13
14 /** Type-independent display test interface */
15 interface Display {
16
17 /** Display orientation */
18 enumeration Orientation {
19 NORMAL, ///< Normal orientation
20 FLIPPED, ///< Upside-down
21 LEFT, ///< Left side down
22 RIGHT ///< Right side down
23 };
24
25 /** Collected display meta information */
26 structure Info {
27 string type; ///< Display type
28 string address; ///< Display address
29 map<string, string> options; ///< Display options
30 Orientation orientation; ///< Display orientation
31 };
32
33 /**
34 * Retrieve display's meta information.
35 *
36 * @return Display information
37 */
39
40 /**
41 * Execute a test sequence that is a bit more elaborate than
42 * just on and off all.
43 *
44 * @param cycleTime_ms Delay between state changes in ms
45 */
46 void testSequence(in int cycleTime_ms);
47
48 /** Status of interactive test */
49 enumeration TestStatus {
50 TEST_IDLE, ///< Test has not been started
51 TEST_BUSY, ///< Test is in progress
52 TEST_PASSED, ///< The test finished successfully
53 TEST_FAILED ///< The test failed
54 };
55
56 /**
57 * Start an interactive test on units which support it.
58 *
59 * @param showColorNames Show names along with each tested color
60 */
61 void enterTestMode(in boolean showColorNames);
62
63 /**
64 * Get the current status of the interactive test.
65 *
66 * @return Test status
67 */
69
70 };
71
72}
73
74#endif
Type-independent display test interface.
Definition: TestDisplay.idl:15
Orientation
Display orientation.
Definition: TestDisplay.idl:18
@ LEFT
Left side down.
Definition: TestDisplay.idl:21
@ NORMAL
Normal orientation.
Definition: TestDisplay.idl:19
@ FLIPPED
Upside-down.
Definition: TestDisplay.idl:20
TestStatus
Status of interactive test.
Definition: TestDisplay.idl:49
@ TEST_IDLE
Test has not been started.
Definition: TestDisplay.idl:50
@ TEST_PASSED
The test finished successfully.
Definition: TestDisplay.idl:52
@ TEST_BUSY
Test is in progress.
Definition: TestDisplay.idl:51
Info getInfo()
Retrieve display's meta information.
void testSequence(in int cycleTime_ms)
Execute a test sequence that is a bit more elaborate than just on and off all.
void enterTestMode(in boolean showColorNames)
Start an interactive test on units which support it.
TestStatus getTestStatus()
Get the current status of the interactive test.
Test Interfaces.
Definition: TestDisplay.idl:12
Collected display meta information.
Definition: TestDisplay.idl:26
string type
Display type.
Definition: TestDisplay.idl:27
Orientation orientation
Display orientation.
Definition: TestDisplay.idl:30
map< string, string > options
Display options.
Definition: TestDisplay.idl:29
string address
Display address.
Definition: TestDisplay.idl:28