plptools
Loading...
Searching...
No Matches
sistypes.h File Reference
#include <stdint.h>
#include <sys/types.h>
Include dependency graph for sistypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LangTableEntry
 Holder of a language entry, translating from language numbers to names. More...
 

Enumerations

enum  SisRC {
  SIS_OK = 0 , SIS_TRUNCATED , SIS_TRUNCATEDDATA , SIS_CORRUPTED ,
  SIS_FAILED , SIS_ABORTED , SIS_DIFFERENT_APP , SIS_VER_EARLIER ,
  SIS_SAME_OR_LATER , SIS_OTHER_VARIANT
}
 Return Codes. More...
 

Functions

uint16_t read16 (uint8_t *p)
 
uint32_t read32 (uint8_t *p)
 
void write16 (uint8_t *p, int val)
 
void createCRCTable ()
 
uint16_t updateCrc (uint16_t crc, uint8_t value)
 

Variables

int logLevel
 
LangTableEntry langTable []
 

Enumeration Type Documentation

◆ SisRC

enum SisRC

Return Codes.

Enumerator
SIS_OK 
SIS_TRUNCATED 
SIS_TRUNCATEDDATA 
SIS_CORRUPTED 
SIS_FAILED 
SIS_ABORTED 
SIS_DIFFERENT_APP 
SIS_VER_EARLIER 
SIS_SAME_OR_LATER 
SIS_OTHER_VARIANT 

Definition at line 29 of file sistypes.h.

Function Documentation

◆ createCRCTable()

void createCRCTable ( )

Definition at line 27 of file sistypes.cpp.

◆ read16()

uint16_t read16 ( uint8_t *  p)

Definition at line 57 of file sistypes.cpp.

◆ read32()

uint32_t read32 ( uint8_t *  p)

Definition at line 62 of file sistypes.cpp.

◆ updateCrc()

uint16_t updateCrc ( uint16_t  crc,
uint8_t  value 
)

Definition at line 41 of file sistypes.cpp.

◆ write16()

void write16 ( uint8_t *  p,
int  val 
)

Definition at line 67 of file sistypes.cpp.

Variable Documentation

◆ langTable

LangTableEntry langTable[]
extern

Definition at line 73 of file sistypes.cpp.

◆ logLevel

int logLevel
extern

Definition at line 25 of file sistypes.cpp.