143 / 177
Copyright © 2018 - 2020 Toshiba Teli Corporation, All rights reserved.
https://www.toshiba-teli.co.jp/en/
DAA00195C
Register access API
Control LUT by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
LUT
1. Set the output level of LUT.
Write to ‘Value[0]’ to ‘Value[4095]’ of ‘LUTValueAll’ register to set the output level of LUT.
The index of ‘Value’ register means the input level of LUT.
2. Set the activation of LUT function.
Write to ‘Value’ field of ‘LUTEnable’ register to activate LUT function.
// 1.Set the output level of LUT.
uint64_t addr = 0x300000;
uint32_t dat;
for(int i=0; i<4096; i++, addr+= 0x4)
{
dat = 4095 - i; // invert
Cam_WriteReg(s_hCam, addr, 1, &dat);
}
// 2.Set the activation of LUT function.
dat = 1;
Cam_WriteReg(s_hCam, 0x20603C, 1, &dat);
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.
Minimum/Maximum Value
LUTIndex/LUTValue
Value
Minimum
0
Maximum
4095