aboutsummaryrefslogtreecommitdiff
path: root/fw/transpose.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-01-05 11:39:20 +0100
committerjaseg <git@jaseg.net>2018-01-05 11:39:20 +0100
commit31fc78d0e00f9c82f03c88367a7e23b2df918ca6 (patch)
tree4a57797df736e40574b1448afe95c049df13022b /fw/transpose.h
parenta70ad99b36b5212525cc6c1957802d3eab8e0d99 (diff)
download7seg-31fc78d0e00f9c82f03c88367a7e23b2df918ca6.tar.gz
7seg-31fc78d0e00f9c82f03c88367a7e23b2df918ca6.tar.bz2
7seg-31fc78d0e00f9c82f03c88367a7e23b2df918ca6.zip
Add some documentation
Diffstat (limited to 'fw/transpose.h')
-rw-r--r--fw/transpose.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fw/transpose.h b/fw/transpose.h
index 389071c..467b12d 100644
--- a/fw/transpose.h
+++ b/fw/transpose.h
@@ -15,6 +15,7 @@ enum {
FRAME_SIZE_WORDS = NROWS*NCOLS*NSEGMENTS/32,
};
+/* Framebuffer data format pre-formatted for BCM ISRs */
struct framebuf {
/* Multiplexing order: first Digits, then Time/bits, last Segments */
union {
@@ -28,6 +29,7 @@ struct framebuf {
uint8_t brightness; /* 0 or 1; controls global brighntess control */
};
+/* Efficiently-packed UART data format */
struct data_format {
union {
uint8_t high[8];