Old fashion design for PC-104
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.

73 lines
1.4 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: VideoMatrix.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of VideoMatrix.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __VIDEO__MATRIX__H__INCLUDED__
  15. #define __VIDEO__MATRIX__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "DeviceVM.h"
  20. #include "VideoDevice.h"
  21. #include "..\..\LgLib\Templ.h"
  22. class CVideoMatrix :
  23. public CVideoDevice
  24. {
  25. public:
  26. CVideoMatrix();
  27. virtual ~CVideoMatrix();
  28. public:
  29. friend class CDeviceVM;
  30. void ConnectToDevice( CDeviceVM *pDevice );
  31. public:
  32. void CmdConnect( int nOutput, int nInput );
  33. BOOL CmdGetInput( int nOutput, int *pInput );
  34. protected:
  35. friend class CDeviceVideoMatrix;
  36. BOOL PostConnect( int nInput, int nOutput );
  37. protected:
  38. virtual BOOL ForceConnection( int nInput, int nOutput );
  39. private:
  40. int *m_pOutput;
  41. private:
  42. CDeviceVM *m_pDevice;
  43. private:
  44. void CheckQueue();
  45. private:
  46. enum{ VMC_CONNECTION };
  47. struct VMEVENT
  48. {
  49. BYTE id;
  50. union
  51. {
  52. struct
  53. {
  54. int nInput;
  55. int nOutput;
  56. };
  57. };
  58. };
  59. CLgQueueP<VMEVENT,100> m_Queue;
  60. };
  61. #endif