Header file - Function prototypes for check sum calcs.
More...
Go to the source code of this file.
|
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...
|
|
Header file - Function prototypes for check sum calcs.
- Date
- 14/10/2000
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 |
U32BIT | data_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 |
U32BIT | data_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 |
U16BIT | value - integer value |