aboutsummaryrefslogtreecommitdiff
path: root/src/io_cube.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-07-04 17:09:55 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-07-04 17:09:55 +0200
commit518d98ad5f9eec0cf4124375bdbb84d1296b3f3f (patch)
tree467b2b0387f23a0b379cf428c6883937ec18c134 /src/io_cube.h
parent425eee24421bf0a19c7e0199d2e3ecba3318c8f4 (diff)
downloadnissy-core-518d98ad5f9eec0cf4124375bdbb84d1296b3f3f.tar.gz
nissy-core-518d98ad5f9eec0cf4124375bdbb84d1296b3f3f.zip
(almost) added getcube
Diffstat (limited to 'src/io_cube.h')
-rw-r--r--src/io_cube.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/io_cube.h b/src/io_cube.h
index 95c1882..956494d 100644
--- a/src/io_cube.h
+++ b/src/io_cube.h
@@ -1,5 +1,3 @@
1_static cube_t cubefromarray(uint8_t [static 8], uint8_t [static 12]);
2
3_static uint8_t readco(const char *); 1_static uint8_t readco(const char *);
4_static uint8_t readcp(const char *); 2_static uint8_t readcp(const char *);
5_static uint8_t readeo(const char *); 3_static uint8_t readeo(const char *);
@@ -31,15 +29,6 @@ _static struct {
31 { .name = "NONE", .read = NULL, .write = NULL }, 29 { .name = "NONE", .read = NULL, .write = NULL },
32}; 30};
33 31
34_static_inline cube_t
35cubefromarray(uint8_t c[static 8], uint8_t e[static 12])
36{
37 return static_cube(
38 c[0], c[1], c[2], c[3], c[4], c[5], c[6], c[7],
39 e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7],
40 e[8], e[9], e[10], e[11]);
41}
42
43cube_t 32cube_t
44readcube(const char *format, const char *buf) 33readcube(const char *format, const char *buf)
45{ 34{

Generated with cgit - Back to sebastiano.tronto.net