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.

48 lines
1.2 KiB

  1. //-------------------------------------------------------------------
  2. // This is the class for the length-value protocol
  3. // Author: Sergey Ivanov
  4. // Log:
  5. // 11/10/99 - implemented
  6. //-------------------------------------------------------------------
  7. #ifndef __LV_PROTOCOL__
  8. #define __LV_PROTOCOL__
  9. #include "protocol.h"
  10. #pragma PAGEDCODE
  11. class CDevice;
  12. class CLVProtocol : public CProtocol
  13. {
  14. public:
  15. NTSTATUS m_Status;
  16. SAFE_DESTRUCTORS();
  17. protected:
  18. CLVProtocol(){};
  19. public:
  20. CLVProtocol(CDevice* device) : CProtocol(device)
  21. {
  22. TRACE("\nLength-Value protocol was created...\n");
  23. m_Status = STATUS_SUCCESS;
  24. };
  25. virtual ~CLVProtocol()
  26. {
  27. TRACE("Length-Value protocol %8.8lX was destroied...\n",this);
  28. };
  29. virtual VOID dispose()
  30. {
  31. self_delete();
  32. };
  33. virtual VOID set_WTR_Delay(LONG Delay);
  34. virtual ULONG get_WTR_Delay();
  35. virtual VOID set_Default_WTR_Delay();
  36. virtual LONG get_Power_WTR_Delay();
  37. virtual ULONG getCardState();
  38. virtual NTSTATUS writeAndWait(PUCHAR pRequest,ULONG RequestLength,PUCHAR pReply,ULONG* pReplyLength);
  39. virtual NTSTATUS readAndWait(PUCHAR pRequest,ULONG RequestLength,PUCHAR pReply,ULONG* pReplyLength);
  40. };
  41. #endif