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.

62 lines
2.1 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Philips Semiconductors-CSU 1999
  4. // All rights are reserved. Reproduction in whole or in part is prohibited
  5. // without the written consent of the copyright owner.
  6. //
  7. // Philips reserves the right to make changes without notice at any time.
  8. // Philips makes no warranty, expressed, implied or statutory, including but
  9. // not limited to any implied warranty of merchantibility or fitness for any
  10. // particular purpose, or that the use will not infringe any third party
  11. // patent, copyright or trademark. Philips must not be liable for any loss
  12. // or damage arising from its use.
  13. //
  14. // VSB2.H
  15. // Definition of CVSB2Demod class
  16. //////////////////////////////////////////////////////////////////////////////
  17. #ifndef _VSB2_H_
  18. #define _VSB2_H_
  19. #include "vsbbase.h"
  20. // Status registers
  21. typedef struct
  22. {
  23. VsbStatusType Status;
  24. BOOL bCorrelatorError;
  25. BOOL bCorrelatorFull;
  26. } Vsb2StatusType, *PVsb2StatusType;
  27. class CVSB2Demod : public CVSBDemod
  28. {
  29. public:
  30. CVSB2Demod(CI2CScript *p_I2CScript, BoardInfoType *p_BoardInfo, NTSTATUS *p_Status);
  31. ~CVSB2Demod();
  32. // PVOID operator new (UINT size_t);
  33. // void operator delete(PVOID p_Object);
  34. virtual BOOL GetStatus(PVsbStatusType p_Status);
  35. virtual BOOL GetStatus(PVsb2StatusType p_Status);
  36. virtual BOOL InitVSB();
  37. virtual BOOL CoeffIDToAddress(UINT uiID, UINT *p_uiAddress,
  38. UINT uiRegisterType);
  39. virtual BOOL SetOutputMode(UINT uiOutputMode);
  40. virtual BOOL GetOutputMode(UINT *p_uiOutputMode);
  41. virtual BOOL SetDiagMode(VSBDIAGTYPE ulMode);
  42. virtual BOOL GetDiagMode(ULONG *p_ulMode);
  43. virtual ULONG GetDiagSpeed(ULONG ulType);
  44. protected:
  45. virtual BOOL EnableCoefficients(UCHAR ucEnable);
  46. virtual BOOL DisableCoefficients();
  47. virtual BOOL DisableCoefficients(UINT ucEnable);
  48. virtual BOOL Initialize();
  49. virtual BOOL EnableCorrelatorRead();
  50. virtual BOOL WaitForCorrelatorFull();
  51. };
  52. #endif // _VSB2_H_