summaryrefslogtreecommitdiff
path: root/include/print-utils.h
blob: 8acf975f4acaa6a6bd3928d00096440f534ec7a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#ifndef PRINT_UTILS_H
#define PRINT_UTILS_H

#include "common.h"
#include <avr/eeprom.h>

void print_blanks(uint_fast8_t count);
int dump_mem(uint32_t address, uint32_t offset, uint32_t len,
		void (*readfkt)(uint8_t *, uint32_t, uint8_t), char *title);

void dump_eep(uint32_t addr, unsigned int len, char *title);
void dump_ram(uint8_t *addr, size_t offset, unsigned int len, char *title);

void eeprom_read_buf(uint8_t *buf, uint32_t addr, uint8_t count);
void ram_read_buf(uint8_t *buf, uint32_t addr, uint8_t count);

#endif /* PRINT_UTILS_H */