diff --git a/camlibs/polaroid/gt98x.html b/camlibs/polaroid/gt98x.html index 48f0a0f3a..a9c8d5fc4 100644 --- a/camlibs/polaroid/gt98x.html +++ b/camlibs/polaroid/gt98x.html @@ -91,12 +91,6 @@ the start of it.
+
+void
+DOWNLOAD_DATA(type, buffer, size) {
+ SELECT_PICTURE_TYPE(type);
+ SEND_DRAM(buffer, size);
+}
+
+/* Unclear why and how used */
+void
+SEND_USER_COMMAND(cmd, inputbuffer, inputsize, outputbuffer, outputsize) {
+ SEND_PARAMETER(&cmd, 1);
+ if (inputbuffer && inputsize) {
+ SEND_PARAMETER(inputbuffer, inputsize);
+ }
+ if (outputbuffer && outputsize) {
+ SEND_PARAMETER(&outputsize, 4);
+ DOWNLOAD_DATA(0x21, outputbuffer, outputsize);
+ }
+}
+
+void
+WRITE_REG_Command(byte reg, byte val, int porttype) {
+ // strangely different between USB/SERIAL
+ if (porttype == USB) {
+ byte buf[2];
+ buf[0] = reg;
+ buf[1] = val;
+ SEND_PARAMETERk(buf, 2);
+ } else {
+ call_driver(0x81, reg, val);
+ }
+}
+
+void
+take_picture(int checkstoragefull, int locksnapflag, int waitforexpflag) {
+ byte val;
+
+ if (checkstoragefull) QUERY_STORAGE_FULL():
+ if (locksnapflag) LOCK_SNAP();
+ SNAP();
+ if (waitforexpflag) {
+ do {
+ Sleep(500);
+ WAIT_EXPOSURE(&val);
+ } while (val != 1);
+ }
+ if (locksnapflag) FREE_SNAP();
+}
+