onering.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*++
  2. Copyright (c) 2014 Minoca Corp.
  3. This file is licensed under the terms of the GNU General Public License
  4. version 3. Alternative licensing terms are available. Contact
  5. info@minocacorp.com for details. See the LICENSE file at the root of this
  6. project for complete licensing information.
  7. Module Name:
  8. onering.h
  9. Abstract:
  10. This header contains definitions for the USBLED and USB Relay devices.
  11. Author:
  12. Evan Green 16-Jul-2014
  13. --*/
  14. //
  15. // ------------------------------------------------------------------- Includes
  16. //
  17. //
  18. // ---------------------------------------------------------------- Definitions
  19. //
  20. #define ONE_RING_USB_RELAY_DEVICE_INFORMATION_UUID \
  21. {{0x992C1CE4, 0x66224B40, 0xA19BF473, 0xAF9EA3C8}}
  22. #define ONE_RING_USB_LED_DEVICE_INFORMATION_UUID \
  23. {{0x992C1CE4, 0x66224B40, 0xA19BF473, 0xAF9EA3C9}}
  24. #define ONE_RING_USB_LED_MINI_DEVICE_INFORMATION_UUID \
  25. {{0x992C1CE4, 0x66224B40, 0xA19BF473, 0xAF9EA3CA}}
  26. //
  27. // Define the length of the serial number.
  28. //
  29. #define ONE_RING_SERIAL_NUMBER_LENGTH 64
  30. //
  31. // ------------------------------------------------------ Data Type Definitions
  32. //
  33. typedef enum _ONE_RING_DEVICE_TYPE {
  34. OneRingDeviceInvalid,
  35. OneRingDeviceUsbLed,
  36. OneRingDeviceUsbLedMini,
  37. OneRingDeviceUsbRelay
  38. } ONE_RING_DEVICE_TYPE, *PONE_RING_DEVICE_TYPE;
  39. /*++
  40. Structure Description:
  41. This structure stores the device information published by the device.
  42. Members:
  43. DeviceType - Stores the device type.
  44. SerialNumber - Stores the device serial number.
  45. --*/
  46. typedef struct _ONE_RING_DEVICE_INFORMATION {
  47. ONE_RING_DEVICE_TYPE DeviceType;
  48. CHAR SerialNumber[ONE_RING_SERIAL_NUMBER_LENGTH];
  49. } ONE_RING_DEVICE_INFORMATION, *PONE_RING_DEVICE_INFORMATION;
  50. //
  51. // -------------------------------------------------------------------- Globals
  52. //
  53. //
  54. // -------------------------------------------------------- Function Prototypes
  55. //