24 static char MAGIC[] =
"Cosa::Ciao";
29 #if defined(NREFECTION) 36 static const char descr_name[]
__PROGMEM =
"Ciao::header_t";
37 static const char magic_name[]
__PROGMEM=
"magic";
38 static const char major_name[]
__PROGMEM=
"major";
39 static const char minor_name[]
__PROGMEM=
"minor";
40 static const char endian_name[]
__PROGMEM =
"endian";
236 else if (count < 256) {
254 memcpy_P(&d, desc,
sizeof(d));
272 for (uint16_t i = 0; i < d.
count; i++) {
274 memcpy_P(&m, mp++,
sizeof(m));
284 static const uint8_t sizeoftype[]
__PROGMEM = {
308 memcpy_P(&d, desc,
sizeof(d));
321 uint8_t* dp = (uint8_t*) buf;
324 for (uint16_t i = 0; i < d.
count; i++) {
326 memcpy_P(&m, mp++,
sizeof(m));
330 uint8_t* sp = *((uint8_t**) dp);
339 size_t s = pgm_read_byte(&sizeoftype[m.
type >> 4]) * m.
count;
virtual int putchar(char c)
virtual int puts(const char *s)
static const char descr_name[] __PROGMEM
virtual int write(const void *buf, size_t size)
static const uint8_t MINOR
const class prog_str * str_P
static const uint8_t MAJOR
Ciao header descriptor (8-bit, 1-15).
static const user_t header_t