FireBirdLib - Topfield TMS PVR TAP Programming Library
HDD_TAP_GetIndexByID.c
Go to the documentation of this file.
1
#include "
FBLib_tap.h
"
2
3
// Return codes: 0..15 = Position in the TAP table
4
// -1 = TAPID not found
5
//
6
int
HDD_TAP_GetIndexByID
(dword TAPID)
7
{
8
TRACEENTER
();
9
10
int
i;
11
12
for
(i = 0; i <
TAP_MAX
; i++)
13
if
(
HDD_TAP_GetIDByIndex
(i) == TAPID)
14
{
15
TRACEEXIT
();
16
return
i;
17
}
18
19
TRACEEXIT
();
20
return
-1;
21
}
FBLib_tap.h
HDD_TAP_GetIndexByID
int HDD_TAP_GetIndexByID(dword TAPID)
Definition:
HDD_TAP_GetIndexByID.c:6
TAP_MAX
#define TAP_MAX
Definition:
libFireBird.h:60
HDD_TAP_GetIDByIndex
dword HDD_TAP_GetIDByIndex(int TAPIndex)
Definition:
HDD_TAP_GetIDByIndex.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tap
HDD_TAP_GetIndexByID.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3