aes70
Version:
A controller library for the AES70 protocol.
52 lines (49 loc) • 1.48 kB
JavaScript
import { OcaFloat32 } from '../../OCP1/OcaFloat32.js';
import { make_control_class } from '../make_control_class.js';
import { OcaActuator } from './OcaActuator.js';
/**
* Simple frequency actuator.
* @extends OcaActuator
* @class OcaFrequencyActuator
*/
export const OcaFrequencyActuator = make_control_class(
'OcaFrequencyActuator',
4,
'\u0001\u0001\u0001\b',
2,
OcaActuator,
[
['GetFrequency', 4, 1, [], [OcaFloat32, OcaFloat32, OcaFloat32]],
['SetFrequency', 4, 2, [OcaFloat32], []],
],
[['Frequency', [OcaFloat32], 4, 1, false, false, null]],
[]
);
/**
* Gets the value of the Frequency property. The return value indicates whether
* the property was successfully retrieved.
* The return values of this method are
*
* - Frequency of type ``number``
* - minFrequency of type ``number``
* - maxFrequency of type ``number``
*
* @method OcaFrequencyActuator#GetFrequency
* @returns {Promise<Arguments<number,number,number>>}
*/
/**
* Sets the value of the Frequency property. The return value indicates whether
* the property was successfully set.
*
* @method OcaFrequencyActuator#SetFrequency
* @param {number} Frequency
*
* @returns {Promise<void>}
*/
/**
* This event is emitted when the property ``Frequency`` changes in the remote object.
* The property ``Frequency`` is described in the AES70 standard as follows.
* Frequency in Hertz.
*
* @member {PropertyEvent<number>} OcaFrequencyActuator#OnFrequencyChanged
*/