Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.3 KiB

  1. //----------- Packet Info structure -------------
  2. typedef struct _PACKETINFO
  3. {
  4. DWORD iMode; // Interface mode. (see below defs)
  5. DWORD port; // game port.
  6. DWORD Flags; // acquistion flags.
  7. DWORD nPackets; // number of packets
  8. DWORD TimeStamp; // last valid acquisition time stamp
  9. DWORD nClocksSampled; // number of clocks sampled.
  10. DWORD nB4Transitions; // number of B4 line transitions (std mode only).
  11. DWORD StartTimeout; // Start timeout period (in samples).
  12. DWORD HighLowTimeout; // Clock High to Low timeout period (in samples).
  13. DWORD LowHighTimeout; // Clock Low to High timeout period (in samples).
  14. DWORD InterruptDelay; // Delay between INTXA interrupts.
  15. DWORD nFailures; // Number of Packet Failures.
  16. DWORD nAttempts; // Number of Packet Attempts.
  17. DWORD nBufSize; // size of Raw data buffer.
  18. DWORD *pData; // pointer to Raw data (DWORD aligned).
  19. } PACKETINFO, *PPACKETINFO;
  20. //--------- Interface MODES ---------------------
  21. #define IMODE_DIGITAL_STD 0 // Standard Digital Mode.
  22. #define IMODE_DIGITAL_ENH 4 // Enhanced Digital Mode.
  23. #define IMODE_ANALOG 8 // Analog Mode.
  24. #define IMODE_NONE -1 // Joystick Disconnected.