FireBirdLib - Topfield TMS PVR TAP Programming Library
TAPCOM_GetStatus.c
Go to the documentation of this file.
1
#include "
FBLib_tapcom.h
"
2
3
TAPCOM_Status
TAPCOM_GetStatus
(
TAPCOM_Channel
Channel)
4
{
5
TRACEENTER
();
6
7
TAPCOM_InternalMesBuf
*buf = (
TAPCOM_InternalMesBuf
*) Channel;
8
9
if
(!
isValidChannel
(Channel))
10
{
11
TRACEEXIT
();
12
return
TAPCOM_Status_NO_CHANNEL
;
13
}
14
15
//Prüfe, ob der Server überhaupt noch aktiv ist.
16
if
(((buf->
Status
==
TAPCOM_Status_OPEN
) || (buf->
Status
==
TAPCOM_Status_ACKNOWLEDGED
)) && (!
HDD_TAP_isRunning
(buf->
ToID
)))
17
buf->
Status
=
TAPCOM_Status_SERVER_NOT_AVAILABLE
;
18
19
TRACEEXIT
();
20
return
buf->
Status
;
21
}
FBLib_tapcom.h
isValidChannel
bool isValidChannel(TAPCOM_Channel Channel)
Definition:
isValidChannel.c:3
TAPCOM_GetStatus
TAPCOM_Status TAPCOM_GetStatus(TAPCOM_Channel Channel)
Definition:
TAPCOM_GetStatus.c:3
TAPCOM_Status
TAPCOM_Status
Definition:
libFireBird.h:2651
TAPCOM_Status_OPEN
@ TAPCOM_Status_OPEN
Definition:
libFireBird.h:2652
TAPCOM_Status_SERVER_NOT_AVAILABLE
@ TAPCOM_Status_SERVER_NOT_AVAILABLE
Definition:
libFireBird.h:2653
TAPCOM_Status_NO_CHANNEL
@ TAPCOM_Status_NO_CHANNEL
Definition:
libFireBird.h:2658
TAPCOM_Status_ACKNOWLEDGED
@ TAPCOM_Status_ACKNOWLEDGED
Definition:
libFireBird.h:2654
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TAPCOM_Channel
void * TAPCOM_Channel
Definition:
libFireBird.h:2661
HDD_TAP_isRunning
bool HDD_TAP_isRunning(dword TAPID)
Definition:
HDD_TAP_isRunning.c:3
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
TAPCOM_InternalMesBuf
Definition:
FBLib_tapcom.h:18
TAPCOM_InternalMesBuf::ToID
dword ToID
Definition:
FBLib_tapcom.h:23
TAPCOM_InternalMesBuf::Status
TAPCOM_Status Status
Definition:
FBLib_tapcom.h:24
tapcom
TAPCOM_GetStatus.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3