UNPKG

aes70

Version:

A controller library for the AES70 protocol.

50 lines (47 loc) 1.26 kB
import { OcaFloat32 } from '../../OCP1/OcaFloat32.js'; import { make_control_class } from '../make_control_class.js'; import { OcaActuator } from './OcaActuator.js'; /** * Signal delay - basic version. * @extends OcaActuator * @class OcaDelay */ export const OcaDelay = make_control_class( 'OcaDelay', 4, '\u0001\u0001\u0001\u0007', 3, OcaActuator, [ ['GetDelayTime', 4, 1, [], [OcaFloat32, OcaFloat32, OcaFloat32]], ['SetDelayTime', 4, 2, [OcaFloat32], []], ], [['DelayTime', [OcaFloat32], 4, 1, false, false, null]], [] ); /** * Gets the value and limits of the **DelayTime** property. * The return values of this method are * * - Time of type ``number`` * - minTime of type ``number`` * - maxTime of type ``number`` * * @method OcaDelay#GetDelayTime * @returns {Promise<Arguments<number,number,number>>} */ /** * Sets the value of the **DelayTime** property. * * @method OcaDelay#SetDelayTime * @param {number} delayTime * * @returns {Promise<void>} */ /** * This event is emitted when the property ``DelayTime`` changes in the remote object. * The property ``DelayTime`` is described in the AES70 standard as follows. * Delay in seconds. * * @member {PropertyEvent<number>} OcaDelay#OnDelayTimeChanged */