FireBirdLib - Topfield TMS PVR TAP Programming Library
HDD_TAP_Terminate.c
Go to the documentation of this file.
1
#include "
FBLib_tap.h
"
2
3
void
HDD_TAP_Terminate
(dword TAPID)
4
{
5
TRACEENTER
();
6
7
int
TAPIndex;
8
tTMSTAPTaskTable
*TMSTAPTaskTable;
9
10
//Return if that ID is not in use
11
TAPIndex =
HDD_TAP_GetIndexByID
(TAPID);
12
if
(TAPIndex < 0)
13
{
14
TRACEEXIT
();
15
return
;
16
}
17
18
TMSTAPTaskTable = (
tTMSTAPTaskTable
*)
FIS_vTAPTable
();
19
if
(!TMSTAPTaskTable)
20
{
21
TRACEEXIT
();
22
return
;
23
}
24
25
//Be nice and send a stop event to the target TAP
26
HDD_TAP_SendEvent
(TAPID, FALSE, EVT_STOP, 1, 0);
27
28
TMSTAPTaskTable[TAPIndex].
Status
= 2;
29
30
TRACEEXIT
();
31
}
FBLib_tap.h
FIS_vTAPTable
dword FIS_vTAPTable(void)
Definition:
FIS_vTAPTable.c:3
HDD_TAP_Terminate
void HDD_TAP_Terminate(dword TAPID)
Definition:
HDD_TAP_Terminate.c:3
HDD_TAP_SendEvent
dword HDD_TAP_SendEvent(dword TAPID, bool AllowParamInterception, word event, dword param1, dword param2)
Definition:
HDD_TAP_SendEvent.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
HDD_TAP_GetIndexByID
int HDD_TAP_GetIndexByID(dword TAPID)
Definition:
HDD_TAP_GetIndexByID.c:6
tTMSTAPTaskTable
Definition:
libFireBird.h:2576
tTMSTAPTaskTable::Status
dword Status
Definition:
libFireBird.h:2577
tap
HDD_TAP_Terminate.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3