128 / 160
Copyright © 2016-2018 TOSHIBA TELI CORPORATION, All Rights Reserved.
http://www.toshiba-teli.co.jp/en/index.htm
D4259344C
Register access API
Control ALC parameters by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
ALCPhotometricAreaSize/ALCExposureValue/ALCExposureTimeMin/ALCExposureTimeMax/
ALCGainMin/ALCGainMax/ALCThrottle
Write to ‘Value’ field of ALC parameter register.
// ALCPhotometricAreaSize = 25% (Raw value = 25)
uint32_t uiSizeRaw = 25;
// ALCExposureValue = +1.0EV (Raw value = 10)
int32_t iEVRaw = 10; // signed
// ALCExposureTimeMin = 1000μs (Raw value = 25000)
uint32_t uiExpMinRaw = 25000;
// ALCExposureTimeMax = 2000000μs (Raw value = 50000000)
uint32_t uiExpMaxRaw = 50000000;
// ALCGainMin = 4.00dB (Raw value = 40)
uint32_t uiGainMinRaw = 40;
// ALCGainMax = 20.00dB (Raw value = 200)
uint32_t uiGainMaxRaw = 200;
// ALCThrottle = 50.00% (Raw value = 32768)
uint32_t uiThrottleRaw = 32768;
// Set ALCPhotometricAreaSize
Cam_WriteReg(s_hCam, 0x21F37C, 1, &uiSizeRaw);
// Set ALCExposureValue
Cam_WriteReg(s_hCam, 0x2040DC, 1, &iEVRaw);
// Set ALCExposureTimeMin
Cam_WriteReg(s_hCam, 0x20429C, 1, &uiExpMinRaw);
// Set ALCExposureTimeMax
Cam_WriteReg(s_hCam, 0x2042BC, 1, &uiExpMaxRaw);
// Set ALCGainMin
Cam_WriteReg(s_hCam, 0x2042DC, 1, &uiGainMinRaw);
// Set ALCGainMax
Cam_WriteReg(s_hCam, 0x2042FC, 1, &uiGainMaxRaw);
// Set ALCThrottle
Cam_WriteReg(s_hCam, 0x21F65C, 1, &uiThrottleRaw);
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.