3bool FlashServiceFindNum(
byte SatIndex, word NetworkID, word TSID, word ServiceID, TYPE_ServiceType *SvcType,
int *SvcNum)
9 static byte LastSatIndex = 0;
10 static word LastNetworkID = 0, LastTSID = 0, LastServiceID = 0;
11 static TYPE_ServiceType LastSvcType = 0;
12 static int LastSvcNum = 0;
16 if((SatIndex == LastSatIndex) && (NetworkID == LastNetworkID) && (TSID == LastTSID) && (ServiceID == LastServiceID))
18 if(SvcType) *SvcType = LastSvcType;
19 if(SvcNum) *SvcNum = LastSvcNum;
28 for(TpIdx = 0; TpIdx < TrCount; TpIdx++)
37 if(SvcType) *SvcType = SVC_TYPE_Tv;
38 if(SvcNum) *SvcNum = SvcIdx;
40 LastSatIndex = SatIndex;
41 LastNetworkID = NetworkID;
43 LastServiceID = ServiceID;
44 LastSvcType = SVC_TYPE_Tv;
52 SvcIdx =
ApplSvc_GetSvcIdx(SVC_TYPE_Radio, SatIndex, TpIdx, ServiceID, 0, 0xffff);
55 if(SvcType) *SvcType = SVC_TYPE_Radio;
56 if(SvcNum) *SvcNum = SvcIdx;
58 LastSatIndex = SatIndex;
59 LastNetworkID = NetworkID;
61 LastServiceID = ServiceID;
62 LastSvcType = SVC_TYPE_Radio;
word ApplSvc_GetSvcIdx(byte TYPE_ServiceType, byte SatIndex, word TPIndex, word ServiceID, word Start, word NrOfServicesToSearch)
bool FlashServiceFindNum(byte SatIndex, word NetworkID, word TSID, word ServiceID, TYPE_ServiceType *SvcType, int *SvcNum)
bool FlashTransponderTablesGetInfo(int SatNum, int TransponderNum, tFlashTransponderTable *TransponderTable)
int FlashTransponderTablesGetTotal(int SatNum)