summaryrefslogtreecommitdiffstats
path: root/prototypes.h
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2019-02-26 10:56:52 +0000
committerfishsoupisgood <github@madingley.org>2019-02-26 10:56:52 +0000
commit9b0002fc40f4d8b97cf2064910a9ded467f29276 (patch)
tree637a1cc1dd9c21c8f486dbe03db6a830ebbe768c /prototypes.h
downloadgen_msf-9b0002fc40f4d8b97cf2064910a9ded467f29276.tar.gz
gen_msf-9b0002fc40f4d8b97cf2064910a9ded467f29276.tar.bz2
gen_msf-9b0002fc40f4d8b97cf2064910a9ded467f29276.zip
fish
Diffstat (limited to 'prototypes.h')
-rw-r--r--prototypes.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/prototypes.h b/prototypes.h
new file mode 100644
index 0000000..fc09337
--- /dev/null
+++ b/prototypes.h
@@ -0,0 +1,14 @@
+/* time_fn.c */
+extern UTC time_epoch_to_utc(EPOCH epoch);
+extern EPOCH time_utc_to_epoch(UTC u);
+extern void utc_to_str(char *dst, UTC u);
+extern void time_print_utc(const char *p, UTC u);
+extern void time_print_epoch(const char *p, EPOCH e);
+/* msf.c */
+extern void msf_make_bits(UTC u, uint8_t *a, uint8_t *b);
+extern void msf_make_stream(uint8_t *v, uint8_t *a, uint8_t *b);
+/* util.c */
+extern int set_parity(uint8_t *d, unsigned s, unsigned e);
+extern void bcd_set(uint8_t *d, unsigned s, unsigned e, unsigned v);
+/* main.c */
+extern int main(int argc, char *argv[]);