summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer_v1.0/include/smartmedia.hch
diff options
context:
space:
mode:
Diffstat (limited to 'Graphic_Equalizer_v1.0/include/smartmedia.hch')
-rw-r--r--Graphic_Equalizer_v1.0/include/smartmedia.hch91
1 files changed, 91 insertions, 0 deletions
diff --git a/Graphic_Equalizer_v1.0/include/smartmedia.hch b/Graphic_Equalizer_v1.0/include/smartmedia.hch
new file mode 100644
index 0000000..d05c6d7
--- /dev/null
+++ b/Graphic_Equalizer_v1.0/include/smartmedia.hch
@@ -0,0 +1,91 @@
+/*! \file smartmedia.hch
+ *
+ * \section generic SmartMedia API
+ *
+ * \section project Project information.
+ * Project Graphic Equalizer\n
+ * \author O.M. Schinagl
+ * \date 20041110
+ * \version 0.1
+ *
+ * \section copyright Copyright
+ * Copyright ©2004 Koninklijke Philips Electronics N.V. All rights reserved
+ *
+ * \section history Change history
+ * 20041110: O.M. Schinagl\n Initial version
+ *
+ ********************************************************************/
+
+#ifndef _SMARTMEDIA_HCH
+#define _SMARTMEDIA_HCH 1
+
+
+
+/*
+ * SmartMedia functioncalls a bit to be set to either Read or Write. This
+ * define should make life easier identifying which one is what.
+ */
+#define READ 0
+#define WRITE 1
+
+
+
+/*
+ * The different stages the smart media loaders knows.
+ */
+#define STAGE_LOAD_DEMO_PRESET 0x00
+#define STAGE_LOAD_RESET_PRESET 0x01
+#define STAGE_LOAD_SKIN 0x02
+#define STAGE_LOAD_HELP 0x03
+#define STAGE_LOAD_GRAPH 0x04
+#define STAGE_LOAD_TOP_FONTYS 0x05
+#define STAGE_LOAD_TOP_TASS 0x06
+#define STAGE_LOAD_TOP_TRANSFER 0x07
+#define STAGE_LOAD_TOP_CELOXICA 0x08
+#define STAGE_LOAD_TOP_DETAILS 0x09
+#define STAGE_LOAD_ABOUT_BOTTOM 0x0a
+
+
+
+/*
+ * Create a define to keep API generic
+ * FIXME: replace with PAL calls when avaiable.
+ */
+#define CPLDRun(ClockRate) RC200CPLDRun(ClockRate)
+#define SmartMediaRun(ClockRate) RC200SmartMediaRun(ClockRate)
+
+
+
+/*
+ * Initializes the smartmedia device.
+ */
+
+inline unsigned 1 smartmedia_init(void);
+
+
+
+/*
+ * This function loads the memory with data from the smartmedia card.
+ */
+unsigned 1 smartmedia_loaddata(skindata_t *skindata);
+
+/*
+ * This function loads samplecount samples from the smartmedia.
+ */
+void load_audio_samples(signed 18 *samples, unsigned 27 blockoffset, unsigned 7 sample_count);
+
+/*
+ * Generic funtion to read at most 255 at a time bytes from the SmartMedia card.
+ * The data is returned as an array in the data pointer.
+ */
+void smartmedia_read_bytes(unsigned 8 *data, unsigned 8 bytecount);
+
+/*
+ * Generic funtion to set the read address at the SmartMedia card
+ */
+void smartmedia_set_read_address(unsigned 20 address);
+
+#else
+#error "ERROR file smartmedia.hch multiple times included"
+#endif /* --- _SMARTMEDIA_HCH --- */
+