FireBirdLib - Topfield TMS PVR TAP Programming Library
FlashFavoritesGetInfoCurrent.c
Go to the documentation of this file.
1#include <string.h>
2#include "libFireBird.h"
3
5{
7
8 byte *EEPROM; //Size = 128
9 byte NrGrps, CurrentGroup;
10 bool ret;
11
12 NrGrps = FlashFavoritesGetTotal();
13 EEPROM = (byte*)FIS_vEEPROM();
14 CurrentGroup = EEPROM[0x0012];
15
16 ret = FALSE;
17 if((NrGrps != 0) && Favorites && (CurrentGroup != 0xFF)) ret = FlashFavoritesGetInfo(CurrentGroup, Favorites);
18
19 TRACEEXIT();
20 return ret;
21}
dword FIS_vEEPROM(void)
Definition: FIS_vEEPROM.c:3
bool FlashFavoritesGetInfoCurrent(tFavorites *Favorites)
bool FlashFavoritesGetInfo(int FavNum, tFavorites *Favorites)
int FlashFavoritesGetTotal(void)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243