summaryrefslogtreecommitdiff
path: root/mzf2wav/src/physical.h
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2017-01-02 12:58:55 +0100
committerYves Fischer <yvesf-git@xapek.org>2017-01-02 12:58:55 +0100
commita0e86733b4ddab6aa886a7cbb8fe9019f99a3459 (patch)
treed2f6fb78372cbb12a4123901383b0fe65795ca20 /mzf2wav/src/physical.h
downloadsharp-mz-a0e86733b4ddab6aa886a7cbb8fe9019f99a3459.tar.gz
sharp-mz-a0e86733b4ddab6aa886a7cbb8fe9019f99a3459.zip
Import from http://www.sharpmz.org/mzf2wav.htm
Diffstat (limited to 'mzf2wav/src/physical.h')
-rw-r--r--mzf2wav/src/physical.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/mzf2wav/src/physical.h b/mzf2wav/src/physical.h
new file mode 100644
index 0000000..c9b6ac9
--- /dev/null
+++ b/mzf2wav/src/physical.h
@@ -0,0 +1,16 @@
+#include "wav.h"
+
+// Defenitions.
+typedef unsigned char byte;
+typedef unsigned short word;
+typedef unsigned int dword;
+
+// Prototypes.
+void reversepol(void), // Reverse polarity.
+ gap(int), // i short pulses.
+ tapemark(int), // i long, i short and two long pulses.
+ writecs(word), // Write the checksum.
+ setspeed(int); // Define the waveform.
+word writebyte(byte), // Write a byte and count the ones.
+ getfilesize(byte *); // Get the file size.
+int assert(byte *, word); // See if the MZF file is valid.