xhid_read   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/hid.xtm

Implementation

(bind-func xhid_read
  (lambda (hid)
    (let ((ret:hid_return 0)
          (packets 4)
          (pathlen 3) (i:i32 0)
          (path_out:i32* (alloc pathlen))
          (dat:i8* (alloc packets)))
      ;; where path_out values are based are taken from parse tree!
      (pfill! path_out #x00010002 #x0008004b #x00080041)
      (set! ret (hid_get_input_report hid path_out pathlen dat packets))
      (printout "->")
      (dotimes (i packets)
        (printout " " (pref dat i)))
      (println "")
      void)))


Back to Index

Similar Entries

  • AudioBuffer_read    xtlang
  • AudioBuffer_read    xtlang
  • AudioBuffer_read_interp    xtlang
  • AudioBuffer_read_interp_mix    xtlang
  • AudioBuffer_read_interp_pw    xtlang
  • AudioBuffer_read_looped    xtlang
  • AudioBuffer_read_looped    xtlang
  • astra_readX    xtlang
  • astra_reader    xtlang
  • audiofile_aiff_read_samples    xtlang
  • audiofile_read_samples    xtlang
  • audiofile_wave_read_samples    xtlang
  • impc:compiler:print-already-bound-error    scheme
  • midi_read_loop    xtlang
  • midi_read_msg    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • ocv_imread    xtlang
  • ocv_imread    xtlang
  • ocv_imread    scheme
  • ocv_imread1    xtlang
  • ocv_imread2    xtlang
  • ocv_read    xtlang
  • ocv_read    xtlang
  • ocv_read    scheme
  • ocv_read1    xtlang
  • ocv_read2    xtlang
  • read_and_write_frame    xtlang
  • sf_read_file_into_buffer    xtlang
  • svm_read_line    xtlang
  • svm_read_problem    xtlang
  • sys_file_read    xtlang
  • thread_native_call    xtlang
  • thread_native_call_with_zone    xtlang
  • xhid_close    xtlang
  • xhid_dump    xtlang
  • xhid_listener    scheme
  • xhid_open    xtlang