FireBirdLib - Topfield TMS PVR TAP Programming Library
HDD_RECSlotEncode.c
Go to the documentation of this file.
1#include "FBLib_rec.h"
2
3bool HDD_RecSlotEncode(byte Slot, tFlashTimer *RecSlot)
4{
6
7 dword RSA;
8 bool ret;
9
10 //Sanity check of the parameters
11 if(Slot > HDD_NumberOfRECSlots())
12 {
13 TRACEEXIT();
14 return FALSE;
15 }
16
17 RSA = FIS_vRECSlotAddress(Slot);
18 if(RSA == 0)
19 {
20 TRACEEXIT();
21 return FALSE;
22 }
23
24 ret = FlashTimerEncode((void*)RSA, RecSlot);
25
26 TRACEEXIT();
27 return ret;
28}
dword FIS_vRECSlotAddress(byte Slot)
bool FlashTimerEncode(void *Data, tFlashTimer *TimerInfo)
bool HDD_RecSlotEncode(byte Slot, tFlashTimer *RecSlot)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243
dword HDD_NumberOfRECSlots(void)