Interface that provides the methods that may be used to interact with a FrontPanel device.

interface IFrontPanel {
    activateTriggerIn(address, bit): Promise<void>;
    getTriggerOutVector(address): Promise<number>;
    getWireInValue(address): Promise<number>;
    getWireOutValue(address): Promise<number>;
    isTriggered(address, mask): Promise<boolean>;
    readFromPipeOut(address, length): Promise<ArrayBuffer>;
    readRegister(address): Promise<number>;
    setWireInValue(address, value, mask): Promise<void>;
    updateTriggerOuts(): Promise<void>;
    updateWireIns(): Promise<void>;
    updateWireOuts(): Promise<void>;
    writeRegister(address, value): Promise<void>;
    writeToPipeIn(address, length, writeData): Promise<void>;
}

Implemented by

Methods

  • Activates the TriggerIn at the specified address and bit.

    Parameters

    • address: number

      The address of the TriggerIn vector endpoint.

    • bit: number

      The bit of the TriggerIn vector to activate.

    Returns Promise<void>

    • A promise that resolves when the TriggerIn has been activated.
  • Gets the TriggerOut vector at the specified address.

    Parameters

    • address: number

      The address of the TriggerOut vector endpoint.

    Returns Promise<number>

    • A promise that resolves to the TriggerOut vector.
  • Gets the value of a WireIn at the specified address.

    Parameters

    • address: number

      The address of the WireIn endpoint.

    Returns Promise<number>

    • A promise that resolves to the value of the WireIn.
  • Gets the value of the WireOut at the specified address.

    Parameters

    • address: number

      The address of the WireOut endpoint.

    Returns Promise<number>

    • A promise that resolves to the value of the WireOut.
  • Checks if the TriggerOut at the specified address and mask is active.

    Parameters

    • address: number

      The address of the TriggerOut vector endpoint.

    • mask: number

      The mask to apply to the TriggerOut vector.

    Returns Promise<boolean>

    • A promise that resolves to true if the TriggerOut is active, or false otherwise.
  • Reads data from the PipeOut at the specified address.

    Parameters

    • address: number

      The address of the PipeOut endpoint.

    • length: number

      The length of the data to read in bytes.

    Returns Promise<ArrayBuffer>

    • A promise that resolves to the read data.
  • Reads the value of the Register at the specified address.

    Parameters

    • address: number

      The address of the Register.

    Returns Promise<number>

    • A promise that resolves to the value of the Register.
  • Sets the value of the WireIn at the specified address.

    Parameters

    • address: number

      The address of the WireIn endpoint.

    • value: number

      The value to set.

    • mask: number

      The mask to apply to the value.

    Returns Promise<void>

    • A promise that resolves when the value of the WireIn has been set.
  • Retrieves the current TriggerOut vectors from the FPGA.

    Returns Promise<void>

    • A promise that resolves when all TriggerOuts have been updated.
  • Transfers current WireIn values to the FPGA.

    Returns Promise<void>

    • A promise that resolves when all WireIns have been transfered.
  • Retrieves current WireOut values from the FPGA.

    Returns Promise<void>

    • A promise that resolves when all WireOuts have been updated.
  • Writes a value to the Register at the specified address.

    Parameters

    • address: number

      The address of the Register.

    • value: number

      The value to write.

    Returns Promise<void>

    • A promise that resolves when the value has been written.
  • Writes data to the PipIn at the specified address.

    Parameters

    • address: number

      The address of the PipeIn endpoint.

    • length: number

      The length of the data to write in bytes.

    • writeData: WriteDataCallback

      The callback function that will be called to write the data.

    Returns Promise<void>

    • A promise that resolves when the data has been written.

Generated using TypeDoc