GLITCH application is coming together.
[goodfet] / firmware / include / glitch.h
index de3d4a8..6f30d6d 100644 (file)
@@ -7,7 +7,27 @@
 #include <io.h>
 #include <iomacros.h>
 
 #include <io.h>
 #include <iomacros.h>
 
+//Command codes
+#define GLITCHAPP      0x80
+#define GLITCHVERB     0x81
+#define GLITCHVOLTAGES 0x90
+#define GLITCHRATE     0x91
+
 //! Disable glitch state at init.
 void glitchsetup();
 //! Setup analog chain for glitching.
 void glitchsetupdac();
 //! Disable glitch state at init.
 void glitchsetup();
 //! Setup analog chain for glitching.
 void glitchsetupdac();
+
+extern u16 glitchH, glitchL, glitchstate, glitchcount;
+
+//! Glitch an application.
+void glitchapp(u8 app);
+//! Set glitching voltages.
+void glitchvoltages(u16 low, u16 high);
+//! Set glitching rate.
+void glitchrate(u16 rate);
+
+//! Handles a monitor command.
+void glitchhandle(unsigned char app,
+                 unsigned char verb,
+                 unsigned long len);