DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
stbcsum.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 // pre-processor mechanism so multiple inclusions don't cause compilation error
26 
27 #ifndef _STBCSUM_H
28 
29 #define _STBCSUM_H
30 
31 #include "techtype.h"
32 
33 //---Constant and macro definitions for public use-----------------------------
34 
35 //---Enumerations for public use-----------------------------------------------
36 
37 //---Global type defs for public use-------------------------------------------
38 
39 //---Global Function prototypes for public use---------------------------------
40 
41 U8BIT STB_CalcChecksum(U8BIT *data_ptr, U32BIT data_size);
42 BOOLEAN STB_CheckChecksum(U8BIT *data_ptr, U32BIT data_size);
43 
44 U16BIT STB_GetBE16Bit(U16BIT *addr);
45 void STB_SetBE16Bit(U16BIT *addr, U16BIT value);
46 
47 #endif // _STBCSUM_H
48 
49 //*****************************************************************************
50 // End of file
51 //*****************************************************************************
52 
U16BIT STB_GetBE16Bit(U16BIT *addr)
Returns 16bit int from address, assuming value is stored in Big endian format.
Definition: stbcsum.c:138
BOOLEAN STB_CheckChecksum(U8BIT *data_ptr, U32BIT data_size)
Validates the checksum to zero for the block pointer provided.
Definition: stbcsum.c:96
System Wide Global Technical Data Type Definitions.
void STB_SetBE16Bit(U16BIT *addr, U16BIT value)
Stores 16bit int in address, forcing value to be stored in Big endian format.
Definition: stbcsum.c:167
U8BIT STB_CalcChecksum(U8BIT *data_ptr, U32BIT data_size)
Calculates the checksum to zero for the data block provided.
Definition: stbcsum.c:62