DtvKit_ATSC3.0
Loading...
Searching...
No Matches
atsc_core_common.h
Go to the documentation of this file.
1/**************************************************************************************
2 * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3 *
4 * This file is part of a DTVKit Software Component
5 * You are permitted to copy, modify or distribute this file subject to the terms
6 * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
7 *
8 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
10 * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11 *
12 * If you or your organisation is not a member of DTVKit then you have access
13 * to this source code outside of the terms of the licence agreement
14 * and you are expected to delete this and any associated files immediately.
15 * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
16 ***************************************************************************************/
17#ifndef ATSC_CORE_COMMON_H_
18#define ATSC_CORE_COMMON_H_
19
20#pragma once
21#include <stdio.h>
22
36
40typedef struct
41{
42 uint8_t cVersion;
43 uint8_t cProtocol;
45 int32_t iHeaderLength;
46 int32_t iTotalLength;
47 int32_t iCheckSum;
48 int32_t iId;
49 int32_t iFragment;
50 int32_t iEndFlag;
51 int32_t iFragOffset;
53 uint64_t lSrc;
54 uint64_t lDest;
56
60typedef struct
61{
62 uint16_t iSrcPort;
63 uint16_t iDestPort;
64 uint16_t iLength;
65 uint16_t iCheckSum;
67#endif /* ATSC_CORE_COMMON_H_ */
eStreamCmd_t
Definition atsc_core_common.h:30
@ eStreamContinue
Definition atsc_core_common.h:33
@ eStreamStart
Definition atsc_core_common.h:31
@ eStreamStop
Definition atsc_core_common.h:32
@ eStreamServiceList
Definition atsc_core_common.h:34
Definition atsc_core_common.h:41
uint8_t cProtocol
Definition atsc_core_common.h:43
int32_t iFragment
Definition atsc_core_common.h:49
uint64_t lSrc
Definition atsc_core_common.h:53
uint8_t cVersion
Definition atsc_core_common.h:42
int32_t iEndFlag
Definition atsc_core_common.h:50
int32_t iFragOffset
Definition atsc_core_common.h:51
int32_t iTotalLength
Definition atsc_core_common.h:46
int32_t iId
Definition atsc_core_common.h:48
int32_t iHeaderLength
Definition atsc_core_common.h:45
uint64_t lDest
Definition atsc_core_common.h:54
int32_t iCheckSum
Definition atsc_core_common.h:47
Definition atsc_core_common.h:61
uint16_t iLength
Definition atsc_core_common.h:64
uint16_t iCheckSum
Definition atsc_core_common.h:65
uint16_t iDestPort
Definition atsc_core_common.h:63
uint16_t iSrcPort
Definition atsc_core_common.h:62