DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
Functions
stbcsum.h File Reference

Header file - Function prototypes for check sum calcs. More...

#include "techtype.h"

Go to the source code of this file.

Functions

U8BIT STB_CalcChecksum (U8BIT *data_ptr, U32BIT data_size)
 Calculates the checksum to zero for the data block provided. More...
 
BOOLEAN STB_CheckChecksum (U8BIT *data_ptr, U32BIT data_size)
 Validates the checksum to zero for the block pointer provided. More...
 
U16BIT STB_GetBE16Bit (U16BIT *addr)
 Returns 16bit int from address, assuming value is stored in Big endian format. More...
 
void STB_SetBE16Bit (U16BIT *addr, U16BIT value)
 Stores 16bit int in address, forcing value to be stored in Big endian format. More...
 

Detailed Description

Header file - Function prototypes for check sum calcs.

Date
14/10/2000

Function Documentation

U8BIT STB_CalcChecksum ( U8BIT *  data_ptr,
U32BIT  data_size 
)

Calculates the checksum to zero for the data block provided.

Parameters
U8BIT*data_ptr - the pointer to the data block
U32BITdata_size - size of the data
Returns
U8BIT - checksum value.
BOOLEAN STB_CheckChecksum ( U8BIT *  data_ptr,
U32BIT  data_size 
)

Validates the checksum to zero for the block pointer provided.

Parameters
U8BIT*data_ptr - the pointer to the data block
U32BITdata_size - size of the data
Returns
BOOLEAN - TRUE if checksum value is valid.
U16BIT STB_GetBE16Bit ( U16BIT *  addr)

Returns 16bit int from address, assuming value is stored in Big endian format.

Parameters
U16BIT*addr - pointer to 16bit int
Returns
U16BIT - integer value.
void STB_SetBE16Bit ( U16BIT *  addr,
U16BIT  value 
)

Stores 16bit int in address, forcing value to be stored in Big endian format.

Parameters
U16BIT*addr - pointer to 16bit int
U16BITvalue - integer value