Loading...
Searching...
No Matches
SensorHub.idl
/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright 2020 Raritan Inc. All rights reserved.
*/
#ifndef __PERIPHERAL_SENSORHUB_IDL__
#define __PERIPHERAL_SENSORHUB_IDL__
#include <UserEvent.idl>
#include <PortFuse.idl>
#include <PeripheralDevicePackage.idl>
#include <PeripheralDeviceSlot.idl>
/**
* Peripheral Devices
*/
module peripheral {
/** Sensor Hub interface */
interface SensorHub {
/** peripheral device hw configuration */
enumeration UpstreamType {
BUILTIN, ///< a built in hardware
ENV_HUB, ///< a not galvanically isolated environmental hub with reduced fuse capability
REMOTE_HUB ///< a galvanically isolated remote hub with full fuse capability
};
/**
* Information for a single hub Port
*/
structure HubPortInfo {
string hubPort; ///< Sensor hub port a peripheral device is connected to
portsmodel.PortFuse fuse; ///< Reference to the port fuse
};
/**
* Static (type, version) information for a %SensorHub.
*/
structure DeviceInfo {
string serial; ///< Serial number of device
string model; ///< Model name of device
UpstreamType upstreamType; ///< Hardware type (indicated a certain upstream type)
PosElement position; ///< Peripheral device position element, list forms position
int protocolVersion; ///< Protocol version the hub is supporting
int bootVersion; ///< Bootcode software version
int appVersion; ///< Application code software version
vector<HubPortInfo> hubPortInfos; ///< Information about contained hub ports
};
/**
* Get static (hardware and firmware) information
*
* @return Result: hardware and firmware information
*/
DeviceInfo getDeviceInfo();
/**
* Retrieve hub package information
*
* @return package information
*/
PackageInfo getPackageInfo();
};
}
#endif /* __PERIPHERAL_SENSORHUB_IDL__ */
peripheral::SensorHub
Sensor Hub interface.
Definition SensorHub.idl:20
peripheral::SensorHub::UpstreamType
UpstreamType
peripheral device hw configuration
Definition SensorHub.idl:23
peripheral::SensorHub::ENV_HUB
@ ENV_HUB
a not galvanically isolated environmental hub with reduced fuse capability
Definition SensorHub.idl:25
peripheral::SensorHub::BUILTIN
@ BUILTIN
a built in hardware
Definition SensorHub.idl:24
peripheral::SensorHub::getPackageInfo
PackageInfo getPackageInfo()
Retrieve hub package information.
peripheral::SensorHub::getDeviceInfo
DeviceInfo getDeviceInfo()
Get static (hardware and firmware) information.
portsmodel::PortFuse
Interface describing a controllable fuse for a device port.
Definition PortFuse.idl:17
peripheral
Peripheral Devices.
Definition GatewaySensorManager.idl:17
portsmodel
Ports.
Definition Port.idl:16
peripheral::PackageInfo
Peripheral device package information.
Definition PeripheralDevicePackage.idl:14
peripheral::PosElement
peripheral device position element, list forms position
Definition PosElement.idl:31
peripheral::SensorHub::DeviceInfo
Static (type, version) information for a SensorHub.
Definition SensorHub.idl:40
peripheral::SensorHub::DeviceInfo::bootVersion
int bootVersion
Bootcode software version.
Definition SensorHub.idl:46
peripheral::SensorHub::DeviceInfo::serial
string serial
Serial number of device.
Definition SensorHub.idl:41
peripheral::SensorHub::DeviceInfo::upstreamType
UpstreamType upstreamType
Hardware type (indicated a certain upstream type)
Definition SensorHub.idl:43
peripheral::SensorHub::DeviceInfo::protocolVersion
int protocolVersion
Protocol version the hub is supporting.
Definition SensorHub.idl:45
peripheral::SensorHub::DeviceInfo::position
PosElement position
Peripheral device position element, list forms position.
Definition SensorHub.idl:44
peripheral::SensorHub::DeviceInfo::hubPortInfos
vector< HubPortInfo > hubPortInfos
Information about contained hub ports.
Definition SensorHub.idl:48
peripheral::SensorHub::DeviceInfo::model
string model
Model name of device.
Definition SensorHub.idl:42
peripheral::SensorHub::DeviceInfo::appVersion
int appVersion
Application code software version.
Definition SensorHub.idl:47
peripheral::SensorHub::HubPortInfo
Information for a single hub Port.
Definition SensorHub.idl:32
peripheral::SensorHub::HubPortInfo::hubPort
string hubPort
Sensor hub port a peripheral device is connected to.
Definition SensorHub.idl:33
peripheral::SensorHub::HubPortInfo::fuse
portsmodel::PortFuse fuse
Reference to the port fuse.
Definition SensorHub.idl:34