146
Programming
Guide
void EEPROMWrite(IBaseFilter *pFilter, BYTE
offset, BYTE value)
/*
Purpose:
Write.the value to EEPROM
Parameters:
pFilter: Interface of BT878 filter
offset: the offset (0~127) based on starting
address of EEPROM
value: the data to EEPROM
*/
{
IKsPropertySet *pKs = NULL;
DWORD TypeSupport = 0;
KSPROPERTY_CUSTOMBT848_I2C_S I2C;
BYTE uAddress;
HRESULT hr;
ULONG ret=0;
if(pFilter == NULL)
return;
if((hr=pFilter-
>QueryInterface(IID_IKsPropertySet, (void
**)&pKs)) == S_OK)
{
hr = pKs-
>QuerySupported(PROPSETID_CUSTOMBT848,
KSPROPERTY_CUSTOMBT848_I2C,
&TypeSupport);
if(TypeSupport &
KSPROPERTY_SUPPORT_GET)
{
uAddress = 0xa0;// address for
the EEPROM device
// Set frequency first
ZeroMemory(&I2C,sizeof(I2C));
I2C.bDontWaitACK = true;
I2C.dwOperation =
BT848_CUSTPROP_I2C_SETFREQ;
I2C.dwFreq = 100000;
Summary of Contents for cRTV-24
Page 4: ......
Page 8: ...List of Tables iv Table 5 2 C C Data Types 83 Table 5 3 Pixel Data 122 ...
Page 10: ......
Page 18: ...8 Introduction ...
Page 34: ...24 Hardware Reference Figure 2 8 STRG Address Jumpers ...
Page 55: ...Installation Guide 45 Figure 3 2 cRTV 24 3U cPCI ...
Page 61: ...Installation Guide 51 ...
Page 62: ...52 Installation Guide ...
Page 64: ...54 Installation Guide The Device Manager should be as follows ...
Page 67: ...Installation Guide 57 ...
Page 68: ...58 Installation Guide 3 When the following window appears please click Con tinue Anyway ...
Page 70: ...60 Installation Guide The Device Manager should be as follows ...
Page 72: ...62 Installation Guide 3 Click the Finish button to finish the installation ...
Page 76: ...66 Installation Guide ...
Page 144: ...134 Function Library ...
Page 174: ...164 Programming Guide ...