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