143 / 172
Copyright © 2019 Toshiba Teli Corpotration, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4289451A
Register access API
Control UserSetControl by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
UserSetLoad/UserSetSave/UserSetQuickSave
1. Select a channel of user setting by ‘UserSetSelector’.
Write to ‘Value’ field of ‘UserSetSelector’ register.
2. Execute UserSetLoad, UserSetSave or UserSetQuickSave
Write [8] to ‘Value’ field of ‘UserSetCommand’ register to execute UserSetLoad.
Write [9] to ‘Value’ field of ‘UserSetCommand’ register to execute UserSetSave.
Write [120] to ‘Value’ field of ‘UserSetCommand’ register to execute UserSetQuickSave.
After execution of 'UserSetSave', wait until 'UserSetCommand’ is ‘Done’ (= 0).
uint32_t dat;
// 1.Select a channel of user setting by ‘UserSetSelector’.
dat = 1; // UserSet1
Cam_WriteReg(s_hCam, 0x20807C, 1, &dat);
// 2. Execute UserSetSave
dat = 9; // UserSetSave
Cam_WriteReg(s_hCam, 0x20809C, 1, &dat);
while(1) {
Cam_ReadReg(s_hCam, 0x20809C, 1, &dat);
if(dat == 0)
break;
Sleep(0);
}
UserSetDefault
1. Select a channel of user setting when camera powers up by ‘UserSetDefault’.
// 1.Select a channel of user setting when camera powers up
uint32_t dat = 1; // UserSet1
Cam_WriteReg(s_hCam, 0x2080BC, 1, &dat);
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.