FireBirdLib - Topfield TMS PVR TAP Programming Library
FlashFavoritesGetTotal.c
Go to the documentation of this file.
1
#include "
FBLib_flash.h
"
2
3
int
FlashFavoritesGetTotal
(
void
)
4
{
5
TRACEENTER
();
6
7
int
i, NrGroups, NrSvcsPerGroup;
8
tFavorites
*Favs30100;
9
tFavorites1050
*Favs1050;
10
11
Favs30100 = (
tFavorites
*)
FIS_vFlashBlockFavoriteGroup
();
12
Favs1050 = (
tFavorites1050
*)Favs30100;
13
14
if
(!Favs30100)
15
{
16
TRACEEXIT
();
17
return
0;
18
}
19
20
i = 0;
21
22
FlashFavoritesGetParameters
(&NrGroups, &NrSvcsPerGroup);
23
switch
(NrSvcsPerGroup)
24
{
25
case
100:
26
{
27
while
(Favs30100->
GroupName
[0])
28
{
29
i++;
30
Favs30100++;
31
if
(i >= NrGroups)
break
;
32
}
33
break
;
34
}
35
36
case
50:
37
{
38
while
(Favs1050->
GroupName
[0])
39
{
40
i++;
41
Favs1050++;
42
if
(i >= NrGroups)
break
;
43
}
44
break
;
45
}
46
}
47
48
TRACEEXIT
();
49
return
i;
50
}
FBLib_flash.h
FIS_vFlashBlockFavoriteGroup
dword FIS_vFlashBlockFavoriteGroup(void)
Definition:
FIS_vFlashBlockFavoriteGroup.c:3
FlashFavoritesGetParameters
void FlashFavoritesGetParameters(int *NrGroups, int *NrSvcsPerGroup)
Definition:
FlashFavoritesGetParameters.c:3
FlashFavoritesGetTotal
int FlashFavoritesGetTotal(void)
Definition:
FlashFavoritesGetTotal.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tFavorites1050
Definition:
FBLib_flash.h:217
tFavorites1050::GroupName
char GroupName[12]
Definition:
FBLib_flash.h:218
tFavorites
Definition:
libFireBird.h:1732
tFavorites::GroupName
char GroupName[12]
Definition:
libFireBird.h:1733
flash
FlashFavoritesGetTotal.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3