![]() | ![]() | ![]() | The Canon driver reference | ![]() |
---|
#include <canon.h> int canon_int_get_battery (Camera *camera, int *pwr_status, int *pwr_source, GPContext *context); #define CAMERA_MASK_BATTERY enum canonPowerStatus;
int canon_int_get_battery (Camera *camera, int *pwr_status, int *pwr_source, GPContext *context);
Gets battery status.
camera : | the camera to work on |
pwr_status : | pointer to integer determining power status |
pwr_source : | pointer to integer determining power source |
context : | context for error reporting |
Returns : | gphoto2 error code |
typedef enum { CAMERA_POWER_BAD = 4, CAMERA_POWER_OK = 6 } canonPowerStatus;
Battery status values
CAMERA_POWER_BAD | Value returned if power source is bad (i.e. battery is low). |
CAMERA_POWER_OK | Value returned if power source is OK. |
<<< Power Status | Structures >>> |