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 == 11
  16     #include "propset11.h"   // SX430 -
  17 #elif CAM_PROPSET == 10
  18     #include "propset10.h"   // Some DryOS R57 (eos m10)
  19 #elif CAM_PROPSET == 9
  20     #include "propset9.h"   // Some DryOS R55 (eos m3)
  21 #elif CAM_PROPSET == 8
  22     #include "propset8.h"   // Some DryOS R55 (sx530, may be for earlier cameras than propset 7)
  23 #elif CAM_PROPSET == 7
  24     #include "propset7.h"   // Some DryOS R55 (g7x)
  25 #elif CAM_PROPSET == 6
  26     #include "propset6.h"   // DryOS R52
  27 #elif CAM_PROPSET == 5
  28     #include "propset5.h"   // DryOS R50
  29 #elif CAM_PROPSET == 4
  30     #include "propset4.h"
  31 #elif CAM_PROPSET == 3
  32     #include "propset3.h"
  33 #elif CAM_PROPSET == 2      // most digic3 cameras
  34     #include "propset2.h"
  35 #elif CAM_PROPSET == 1      // most digic2 cameras
  36     #include "propset1.h"
  37 #else
  38     #error unknown camera processor
  39 #endif
  40 
  41 #endif
  42 
  43 extern long get_property_case(long id, void *buf, long bufsize);
  44 extern long set_property_case(long id, void *buf, long bufsize);
  45 
  46 extern void shooting_set_prop(int id, int v);
  47 extern int shooting_get_prop(int id);
  48 
  49 extern short get_parameter_size(long id);
  50 extern long get_parameter_data(long id, void *buf, long bufsize);
  51 extern long set_parameter_data(long id, void *buf, long bufsize);
  52 
  53 extern int get_flash_params_count(void);
  54 
  55 extern short get_uiprop_value(unsigned long id);
  56 extern int uiprop_count;
  57 
  58 #endif

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