6#ifndef __PERIPHERAL_DEVICE_PACKAGE_IDL__
7#define __PERIPHERAL_DEVICE_PACKAGE_IDL__
9#include <PeripheralDeviceSlot.idl>
56 constant
int SUCCESS = 0;
57 constant
int ERR_NOT_SUPPORTED = 1;
58 constant
int ERR_OPERATION_FAILED = 2;
60 vector<string> getSupportedHandleTypes();
61 vector<string> getSupportedExternalDeviceTypes();
63 string getHandleType(in
int channel);
64 string getExternalDeviceType(in
int channel);
66 int setHandleType(in
int channel, in
string handleType);
67 int setExternalDeviceType(in
int channel, in
string type);
double getBatteryVoltage()
This method outputs the given voltage value or zero if no value is available.
Common base for all events.
Event: the voltage of this device changed.
double oldVoltage
old voltage
double newVoltage
new voltage
Event: A door was opened without unlocking the door handle.
PackageInfo packageInfo
package info
int channel
channel number (zero-based)
string doorLockName
name of the door lock actuator (if assigned)
string doorStateName
name of the door state sensor (if assigned)
string doorHandleName
name of the door handle sensor (if assigned)
Event: A handle was opened without being electronically unlocked.
string doorLockName
name of the door lock actuator (if assigned)
int channel
channel number (zero-based)
string doorStateName
name of the door state sensor (if assigned)
PackageInfo packageInfo
package info
string doorHandleName
name of the door handle sensor (if assigned)
int minorNumber
depreceated, was minor firmware version
int bootloaderVersion
device bootloader version
int majorNumber
firmware version encoded as 'major << 4 | minor'
time updateDate
Date of device firmware update (Deprecated: always returns 0)
Version version
Firmware version (0.0 if not applicable)
string firmwareName
firmware file name
time compileDate
Date of firmware compilation (Deprecated: always returns 0)
string serial
serial number
int minDowngradeVersion
minimum downgrade version (or -1)
string model
like 'DPX-CC2' or 'DX-D2C6'
string revision
hardware revision
string packageClass
serial number prefix for current packages
string address
ROM code for 1-wire devices.
Peripheral device package information.
@ FW_UPDATE
Device package's firmware is being updated.
@ INTERNAL_ERROR
Device package's internal error flag is set.
@ NORMAL
Device package is in normal operation.
vector< PosElement > position
Position within 1-wire topo.
HardwareInfo hwInfo
Device package hardware specific information.
FirmwareInfo fwInfo
Device package firmware specific information.
State state
The peripheral device package operational state.