FireBirdLib - Topfield TMS PVR TAP Programming Library
FrontPanelEEPROMWrite.c
Go to the documentation of this file.
1#include <unistd.h>
2#include "FBLib_main.h"
3
4bool FrontPanelEEPROMWrite(word Address, byte Data)
5{
7
8 byte Buffer[8];
9
11 {
12 TRACEEXIT();
13 return FALSE;
14 }
15
16 //Query: D3 EAH EAL DTA
17 Buffer[0] = 0xD3;
18 Buffer[1] = Address >> 8;
19 Buffer[2] = Address & 0xff;
20 Buffer[3] = Data;
21
24
25 //Cache the two options so that the FrontPanelEEPROMRead() doesn't need to communicate with the front panel
26 if(Address == 0x01ff) FPPatchAntiFreezeOption = Data;
27 if(Address == 0x01fe) FPPatchPowerRestoreOption = Data;
28
29 TRACEEXIT();
30 return TRUE;
31}
bool FP_Initialize(void)
byte FPPatchPowerRestoreOption
Definition: FrontPanelComm.c:7
bool HookFrontTxPacket(void)
void UnhookFrontTxPacket(void)
byte FPPatchAntiFreezeOption
Definition: FrontPanelComm.c:6
void Front_TxPacket_hooked(byte *Data)
bool FrontPanelEEPROMWrite(word Address, byte Data)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243