//internal TsxCcsUcCodec100AudioReservedSigs tsxCcsUcCodec100AudioReservedSigs_0; //internal TsxCcsUcCodec100EthernetReservedSigs tsxCcsUcCodec100EthernetReservedSigs_0; //internal TswFtSystemReservedSigs tswFtSystemReservedSigs_0; //internal Tswx52System3ReservedSigs tswx52System3ReservedSigs_0; //internal Tswx52VoipReservedSigs tswx52VoipReservedSigs_0; //internal Tswx52VoiceControlReservedSigs tswx52VoiceControlReservedSigs_0; //internal TsxScreenSaverReservedSigs tsxScreenSaverReservedSigs_0; //internal Tstx02ApplicationControlReservedSigs tstx02ApplicationControlReservedSigs_0; internal Class63(uint uint_0, CrestronControlSystem crestronControlSystem_0) : base(uint_0, "127.0.0.1", crestronControlSystem_0) { this.DeviceRegistrationFlags = 9u; base.InitializeParamBitFieldOne(1400594u); base.InitializeParamBitFieldTwo(131328u); base.InitializeParamBitFieldThree(66u); base.InitializeParamBitFieldFour(0u); base.LockDeviceTypes(); base.InitializeDeviceSymbolType(-12); base.InitializeParametersOfDeviceRegistrationForEthernetDevices(); base.DeviceRegistrationMethod = 6u; Class63.Class64 deviceToAdd = new Class63.Class64(crestronControlSystem_0, this); CrestronDevice.AddToDeviceCollection(this.Slots, 1u, deviceToAdd); base.InitializeDigitalInputJoins(16000); base.InitializeDigitalOutputJoins(16000); base.InitializeAnalogInputJoins(16000); base.InitializeAnalogOutputJoins(16000); base.InitializeSerialInputJoins(16000); base.InitializeSerialOutputJoins(16000); // this.tsxCcsUcCodec100AudioReservedSigs_0 = new TsxCcsUcCodec100AudioReservedSigs(this); //this.tsxCcsUcCodec100EthernetReservedSigs_0 = new TsxCcsUcCodec100EthernetReservedSigs(this); //this.tswFtSystemReservedSigs_0 = new TswFtSystemReservedSigs(this); //this.tswx52System3ReservedSigs_0 = new Tswx52System3ReservedSigs(this); //this.tswx52VoipReservedSigs_0 = new Tswx52VoipReservedSigs(this); //this.tswx52VoiceControlReservedSigs_0 = new Tswx52VoiceControlReservedSigs(this); //this.tsxScreenSaverReservedSigs_0 = new TsxScreenSaverReservedSigs(this); //this.tstx02ApplicationControlReservedSigs_0 = new Tstx02ApplicationControlReservedSigs(this); }
public void ShowConfirmSub(CrestronDevice device, string title, string msg) { CurrentConfirm = title; parent.SendSerial(device, SER_CONFIRM_TITLE, FormatText(CurrentConfirm, FONT_SIZE_INSTRUCT, GetColour(COLOUR_INSTRUCT))); parent.SendSerial(device, SER_CONFIRM_MSG, FormatText(msg, FONT_SIZE_INSTRUCT, GetColour(COLOUR_INSTRUCT))); parent.SendDigital(device, DIG_SUB_CONFIRM, true); }
internal Class64(CrestronControlSystem crestronControlSystem_0, CrestronDevice crestronDevice_0) : base(crestronDevice_0) { this.NotRegisterable = true; this.ID = 1u; base.InitializeParamBitFieldOne(1335040u); base.InitializeParamBitFieldTwo(196864u); base.InitializeParamBitFieldThree(81u); base.InitializeParamBitFieldFour(0u); base.InitializeDigitalOutputJoins(5); }
public void SetCurrentPage(CrestronDevice device, Dictionary <byte, string> l, string title, string msg) { SetTitle(device, title); CurrentList = l; parent.SendDigital(device, DIG_LIST_VISIBLE, true); parent.SendAnalogueSmartObject(device, SMART_LIST, SMART_IDX_SET_LIST_SIZE, (ushort)CurrentList.Count); // set list size SetInstruct(device, msg); foreach (var o in CurrentList) { parent.SendSerialSmartObject(device, SMART_LIST, o.Key, FormatText(o.Value, FONT_SIZE_LIST, GetColour(COLOUR_LIST))); } parent.PulseDigital(device, PAGE_MAIN, 20); }
public void DeviceSignIn(CrestronDevice device) { //parent.PulseDigital(device, PAGE_LOGIN, 20); //parent.SendDigital(device, DIG_SUB_PASSWORD, true); // ((BasicTriList)currentDevice.ui).BooleanInput[DIG_SUB_PASSWORD].BoolValue = true; // show password page /* * ((BasicTriList)currentDevice).UShortInput[1].UShortValue = 2; * int uiIndex = 0; * if (currentDevice == ui_01) uiIndex = 1; * else if (currentDevice == ui_02) uiIndex = 2; * else if (currentDevice == ui_03) uiIndex = 3; * ((BasicTriList)currentDevice).StringInput[1].StringValue = "room " + uiIndex.ToString(); */ }
public void StartCleaning(CrestronDevice device) { //parent.Debug("StartCleaning"); if (cleanCurrentMinutes < 1) { cleanCurrentMinutes = cleanTotalMinutes; parent.SendDigital(device, DIG_SUB_CONFIRM, false); parent.SendDigital(device, DIG_SUB_CLEAN_COUNT, true); parent.SendAnalogue(device, ANA_CLEAN_TIME, cleanCurrentMinutes); while (cleanCurrentMinutes > 0) { Thread.Sleep(1000); cleanCurrentMinutes--; parent.SendAnalogue(device, ANA_CLEAN_TIME, cleanCurrentMinutes); } parent.SendDigital(device, DIG_SUB_CLEAN_COUNT, false); } }
public void DigitalEventIn(CrestronDevice device, ushort idx, bool val) { if (val) // press { parent.Debug("DigitalEventIn press: " + idx); switch (idx) { case DIG_CLEANING: { ShowConfirmSub(device, "Cleaning", String.Format("Selecting start will enable the cleaning lights for {0} minutes", cleanTotalMinutes)); parent.SendDigital(device, DIG_SUB_PASSWORD, false); break; } case DIG_CONFIRM: { if (CurrentConfirm == "Cleaning") { StartCleaning(device); } else { //StartSystem(device); parent.SendDigital(device, DIG_SUB_CONFIRM, false); parent.SendDigital(device, DIG_SUB_BAR, true); parent.SendSerial(device, SER_CONFIRM_TITLE, "System Starting"); parent.SendAnalogue(device, ANA_BAR, 0x5FFF); parent.SendSerial(device, SER_CONFIRM_MSG, "Please wait. 2 Seconds remain"); Thread.Sleep(1000); parent.SendAnalogue(device, ANA_BAR, 0xAFFF); parent.SendSerial(device, SER_CONFIRM_MSG, "Please wait. 1 Seconds remain"); Thread.Sleep(1000); parent.SendDigital(device, DIG_SUB_BAR, false); SetCurrentPage(device, MenuModes, "Menu", "Select a menu option"); } break; } case DIG_CANCEL: { parent.SendDigital(device, DIG_SUB_CONFIRM, false); parent.SendDigital(device, DIG_SUB_PASSWORD, false); if (CurrentConfirm == "Cleaning") { parent.SendDigital(device, DIG_SUB_CLEAN_COUNT, false); } else { SetCurrentPage(device, OperatingModes, "Modes", "Select an operating mode"); } break; } case DIG_START: { parent.SendDigital(device, DIG_SUB_PASSWORD, true); passwordEntered = ""; parent.SendSerial(device, SER_KEYPAD, passwordEntered); break; } case DIG_FBS_RESET: { SetInstruct(device, "FBS Resetting"); Thread.Sleep(1000); parent.SendDigital(device, DIG_FBS_RESET_VISIBLE, false); SetCurrentPage(device, AdminModes, "Admin", "Select an admin function"); break; } case DIG_FBS_RESET_CANCEL: { parent.SendDigital(device, DIG_FBS_RESET_VISIBLE, false); SetCurrentPage(device, AdminModes, "Admin", "Select an admin function"); break; } } } }
public void DigitalSmartObjectEventIn(CrestronDevice device, byte smartId, ushort idx, bool val) { switch (smartId) { case SMART_KEYPAD: { if (val) // press { if (idx < 10) // numbers { passwordEntered = passwordEntered + idx.ToString(); parent.SendSerial(device, 1, passwordEntered); } else if (idx == 11) // del { passwordEntered = passwordEntered.Substring(0, passwordEntered.Length - 1); parent.SendSerial(device, SER_KEYPAD, passwordEntered); } else // enter { parent.SendSerial(device, SER_KEYPAD, passwordEntered == passwordCurrent ? "Right" : "Wrong"); //if (passwordEntered == passwordCurrent) if (true) { Thread.Sleep(500); passwordEntered = ""; parent.SendSerial(device, SER_KEYPAD, passwordEntered); parent.SendDigital(device, DIG_SUB_PASSWORD, false); SetCurrentPage(device, OperatingModes, "Modes", "Select an operating mode"); } } } break; } case SMART_TOPMENU: { if (val) // press { switch (idx) { case MENU_SEL_1: break; case MENU_SEL_ADMIN: { SetCurrentPage(device, AdminModes, "Admin", "Select an admin function"); break; } case MENU_SEL_LOGOUT: { parent.PulseDigital(device, PAGE_LOGIN, 20); parent.SendDigital(device, DIG_LIST_VISIBLE, false); break; } case MENU_SEL_SHUTDOWN: { parent.PulseDigital(device, PAGE_LOGIN, 20); break; } } } break; } //case SMART_LIST: // smart ser idx starts at \x0A default: { if (val) // press { switch (CurrentTitle) { case "AV": // (CurrentList == AvModes) { //SetTitle(device, CurrentList.Values.ElementAt(idx-11)); switch (idx) { case 11: // "Menu" { SetCurrentPage(device, MenuModes, CurrentList.Values.ElementAt(idx - 11), "Select a menu option"); break; } case 12: // "Bluray" { SetTitle(device, CurrentList.Values.ElementAt(idx - 11)); parent.SendDigital(device, DIG_LIST_VISIBLE, false); parent.SendDigital(device, DIG_SUB_BLURAY, true); SetInstruct(device, "Press any button to control the Bluray player"); break; } case 13: // "Presets" case 14: // "Routing" case 15: // "Matrix" { SetTitle(device, CurrentList.Values.ElementAt(idx - 11)); parent.SendDigital(device, DIG_LIST_VISIBLE, false); SetInstruct(device, "Under construction"); break; } } break; } case "Modes": // (CurrentList == OperatingModes) { //SetTitle(device, CurrentList.Values.ElementAt(idx-11)); switch (idx) { case 11: // "Rehearse" case 12: // "Present" case 13: // "Operate" { ShowConfirmSub(device, CurrentList.Values.ElementAt(idx - 11), "Please confirm to start the system"); //SetCurrentPage(device, OperatingModes, CurrentList.Values.ElementAt(idx-11), "Please confirm to start the system"); break; } } break; } case "Menu": { switch (idx) { case 11: // "Modes" { SetCurrentPage(device, OperatingModes, CurrentList.Values.ElementAt(idx - 11), "Select an operating mode"); break; } case 12: // "Admin" { SetCurrentPage(device, AdminModes, CurrentList.Values.ElementAt(idx - 11), "Select an admin function"); break; } case 13: // "CCTV" { SetCurrentPage(device, CctvModes, CurrentList.Values.ElementAt(idx - 11), "Select an CCTV function"); break; } case 14: // "AV" { SetCurrentPage(device, AvModes, CurrentList.Values.ElementAt(idx - 11), "Select an AV function"); break; } case 15: // "Inputs" case 16: // "Zones" case 17: // "Stage Management" case 18: // "Letern" case 19: // "Lighting" { SetTitle(device, CurrentList.Values.ElementAt(idx - 11)); parent.SendDigital(device, DIG_LIST_VISIBLE, false); SetInstruct(device, "Under construction"); break; } case 20: // "Foyer" { SetCurrentPage(device, FoyerModes, CurrentList.Values.ElementAt(idx - 11), "Select an function for the foyer"); break; } } break; } case "User PIN": { break; } case "Naming": { break; } case "Admin": // (CurrentList == AdminModes) { DoPageFlip(device, PAGE_MAIN); //SetTitle(device, CurrentList.Values.ElementAt(idx-11)); switch (idx) { case 11: // "Modes" { SetCurrentPage(device, OperatingModes, CurrentList.Values.ElementAt(idx - 11), "Select an operating mode"); break; } case 12: // "Menu" { SetCurrentPage(device, MenuModes, CurrentList.Values.ElementAt(idx - 11), "Select a menu option"); break; } case 13: // "PINS" { SetCurrentPage(device, PinModes, CurrentList.Values.ElementAt(idx - 11), "Select a user to edit"); break; } case 14: // "Naming" { SetCurrentPage(device, NamingModes, CurrentList.Values.ElementAt(idx - 11), "Select a category to edit"); break; } case 15: // "FBS Reset" { parent.SendDigital(device, DIG_LIST_VISIBLE, false); parent.SendDigital(device, DIG_FBS_RESET_VISIBLE, true); SetInstruct(device, "Please confirm"); break; } } } break; } } break; } } }
public void SetInstruct(CrestronDevice device, string s) { parent.SendSerial(device, SER_INSTRUCT, FormatText(s, FONT_SIZE_INSTRUCT, GetColour(COLOUR_INSTRUCT))); }
public void SetTitle(CrestronDevice device, string s) { parent.SendSerial(device, SER_TITLE, FormatText(s.ToUpper(), FONT_SIZE_TITLE, COLOUR_TITLE)); CurrentTitle = s; }
public void DoPageFlip(CrestronDevice device, ushort page) { parent.PulseDigital(device, page, 20); device.currentPage = page; }
internal TswVoipReservedSigs(CrestronDevice A_0) : base(A_0) { }