xmccd xpa functions

status on/off/exit
expose on/off
interrupt on/off
region on/off
relay mask time
filter number
mode
  single
  focus
  multi

type
  light 
  dark
  bias
  flat

 
set/read
  exposure time
  frame number
  multiframe count
  image region
  temperature
  file name
  target name
  telescope
  instrument 


    XPACmdAdd(xpa1, "status", "on/off/exit",
      send_status_cb, (void *)"status", mode, 
      receive_status_cb, (void *)"status", mode);

    XPACmdAdd(xpa1, "exposure", "exposure [time]",
      send_exposure_cb, (void *)"exposure", mode, 
      receive_exposure_cb, (void *)"exposure", mode);
      
    XPACmdAdd(xpa1, "interrupt", "interrupt",
      send_interrupt_cb, (void *)"interrupt", mode, 
      receive_interrupt_cb, (void *)"interrupt", mode);

    XPACmdAdd(xpa1, "region", "region on/off [ds9/select] [x1 y1 x2 y2]",
      send_region_cb, (void *)"region", mode, 
      receive_region_cb, (void *)"region", mode);
      
    XPACmdAdd(xpa1, "process", "process on/off",
      send_process_cb, (void *)"process", mode, 
      receive_process_cb, (void *)"process", mode);
                 
    XPACmdAdd(xpa1, "relay", "relay mask time",
      send_relay_cb, (void *)"relay", mode, 
      receive_relay_cb, (void *)"relay", mode);
 
    XPACmdAdd(xpa1, "filter", "filter number",
      send_filter_cb, (void *)"filter", mode, 
      receive_filter_cb, (void *)"filter", mode);
 
    XPACmdAdd(xpa1, "mode", "mode single/focus/multi",
      send_mode_cb, (void *)"mode", mode, 
      receive_mode_cb, (void *)"mode", mode);
 
    XPACmdAdd(xpa1, "type", "type light/dark/bias/flat",
      send_type_cb, (void *)"type", type, 
      receive_type_cb, (void *)"type", type);

    XPACmdAdd(xpa1, "frame", "frame number",
      send_frame_cb, (void *)"frame", frame, 
      receive_frame_cb, (void *)"frame", frame);

    XPACmdAdd(xpa1, "multicount", "multicount number",
      send_multicount_cb, (void *)"multicount", multicount, 
      receive_multicount_cb, (void *)"multicount", multicount);

    XPACmdAdd(xpa1, "temperature", "temperature setpoint",
      send_temperature_cb, (void *)"temperature", temperature, 
      receive_temperature_cb, (void *)"temperature", temperature);

    XPACmdAdd(xpa1, "file", "file basename",
      send_file_cb, (void *)"file", file, 
      receive_file_cb, (void *)"file", file);

    XPACmdAdd(xpa1, "target", "target name",
      send_target_cb, (void *)"target", target, 
      receive_target_cb, (void *)"target", target);

    XPACmdAdd(xpa1, "telescope", "telescope  name",
      send_telescope_cb, (void *)"telescope", telescope, 
      receive_telescope_cb, (void *)"telescope", telescope);

    XPACmdAdd(xpa1, "instrument", "instrument name",
      send_instrument_cb, (void *)"instrument", instrument, 
      receive_instrument_cb, (void *)"instrument", instrument);
  
  
  
