
138
Chapter 8
Analyzing Digital Sources and Cables
#endif //
!defined(AFX_LFSR_H__5947F6F9_1DBE_4E6E_9AFB_77D5D8857A10__INCLUDED_)
lfsl.cpp
The following source code is provided for the tfsl.cpp file.
// Implementation of the CLFSR class
#include “LFSR.h”
#include <stdio.h>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
// enable this to light up pixels 1,2,3 as red,green,blue
// in horizontal order
// Pixel 1 represents the top left corner of the screen
// when this is enabled, all other pixels are black
//#define RGB_TEST
// Construction/Destruction
unsigned long pixelvalue;
CLFSR::CLFSR()
{
}
CLFSR::~CLFSR()
{
}
void CLFSR::Reset()
{
state=0;
seed=0x08000001;
}
// Pixel 1 should be 0x000000
// Pixel 2 should be 0x00 (7-bits) , Opcode(10-bits), SeedHigh(7 bits)
// Pixel 3 should be SeedLow (24 bits)
// All other pixels are then set based on the results of the LFSR
calculations.
// The 10-bit Opcode is custom per Quantum Data’s request and it will be
set to ‘00,0000,0111’.
unsigned long CLFSR::GetPixel()
{
unsigned long temp;
Summary of Contents for 802BT
Page 1: ...802BT 802R Video Test Generator User Guide ...
Page 52: ...42 Chapter 2 Testing Video Displays ...
Page 62: ...52 Chapter 3 Administrative Tasks ...
Page 118: ...108 Chapter 7 Using GPIB Interface ...
Page 194: ...184 Chapter 10 Testing EDID ...
Page 204: ...194 Chapter 11 Testing HDCP ...
Page 214: ...204 Appendix A Command Reference Commands by name ...
Page 595: ...Video Test Generator User Guide 585 ...
Page 611: ...Video Test Generator User Guide 601 ...
Page 612: ...602 Appendix A Command Reference ...
Page 716: ...706 Appendix B Image Reference ...
Page 744: ...734 Appendix C Error Messages ...