UNPKG

@joergmittaglawo/dmvconfig

Version:

DMV Configuration scripts for Lawo V__matrix Distributed Multiviewers.

283 lines (282 loc) 10.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.All = exports.LanesAsArrayRow = exports.Lanes = exports.GeneratorSlotAudioAsTableRow = exports.GeneratorSlotAudio = exports.GeneratorSlotReTransmitterAsTableRow = exports.GeneratorSlotReTransmitter = exports.GeneratorSlotMultiTransmitterAsTableRow = exports.GeneratorSlotMultiTransmitter = exports.GeneratorSlotVideoAsTableRow = exports.GeneratorSlotVideo = exports.HWStatusRam = exports.HWStatusPort = exports.HWStatus = exports.lower = exports.lift = void 0; const VScript = require("vscript"); const _AudioTransmitter = require("./AudioTransmitter"); const _MipmapTransmitter = require("./MipmapTransmitter"); const _VideoTransmitter = require("./VideoTransmitter"); exports.lift = { Lanes: (kwl, socket) => kwl ? (new Lanes(new VScript.Subtree(socket, kwl))) : null, GeneratorSlotAudio: (kwl, socket) => kwl ? (new GeneratorSlotAudio(new VScript.Subtree(socket, kwl))) : null, GeneratorSlotReTransmitter: (kwl, socket) => kwl ? (new GeneratorSlotReTransmitter(new VScript.Subtree(socket, kwl))) : null, GeneratorSlotMultiTransmitter: (kwl, socket) => kwl ? (new GeneratorSlotMultiTransmitter(new VScript.Subtree(socket, kwl))) : null, GeneratorSlotVideo: (kwl, socket) => kwl ? (new GeneratorSlotVideo(new VScript.Subtree(socket, kwl))) : null, HWStatusRam: (kwl, socket) => kwl ? (new HWStatusRam(new VScript.Subtree(socket, kwl))) : null, HWStatusPort: (kwl, socket) => kwl ? (new HWStatusPort(new VScript.Subtree(socket, kwl))) : null, HWStatus: (kwl, socket) => kwl ? (new HWStatus(new VScript.Subtree(socket, kwl))) : null }; exports.lower = { Lanes: (ref) => ref ? ref.raw.kwl : null, GeneratorSlotAudio: (ref) => ref ? ref.raw.kwl : null, GeneratorSlotReTransmitter: (ref) => ref ? ref.raw.kwl : null, GeneratorSlotMultiTransmitter: (ref) => ref ? ref.raw.kwl : null, GeneratorSlotVideo: (ref) => ref ? ref.raw.kwl : null, HWStatusRam: (ref) => ref ? ref.raw.kwl : null, HWStatusPort: (ref) => ref ? ref.raw.kwl : null, HWStatus: (ref) => ref ? ref.raw.kwl : null }; class HWStatus { constructor(raw) { this.raw = raw; } /** Highest FIFO level. Cleaned up by pushing the Clear Button */ get max_usedw() { return new VScript.rKeyword(this, "max_usedw"); } /** Highest FIFO level since last read. */ get max_usedw_last_read() { return new VScript.rKeyword(this, "max_usedw_last_read"); } /** accumulates the occurrence of the overflow event. Cleaned up by pushing the Clear Button */ get overflow() { return new VScript.rKeyword(this, "overflow"); } get error_irq_counter() { return new VScript.rKeyword(this, "error_irq_counter"); } /** Clear the statistics */ get clear_statistic() { return new VScript.wKeyword(this, "clear_statistic"); } /** reset error counter */ get reset_irq_counter() { return new VScript.wKeyword(this, "reset_irq_counter"); } } exports.HWStatus = HWStatus; class HWStatusPort { constructor(raw) { this.raw = raw; } /** Highest FIFO level. Cleaned up by pushing the Clear Button */ get max_usedw() { return new VScript.rKeyword(this, "max_usedw"); } /** Highest FIFO level since last read. */ get max_usedw_last_read() { return new VScript.rKeyword(this, "max_usedw_last_read"); } /** accumulates the occurrence of the overflow event. Cleaned up by pushing the Clear Button */ get overflow() { return new VScript.rKeyword(this, "overflow"); } /** Clear the statistics */ get clear_statistic() { return new VScript.wKeyword(this, "clear_statistic"); } } exports.HWStatusPort = HWStatusPort; class HWStatusRam { constructor(raw) { this.raw = raw; } /** accumulates the occurrence of the overflow event. Cleaned up by pushing the Clear Button */ get data_ram_overflow() { return new VScript.rKeyword(this, "data_ram_overflow"); } /** accumulates the occurrence of the full event. Cleaned up by pushing the Clear Button */ get packet_queue_full() { return new VScript.rKeyword(this, "packet_queue_full"); } /** Clear the statistics */ get clear_statistic() { return new VScript.wKeyword(this, "clear_statistic"); } } exports.HWStatusRam = HWStatusRam; class GeneratorSlotVideo { constructor(raw) { this.raw = raw; } get transmitter() { return new VScript.rKeyword(this, "transmitter", { lift: _VideoTransmitter.lift.SingleVideoTransmitter, lower: _VideoTransmitter.lower.SingleVideoTransmitter }); } get trans_idx() { return new VScript.rKeyword(this, "trans_idx"); } get used_bandwidth() { return new VScript.rKeyword(this, "used_bandwidth"); } get related_to_meta() { return new VScript.rKeyword(this, "related_to_meta"); } get is_meta() { return new VScript.rKeyword(this, "is_meta"); } get router_hw_status() { return new HWStatus(this.raw.find("router_hw_status")); } get router_hw_status_out() { return new HWStatusPort(this.raw.find("router_hw_status_out")); } get hw_status() { return new HWStatusRam(this.raw.find("hw_status")); } } exports.GeneratorSlotVideo = GeneratorSlotVideo; class GeneratorSlotVideoAsTableRow extends GeneratorSlotVideo { constructor(raw_row, enclosing_table) { super(new VScript.Subtree(raw_row.socket, raw_row.kwl)); this.enclosing_table = enclosing_table; this.index = raw_row.index; } } exports.GeneratorSlotVideoAsTableRow = GeneratorSlotVideoAsTableRow; class GeneratorSlotMultiTransmitter { constructor(raw) { this.raw = raw; } get trans_idx() { return new VScript.rKeyword(this, "trans_idx"); } get transmitter() { return new VScript.rKeyword(this, "transmitter", { lift: _MipmapTransmitter.lift.SingleMipMap, lower: _MipmapTransmitter.lower.SingleMipMap }); } get used_bandwidth() { return new VScript.rKeyword(this, "used_bandwidth"); } get router_hw_status() { return new HWStatus(this.raw.find("router_hw_status")); } get router_hw_status_out() { return new HWStatusPort(this.raw.find("router_hw_status_out")); } get hw_status() { return new HWStatusRam(this.raw.find("hw_status")); } } exports.GeneratorSlotMultiTransmitter = GeneratorSlotMultiTransmitter; class GeneratorSlotMultiTransmitterAsTableRow extends GeneratorSlotMultiTransmitter { constructor(raw_row, enclosing_table) { super(new VScript.Subtree(raw_row.socket, raw_row.kwl)); this.enclosing_table = enclosing_table; this.index = raw_row.index; } } exports.GeneratorSlotMultiTransmitterAsTableRow = GeneratorSlotMultiTransmitterAsTableRow; class GeneratorSlotReTransmitter { constructor(raw) { this.raw = raw; } get trans_idx() { return new VScript.rKeyword(this, "trans_idx"); } /** used for the meta data */ get use_meta() { return new VScript.rKeyword(this, "use_meta"); } get hw_status() { return new HWStatusRam(this.raw.find("hw_status")); } } exports.GeneratorSlotReTransmitter = GeneratorSlotReTransmitter; class GeneratorSlotReTransmitterAsTableRow extends GeneratorSlotReTransmitter { constructor(raw_row, enclosing_table) { super(new VScript.Subtree(raw_row.socket, raw_row.kwl)); this.enclosing_table = enclosing_table; this.index = raw_row.index; } } exports.GeneratorSlotReTransmitterAsTableRow = GeneratorSlotReTransmitterAsTableRow; class GeneratorSlotAudio { constructor(raw) { this.raw = raw; } get transmitter() { return new VScript.rKeyword(this, "transmitter", { lift: _AudioTransmitter.lift.SingleAudio, lower: _AudioTransmitter.lower.SingleAudio }); } get used_bandwidth() { return new VScript.rKeyword(this, "used_bandwidth"); } get trans_idx() { return new VScript.rKeyword(this, "trans_idx"); } get hw_status() { return new HWStatusRam(this.raw.find("hw_status")); } } exports.GeneratorSlotAudio = GeneratorSlotAudio; class GeneratorSlotAudioAsTableRow extends GeneratorSlotAudio { constructor(raw_row, enclosing_table) { super(new VScript.Subtree(raw_row.socket, raw_row.kwl)); this.enclosing_table = enclosing_table; this.index = raw_row.index; } } exports.GeneratorSlotAudioAsTableRow = GeneratorSlotAudioAsTableRow; class Lanes { constructor(raw) { this.raw = raw; } get assignment() { return new VScript.wKeyword(this, "assignment"); } get tdm_output_bandwidth() { return new VScript.rKeyword(this, "tdm_output_bandwidth"); } get output_bandwidth() { return new VScript.rKeyword(this, "output_bandwidth"); } get generator_audio() { return new VScript.StronglyTypedTable(new VScript.Table(this.raw.socket, this.raw.full_kwl("generator_audio")), (row, enclosing_table) => new GeneratorSlotAudioAsTableRow(row, enclosing_table)); } get generator_video() { return new VScript.StronglyTypedTable(new VScript.Table(this.raw.socket, this.raw.full_kwl("generator_video")), (row, enclosing_table) => new GeneratorSlotVideoAsTableRow(row, enclosing_table)); } get generator_re_transmitter() { return new VScript.StronglyTypedTable(new VScript.Table(this.raw.socket, this.raw.full_kwl("generator_re_transmitter")), (row, enclosing_table) => new GeneratorSlotReTransmitterAsTableRow(row, enclosing_table)); } get generator_mult_transmitter() { return new VScript.StronglyTypedTable(new VScript.Table(this.raw.socket, this.raw.full_kwl("generator_mult_transmitter")), (row, enclosing_table) => new GeneratorSlotMultiTransmitterAsTableRow(row, enclosing_table)); } } exports.Lanes = Lanes; class LanesAsArrayRow extends Lanes { constructor(st, index, parent) { super(st); this.index = index; this.parent = parent; } } exports.LanesAsArrayRow = LanesAsArrayRow; class All { constructor(raw) { this.raw = raw; } get lanes() { return new VScript.StronglyTypedArray(this, "lanes", (st, index, parent) => new LanesAsArrayRow(st, index, parent)); } } exports.All = All;