![]() |
Prusa Slicer 2.6.0
|
#include "ac_cfg.h"#include <limits.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <ctype.h>#include <stdint.h>#include "avrdude.h"#include "libavrdude.h"
Include dependency graph for fileio.c:Go to the source code of this file.
Classes | |
| struct | ihexrec |
Macros | |
| #define | IHEX_MAXDATA 256 |
| #define | MAX_LINE_LEN 256 /* max line length for ASCII format input files */ |
| #define | MAX_MODE_LEN 32 |
Functions | |
| static int | b2ihex (unsigned char *inbuf, int bufsize, int recsize, int startaddr, char *outfile, FILE *outf) |
| static int | ihex2b (char *infile, FILE *inf, AVRMEM *mem, int bufsize, unsigned int fileoffset) |
| static int | b2srec (unsigned char *inbuf, int bufsize, int recsize, int startaddr, char *outfile, FILE *outf) |
| static int | srec2b (char *infile, FILE *inf, AVRMEM *mem, int bufsize, unsigned int fileoffset) |
| static int | ihex_readrec (struct ihexrec *ihex, char *rec) |
| static int | srec_readrec (struct ihexrec *srec, char *rec) |
| static int | fileio_rbin (struct fioparms *fio, char *filename, FILE *f, AVRMEM *mem, int size) |
| static int | fileio_ihex (struct fioparms *fio, char *filename, FILE *f, AVRMEM *mem, int size) |
| static int | fileio_srec (struct fioparms *fio, char *filename, FILE *f, AVRMEM *mem, int size) |
| static int | fileio_num (struct fioparms *fio, char *filename, FILE *f, AVRMEM *mem, int size, FILEFMT fmt) |
| static int | fmt_autodetect (char *fname, unsigned section) |
| FILE * | fopen_utf8 (const char *filename, const char *mode) |
| static FILE * | fopen_and_seek (const char *filename, const char *mode, unsigned section) |
| char * | fmtstr (FILEFMT format) |
| static char * | itoa_simple (int n, char *buf, int base) |
| static int | fileio_imm (struct fioparms *fio, char *filename, FILE *f, AVRMEM *mem, int size) |
| int | fileio_setparms (int op, struct fioparms *fp, struct avrpart *p, AVRMEM *m) |
| int | fileio (int op, char *filename, FILEFMT format, struct avrpart *p, char *memtype, int size, unsigned section) |
| struct ihexrec |
| Class Members | ||
|---|---|---|
| unsigned char | cksum | |
| unsigned char | data[IHEX_MAXDATA] | |
| unsigned int | loadofs | |
| unsigned char | reclen | |
| unsigned char | rectyp | |
| #define IHEX_MAXDATA 256 |
| #define MAX_LINE_LEN 256 /* max line length for ASCII format input files */ |
| #define MAX_MODE_LEN 32 |
|
static |
References avrdude_message(), MSG_INFO, and progname.
Referenced by fileio_ihex().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), ihexrec::cksum, MSG_INFO, and progname.
Referenced by fileio_srec().
Here is the call graph for this function:
Here is the caller graph for this function:| int fileio | ( | int | op, |
| char * | filename, | ||
| FILEFMT | format, | ||
| struct avrpart * | p, | ||
| char * | memtype, | ||
| int | size, | ||
| unsigned | section | ||
| ) |
References avr_locate_mem(), avr_mem_hiaddr(), avrdude_message(), avrpart::desc, fileio_ihex(), fileio_imm(), fileio_num(), fileio_rbin(), fileio_setparms(), fileio_srec(), FIO_READ, FIO_WRITE, FMT_AUTO, fmt_autodetect(), FMT_BIN, FMT_DEC, FMT_ELF, FMT_HEX, FMT_IHEX, FMT_IMM, FMT_OCT, FMT_RBIN, FMT_SREC, fmtstr(), fopen_and_seek(), fioparms::iodesc, fioparms::mode, MSG_INFO, fioparms::op, progbuf, progname, quell_progress, and strcasecmp.
Referenced by do_op().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), b2ihex(), avrmem::buf, fioparms::fileoffset, FIO_READ, FIO_WRITE, ihex2b(), MSG_INFO, fioparms::op, and progname.
Referenced by fileio().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), avrmem::buf, fioparms::dir, FIO_READ, FIO_WRITE, fioparms::iodesc, MSG_INFO, fioparms::op, progname, fioparms::rw, TAG_ALLOCATED, and avrmem::tags.
Referenced by fileio().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), avrmem::buf, FIO_WRITE, FMT_BIN, FMT_DEC, FMT_HEX, FMT_OCT, itoa_simple(), MSG_INFO, fioparms::op, and progname.
Referenced by fileio().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), avrmem::buf, fioparms::dir, FIO_READ, FIO_WRITE, fioparms::iodesc, MSG_INFO, fioparms::op, progname, fioparms::rw, TAG_ALLOCATED, and avrmem::tags.
Referenced by fileio().
Here is the call graph for this function:
Here is the caller graph for this function:References avrdude_message(), AVRPART_AVR32, fioparms::dir, fioparms::fileoffset, FIO_READ, FIO_WRITE, avrpart::flags, fioparms::iodesc, fioparms::mode, MSG_INFO, avrmem::offset, fioparms::op, progname, and fioparms::rw.
Referenced by fileio().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), b2srec(), avrmem::buf, fioparms::fileoffset, FIO_READ, FIO_WRITE, MSG_INFO, fioparms::op, progname, and srec2b().
Referenced by fileio().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), FMT_ELF, FMT_IHEX, FMT_RBIN, FMT_SREC, fopen_and_seek(), MAX_LINE_LEN, MSG_INFO, and progname.
Referenced by fileio().
Here is the call graph for this function:
Here is the caller graph for this function:| char * fmtstr | ( | FILEFMT | format | ) |
References FMT_AUTO, FMT_ELF, FMT_IHEX, FMT_RBIN, and FMT_SREC.
Referenced by fileio(), Slic3r::Utils::anonymous_namespace{Time.cpp}::process_format(), Slic3r::Utils::str2time(), and Slic3r::Utils::time2str().
Here is the caller graph for this function:References fopen_utf8(), and MAX_LINE_LEN.
Referenced by fileio(), and fmt_autodetect().
Here is the call graph for this function:
Here is the caller graph for this function:References MAX_MODE_LEN, and PATH_MAX.
Referenced by fopen_and_seek(), and read_config().
Here is the caller graph for this function:
|
static |
References avrdude_message(), avrmem::buf, ihexrec::cksum, ihexrec::data, ihex_readrec(), infile, lineno, ihexrec::loadofs, MAX_LINE_LEN, MSG_INFO, progname, ihexrec::reclen, ihexrec::rectyp, TAG_ALLOCATED, and avrmem::tags.
Referenced by fileio_ihex().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References ihexrec::cksum, ihexrec::data, ihexrec::loadofs, ihexrec::reclen, and ihexrec::rectyp.
Referenced by ihex2b().
Here is the caller graph for this function:
|
static |
Referenced by fileio_num().
Here is the caller graph for this function:
|
static |
References avrdude_message(), avrmem::buf, ihexrec::cksum, ihexrec::data, infile, lineno, ihexrec::loadofs, MAX_LINE_LEN, MSG_INFO, progname, ihexrec::reclen, ihexrec::rectyp, srec_readrec(), TAG_ALLOCATED, and avrmem::tags.
Referenced by fileio_srec().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References ihexrec::cksum, ihexrec::data, ihexrec::loadofs, ihexrec::reclen, and ihexrec::rectyp.
Referenced by srec2b().
Here is the caller graph for this function: