TwiceAsNice  2019-02-18
Macros | Functions | Variables
readsrec.c File Reference
#include "PDNA.h"
#include "PDNA_private.h"
Include dependency graph for readsrec.c:

Macros

#define LINE_SIZE   1024
 

Functions

static unsigned int srecGetbytes (DQtSrec *srec, char *line, char *srecbuf, unsigned int srecsz, unsigned int bufferSize, int addr_bytes)
 
static int srecProcess (DQtSrec *srec, char *srecbuf, unsigned int bufferSize, FILE *out)
 
static DQtSrecsrecOpen (const char *, FILE *, int relative)
 
static void srecClose (DQtSrec *)
 
int DAQLIB DqReadSrec (char *filename, int relative, uint32 size, char *buffer, uint32 *bytes)
 
static char * stegf (char *buf, int len, FILE *f)
 
static int strneq (const char *s1, const char *s2)
 

Variables

static const unsigned char srecNibble [256]
 

Macro Definition Documentation

◆ LINE_SIZE

#define LINE_SIZE   1024

Function Documentation

◆ DqReadSrec()

int DAQLIB DqReadSrec ( char *  filename,
int  relative,
uint32  size,
char *  buffer,
uint32 bytes 
)

◆ srecClose()

static void srecClose ( DQtSrec srec)
static

◆ srecGetbytes()

static unsigned int srecGetbytes ( DQtSrec srec,
char *  line,
char *  srecbuf,
unsigned int  srecsz,
unsigned int  bufferSize,
int  addr_bytes 
)
static

◆ srecOpen()

static DQtSrec * srecOpen ( const char *  name,
FILE *  out,
int  relative 
)
static

◆ srecProcess()

static int srecProcess ( DQtSrec srec,
char *  srecbuf,
unsigned int  bufferSize,
FILE *  out 
)
static

◆ stegf()

static char* stegf ( char *  buf,
int  len,
FILE *  f 
)
static

◆ strneq()

static int strneq ( const char *  s1,
const char *  s2 
)
static

Variable Documentation

◆ srecNibble

const unsigned char srecNibble[256]
static