Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
Loading...
Searching...
No Matches
DsamManager.idl
1/* SPDX-License-Identifier: BSD-3-Clause */
2/*
3 * Copyright 2022 Raritan Inc. All rights reserved.
4 */
5
6#ifndef __DSAMMANAGER_IDL__
7#define __DSAMMANAGER_IDL__
8
9#include <DsamDevice.idl>
10#include <UserEvent.idl>
11
12module dsam {
13
14 /** DSAM manager interface */
15 interface DsamManager {
16
17 /** Event that is send when a DSAM module has been attached */
18 valueobject DsamAttachedEvent extends idl.Event {
19 DsamDevice.Info info; ///< DSAM info
20 DsamDevice device; ///< DSAM device
21 };
22
23 /** Event that is send when a DSAM module has been removed */
24 valueobject DsamDetachedEvent extends idl.Event {
25 DsamDevice.Info info; ///< DSAM info
26 };
27
28 /** Event that is send when a DSAM controller has been reset or recovery is in progress */
29 valueobject DsamControllerChangedEvent extends idl.Event {
30 int dsamNumber; ///< DSAM number (1-based)
31 boolean reset; ///< \c true if controller was reset; \c false if recovery started
32 string resetReason; ///< reset reason (only set when reset is \c true)
33 };
34
35 /**
36 * Retrieve the current DSAM devices.
37 *
38 * @return Map with DSAM devices. Index is the DSAM number (1-based).
39 */
40 map<int, DsamDevice> getDsamDevices();
41
42 /**
43 * Get the version of the firmware file provided with the device that will be installed on the DSAM
44 * either by explicit request or when the DSAM needs to be recovered.
45 *
46 * @return Firmware version
47 */
49 };
50
51}
52
53#endif // __DSAMMANAGER_IDL__
DSAM device interface.
DSAM manager interface.
DsamDevice::FirmwareVersion getFirmwareUpdateFileVersion()
Get the version of the firmware file provided with the device that will be installed on the DSAM eith...
map< int, DsamDevice > getDsamDevices()
Retrieve the current DSAM devices.
Basic IDL definitions.
Definition Event.idl:10
DSAm device info.
Event that is send when a DSAM module has been attached.
DsamDevice::Info info
DSAM info.
Event that is send when a DSAM controller has been reset or recovery is in progress.
string resetReason
reset reason (only set when reset is true)
boolean reset
true if controller was reset; false if recovery started
Event that is send when a DSAM module has been removed.
DsamDevice::Info info
DSAM info.
Common base for all events.
Definition Event.idl:13