UNPKG

aes70

Version:

A controller library for the AES70 protocol.

60 lines (54 loc) 1.96 kB
import { IOcaDelayUnit } from '../../types/OcaDelayUnit.js'; import { IOcaDelayValue, OcaDelayValue } from '../../types/OcaDelayValue.js'; import { Arguments } from '../arguments.js'; import { PropertyEvent } from '../property_event.js'; import { RemoteDevice } from '../remote_device.js'; import { OcaDelay } from './OcaDelay.js'; /** * Signal delay - extended version. Allows setting delay value in various units. * Note that the inherited property 04p01 DelayTime is also supported by this * class and reflects actual achieved delay in seconds. This class is * **deprecated** in AES70-2022. * @extends OcaDelay * @class OcaDelayExtended */ export declare class OcaDelayExtended extends OcaDelay { /** * This event is emitted whenever DelayValue changes. */ OnDelayValueChanged: PropertyEvent<OcaDelayValue>; constructor(objectNumber: number, device: RemoteDevice); /** * Gets the value and limits of the **DelayValue** property. * The return values of this method are * * - Value of type ``IOcaDelayValue`` * - minValue of type ``IOcaDelayValue`` * - maxValue of type ``IOcaDelayValue`` * * @method OcaDelayExtended#GetDelayValue * @returns {Promise<Arguments<OcaDelayValue,OcaDelayValue,OcaDelayValue>>} */ GetDelayValue(): Promise< Arguments<[OcaDelayValue, OcaDelayValue, OcaDelayValue]> >; /** * Sets the value of the **DelayValue** property. * * @method OcaDelayExtended#SetDelayValue * @param {IOcaDelayValue} Value * * @returns {Promise<void>} */ SetDelayValue(Value: IOcaDelayValue): Promise<void>; /** * Get current delay setting, converted to given units. * * @method OcaDelayExtended#GetDelayValueConverted * @param {IOcaDelayUnit} UoM * * @returns {Promise<OcaDelayValue>} * A promise which resolves to a single value of type :class:`OcaDelayValue`. */ GetDelayValueConverted(UoM: IOcaDelayUnit): Promise<OcaDelayValue>; }