aes70
Version:
A controller library for the AES70 protocol.
41 lines (36 loc) • 1.09 kB
TypeScript
import {
IOcaPolarityState,
OcaPolarityState,
} from '../../types/OcaPolarityState.js';
import { PropertyEvent } from '../property_event.js';
import { RemoteDevice } from '../remote_device.js';
import { OcaActuator } from './OcaActuator.js';
/**
* Signal inverter
* @extends OcaActuator
* @class OcaPolarity
*/
export declare class OcaPolarity extends OcaActuator {
/**
* This event is emitted whenever State changes.
*/
OnStateChanged: PropertyEvent<OcaPolarityState>;
constructor(objectNumber: number, device: RemoteDevice);
/**
* Gets the inversion state (i.e. value of the **State** property.
*
* @method OcaPolarity#GetState
* @returns {Promise<OcaPolarityState>}
* A promise which resolves to a single value of type :class:`OcaPolarityState`.
*/
GetState(): Promise<OcaPolarityState>;
/**
* Sets the inversion state (i.e. value of the **State** property).
*
* @method OcaPolarity#SetState
* @param {IOcaPolarityState} state
*
* @returns {Promise<void>}
*/
SetState(state: IOcaPolarityState): Promise<void>;
}