summaryrefslogtreecommitdiff
path: root/include/print-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/print-utils.h')
-rw-r--r--include/print-utils.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/print-utils.h b/include/print-utils.h
new file mode 100644
index 0000000..38de111
--- /dev/null
+++ b/include/print-utils.h
@@ -0,0 +1,24 @@
+/*
+ * (C) Copyright 2014, 2018 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);
+ERRNUM dump_mem(uint32_t address, uint32_t offset, uint32_t len,
+ ERRNUM (*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);
+
+ERRNUM eeprom_read_buf(uint8_t *buf, uint32_t addr, uint8_t count);
+ERRNUM ram_read_buf(uint8_t *buf, uint32_t addr, uint8_t count);
+ERRNUM flash_read_buf(uint8_t *buf, uint32_t addr, uint8_t count);
+
+#endif /* PRINT_UTILS_H */