SirenOfShame.Lib.Device.SirenOfShameDevice.SendControlPacket C# (CSharp) Method

SendControlPacket() private method

private SendControlPacket ( ControlByte1Flags controlByte = ControlByte1Flags.Ignore, byte audioMode = (byte)0xff, UInt16 audioDuration = (UInt16)0xffff, byte ledMode = (byte)0xff, UInt16 ledDuration = (UInt16)0xffff, byte readAudioIndex = (byte)0xff, byte readLedIndex = (byte)0xff, byte manualLeds0 = (byte)0xff, byte manualLeds1 = (byte)0xff, byte manualLeds2 = (byte)0xff, byte manualLeds3 = (byte)0xff, byte manualLeds4 = (byte)0xff ) : void
controlByte ControlByte1Flags
audioMode byte
audioDuration UInt16
ledMode byte
ledDuration UInt16
readAudioIndex byte
readLedIndex byte
manualLeds0 byte
manualLeds1 byte
manualLeds2 byte
manualLeds3 byte
manualLeds4 byte
return void
        private void SendControlPacket(
            ControlByte1Flags controlByte = ControlByte1Flags.Ignore,
            byte audioMode = (byte)0xff, UInt16 audioDuration = (UInt16) 0xffff,
            byte ledMode = (byte)0xff, UInt16 ledDuration = (UInt16)0xffff,
            byte readAudioIndex = (byte)0xff,
            byte readLedIndex = (byte)0xff,
            byte manualLeds0 = (byte)0xff,
            byte manualLeds1 = (byte)0xff,
            byte manualLeds2 = (byte)0xff,
            byte manualLeds3 = (byte)0xff,
            byte manualLeds4 = (byte)0xff)
        {
            UsbControlPacket usbControlPacket = new UsbControlPacket
            {
                ReportId = ReportId_Out_ControlPacket,
                ControlByte1 = controlByte,
                AudioMode = audioMode,
                AudioDuration = audioDuration,
                LedMode = ledMode,
                LedDuration = ledDuration,
                ReadAudioIndex = readAudioIndex,
                ReadLedIndex = readLedIndex,
                ManualLeds0 = manualLeds0,
                ManualLeds1 = manualLeds1,
                ManualLeds2 = manualLeds2,
                ManualLeds3 = manualLeds3,
                ManualLeds4 = manualLeds4
            };
            _deviceInterfaceFile.SetOutputReport(usbControlPacket, PacketSize);
        }