1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
void enable_aec(ArduCamHandle cam)
{
unsigned long val;
ArduCam_readSensorReg(cam, 0xAF, &val);
ArduCam_writeSensorReg(cam, 0xAF, val | 1ul);
}
void disable_aec(ArduCamHandle cam)
{
unsigned long val;
ArduCam_readSensorReg(cam, 0xAF, &val);
ArduCam_writeSensorReg(cam, 0xAF, val & ~1ul);
}
void enable_agc(ArduCamHandle cam)
{
unsigned long val;
ArduCam_readSensorReg(cam, 0xAF, &val);
ArduCam_writeSensorReg(cam, 0xAF, val | 2ul);
}
void disable_agc(ArduCamHandle cam)
{
unsigned long val;
ArduCam_readSensorReg(cam, 0xAF, &val);
ArduCam_writeSensorReg(cam, 0xAF, val & ~2ul);
}
| |