UsbDs3.cs - using System using System.ComponentModel using System.Threading namespace ScpControl public partial class UsbDs3 UsbDevice public static

UsbDs3.cs - using System using System.ComponentModel using...

This preview shows page 1 - 2 out of 4 pages.

using System;using System.ComponentModel;using System.Threading;namespace ScpControl {public partial class UsbDs3 : UsbDevice {public static String USB_CLASS_GUID = "{E2824A09-DBAA-4407-85CA-C8E8FF5F6FFA}";protected Byte[] m_Leds = { 0x02, 0x04, 0x08, 0x10 };protected Byte[] m_Enable = { 0x42, 0x0C, 0x00, 0x00 };protected Byte[] m_Report = {0x00, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,0xFF, 0x27, 0x10, 0x00, 0x32,0xFF, 0x27, 0x10, 0x00, 0x32,0xFF, 0x27, 0x10, 0x00, 0x32,0xFF, 0x27, 0x10, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,};public override DsPadId PadId {get { return (DsPadId) m_ControllerId; }set {m_ControllerId = (Byte) value;m_ReportArgs.Pad = PadId;m_Report[9] = m_Leds[m_ControllerId];}}public UsbDs3() : base(USB_CLASS_GUID) {InitializeComponent();}public UsbDs3(IContainer container) : base(USB_CLASS_GUID) {container.Add(this);InitializeComponent();}public override Boolean Open(String DevicePath) {if (base.Open(DevicePath)){m_State = DsState.Reserved;GetDeviceInstance(ref m_Instance);Int32 Transfered = 0;if (SendTransfer(0xA1, 0x01, 0x03F5, m_Buffer, ref Transfered)){
Background image
Image of page 2

You've reached the end of your free preview.

Want to read all 4 pages?

  • Fall '15
  • NormanBest

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors