F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
Utils Namespace Reference

Classes

class  Hash
 A generic interface for creating and comparing hash values. More...
 
class  HashBuffer
 A container class for holding a hash buffer. More...
 
class  RateLimiter
 
class  TokenBucket
 

Enumerations

enum  crc_stat_t {
  PASSED_FILE_CRC_CHECK = 0 , PASSED_FILE_CRC_WRITE , FAILED_FILE_SIZE , FAILED_FILE_SIZE_CAST ,
  FAILED_FILE_OPEN , FAILED_FILE_READ , FAILED_FILE_CRC_OPEN , FAILED_FILE_CRC_READ ,
  FAILED_FILE_CRC_WRITE , FAILED_FILE_CRC_CHECK
}
 

Functions

crc_stat_t create_checksum_file (const char *const fname)
 
crc_stat_t read_crc32_from_file (const char *const fname, U32 &checksum_from_file)
 
crc_stat_t verify_checksum (const char *const fname, U32 &expected, U32 &actual)
 

Variables

static const NATIVE_INT_TYPE CRC_FILE_READ_BLOCK = 2048
 
static const U32 CRC_MAX_FILENAME_SIZE = 128
 

Enumeration Type Documentation

◆ crc_stat_t

Enumerator
PASSED_FILE_CRC_CHECK 
PASSED_FILE_CRC_WRITE 
FAILED_FILE_SIZE 
FAILED_FILE_SIZE_CAST 
FAILED_FILE_OPEN 
FAILED_FILE_READ 
FAILED_FILE_CRC_OPEN 
FAILED_FILE_CRC_READ 
FAILED_FILE_CRC_WRITE 
FAILED_FILE_CRC_CHECK 

Definition at line 22 of file CRCChecker.hpp.

Function Documentation

◆ create_checksum_file()

crc_stat_t Utils::create_checksum_file ( const char *const  fname)

Definition at line 22 of file CRCChecker.cpp.

◆ read_crc32_from_file()

crc_stat_t Utils::read_crc32_from_file ( const char *const  fname,
U32 &  checksum_from_file 
)

Definition at line 117 of file CRCChecker.cpp.

◆ verify_checksum()

crc_stat_t Utils::verify_checksum ( const char *const  fname,
U32 &  expected,
U32 &  actual 
)

Definition at line 146 of file CRCChecker.cpp.

Variable Documentation

◆ CRC_FILE_READ_BLOCK

const NATIVE_INT_TYPE Utils::CRC_FILE_READ_BLOCK = 2048
static

Definition at line 19 of file CRCChecker.hpp.

◆ CRC_MAX_FILENAME_SIZE

const U32 Utils::CRC_MAX_FILENAME_SIZE = 128
static

Definition at line 20 of file CRCChecker.hpp.