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

Go to the source code of this file.

Macros

#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 [] = "asdffeagewaHAFEFaeDsFEawFdsFaefaeerdjgpim23"
 

Macro Definition Documentation

◆ HIBYTE

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

Definition at line 8 of file spec.c.

Referenced by icrc().

◆ LOBYTE

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

Definition at line 7 of file spec.c.

Referenced by icrc().

Typedef Documentation

◆ uchar

typedef unsigned char uchar

Definition at line 6 of file spec.c.

Function Documentation

◆ icrc()

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

Definition at line 26 of file spec.c.

References HIBYTE, icrc1(), init(), and LOBYTE.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ icrc1()

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

Definition at line 12 of file spec.c.

Referenced by icrc().

Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 63 of file spec.c.

References aa, and icrc().

Here is the call graph for this function:

Variable Documentation

◆ aa

unsigned char aa[] = "asdffeagewaHAFEFaeDsFEawFdsFaefaeerdjgpim23"

Definition at line 10 of file spec.c.

Referenced by main().


Generated on Mon Feb 12 2024 13:03:08 for PandA-2024.02 by doxygen 1.8.13