/*WDF USB device GUID*/
0xc6b78dff, 0xb260, 0x4161, 0x84, 0xed, 0x9, 0xca, 0x26, 0x7f, 0x3e, 0x15);
/*device IO control codes for the WDF USB driver*/
#define IOCTL_INDEX 0x800
#define FILE_DEVICE_USB_FX2 0x65500
#define IOCTL_WDF_USB_GET_SWITCHSTATE CTL_CODE(FILE_DEVICE_USB_FX2, \
#define IOCTL_WDF_USB_SET_LIGHTBAR CTL_CODE(FILE_DEVICE_USB_FX2, \
IOCTL_INDEX + 1, \
#define IOCTL_WDF_USB_GET_LIGHTBAR CTL_CODE(FILE_DEVICE_USB_FX2, \
IOCTL_INDEX + 2, \
#define IOCTL_WDF_USB_GET_SWITCHSTATE_CHANGE CTL_CODE(FILE_DEVICE_USB_FX2,\
IOCTL_INDEX + 3, \
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a professional software developer with an interest in everything that is about making hardware work.
In the course of my work, I have programmed device drivers and services on Windows and linux.
I have written firmware for embedded devices in C and assembly language, and have designed and implemented real-time applications for testing of sattelite payload equipment.
Generally, finding out how to interface hardware with software is my hobby and job.