root/include/properties.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef PROPERTIES_H
   2 #define PROPERTIES_H
   3 
   4 // CHDK Firmware params & props interface
   5 
   6 // Note: used in modules and platform independent code. 
   7 // Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values)
   8 
   9 // If building for CHDK core include appropriate propset file
  10 // For modules & platform independent code trying to use any PROPCASE value will give an error
  11 // In this case use the camera_info struct instead
  12 #ifndef CHDK_MODULE_CODE
  13 
  14 /* propcase ID constants. These are in their own header files for easier sed processing */
  15 #if CAM_PROPSET == 13
  16     #include "propset13.h"  // G7X2
  17 #elif CAM_PROPSET == 12
  18     #include "propset12.h"  // DryOS r59 (eos m100, sx730)
  19 #elif CAM_PROPSET == 11
  20     #include "propset11.h"  // SX430 -
  21 #elif CAM_PROPSET == 10
  22     #include "propset10.h"  // Some DryOS R57 (eos m10)
  23 #elif CAM_PROPSET == 9
  24     #include "propset9.h"   // Some DryOS R55 (eos m3)
  25 #elif CAM_PROPSET == 8
  26     #include "propset8.h"   // Some DryOS R55 (sx530, may be for earlier cameras than propset 7)
  27 #elif CAM_PROPSET == 7
  28     #include "propset7.h"   // Some DryOS R55 (g7x)
  29 #elif CAM_PROPSET == 6
  30     #include "propset6.h"   // DryOS R52
  31 #elif CAM_PROPSET == 5
  32     #include "propset5.h"   // DryOS R50
  33 #elif CAM_PROPSET == 4
  34     #include "propset4.h"
  35 #elif CAM_PROPSET == 3
  36     #include "propset3.h"
  37 #elif CAM_PROPSET == 2      // most digic3 cameras
  38     #include "propset2.h"
  39 #elif CAM_PROPSET == 1      // most digic2 cameras
  40     #include "propset1.h"
  41 #else
  42     #error unknown camera processor
  43 #endif
  44 
  45 #endif
  46 
  47 extern long get_property_case(long id, void *buf, long bufsize);
  48 extern long set_property_case(long id, void *buf, long bufsize);
  49 
  50 extern void shooting_set_prop(int id, int v);
  51 extern int shooting_get_prop(int id);
  52 
  53 extern short get_parameter_size(long id);
  54 extern long get_parameter_data(long id, void *buf, long bufsize);
  55 extern long set_parameter_data(long id, void *buf, long bufsize);
  56 
  57 extern int get_flash_params_count(void);
  58 
  59 extern short get_uiprop_value(unsigned long id);
  60 extern int uiprop_count;
  61 
  62 #endif

/* [<][>][^][v][top][bottom][index][help] */