Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Macros | Typedefs | Functions | Variables
crc.c File Reference
#include <math.h>
#include <stdio.h>
Include dependency graph for crc.c:

Macros

#define SHORT_BENCH
 
#define LOBYTE(x)   ((uchar)((x) & 0xFF))
 
#define HIBYTE(x)   ((uchar)((x) >> 8))
 

Typedefs

typedef unsigned char uchar
 

Functions

unsigned short icrc1 (unsigned short crc, unsigned char onech)
 
unsigned short icrc (unsigned short crc, unsigned char *lin, unsigned int len, short jinit, int jrev)
 
int main (void)
 

Variables

unsigned char aa [] = "asdffeagewaHAFEFaeDsFEawFdsFaefaeerdjgpim23eDsFEawFdsFaefaeerdjgpim23faeerdjgpim23eDsFEawFdsFaefaeerdjgpim23asdffeagewaHAFEFaeDsFEawFdsFaefaeerdjgpim23eDsFEawFdsFaefaeerdjgpim23faeerdjgpim23eDsFEawFdsFaefaeerdjgpim23"
 

Macro Definition Documentation

#define HIBYTE (   x)    ((uchar)((x) >> 8))

Referenced by icrc().

#define LOBYTE (   x)    ((uchar)((x) & 0xFF))

Referenced by icrc().

#define SHORT_BENCH

Typedef Documentation

typedef unsigned char uchar

Function Documentation

unsigned short icrc ( unsigned short  crc,
unsigned char lin,
unsigned int  len,
short  jinit,
int  jrev 
)

References HIBYTE, icrc1(), core.waf.subcommand::init(), and LOBYTE.

Referenced by main().

Here is the call graph for this function:

unsigned short icrc1 ( unsigned short  crc,
unsigned char  onech 
)

References i.

Referenced by icrc().

int main ( void  )

References i, i2, and icrc().

Here is the call graph for this function:

Variable Documentation

unsigned char aa[] = "asdffeagewaHAFEFaeDsFEawFdsFaefaeerdjgpim23eDsFEawFdsFaefaeerdjgpim23faeerdjgpim23eDsFEawFdsFaefaeerdjgpim23asdffeagewaHAFEFaeDsFEawFdsFaefaeerdjgpim23eDsFEawFdsFaefaeerdjgpim23faeerdjgpim23eDsFEawFdsFaefaeerdjgpim23"