aboutsummaryrefslogtreecommitdiffstats
path: root/octvc1/octvc1_stream.h
blob: ac40b67e9795bf5d9da2637605afb66c8f191414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\

File: OCTVC1_STREAM.h

Copyright (c) 2018 Octasic Inc. All rights reserved.

Description: 

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.


Release: OCTSDR Software Development Kit OCTSDR_GSM-02.10.00-B1837 (2018/02/21)

$Revision: $

\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/

#ifndef __OCTVC1_STREAM_H__
#define __OCTVC1_STREAM_H__


/*****************************  INCLUDE FILES  *******************************/
#include "../octdev_types.h"


/************************  COMMON DEFINITIONS  *******************************/

/*-------------------------------------------------------------------------------------
 	Stream types
-------------------------------------------------------------------------------------*/
/*-------------------------------------------------------------------------------------
	tOCTVC1_STREAM_DIRECTION_ENUM : 	Tap direction.
-------------------------------------------------------------------------------------*/
#define tOCTVC1_STREAM_DIRECTION_ENUM						tOCT_UINT32

#define cOCTVC1_STREAM_DIRECTION_ENUM_TO_HOST				0		
#define cOCTVC1_STREAM_DIRECTION_ENUM_FROM_HOST				1		

/*-------------------------------------------------------------------------------------
	tOCTVC1_STREAM_STATS
 		Stream stats

 Members:
	ulTransferDataSize
	ulDurationUs
	ulSentPacketCnt
	ulRecvPacketCnt
	ulRecvDropCnt
	ulRecvOverflowCnt
	ulRecvRetryCnt
	ulRecvMissCnt
-------------------------------------------------------------------------------------*/
typedef struct
{
	tOCT_UINT32	ulTransferDataSize;
	tOCT_UINT32	ulDurationUs;
	tOCT_UINT32	ulSentPacketCnt;
	tOCT_UINT32	ulRecvPacketCnt;
	tOCT_UINT32	ulRecvDropCnt;
	tOCT_UINT32	ulRecvOverflowCnt;
	tOCT_UINT32	ulRecvRetryCnt;
	tOCT_UINT32	ulRecvMissCnt;

} tOCTVC1_STREAM_STATS;


#endif /* __OCTVC1_STREAM_H__ */