107 / 179
Copyright © 2017 TOSHIBA TELI CORPORATION, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4267042B
Register access API
Control DigitalIOControl by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
LineModeAll
Write to
‘Value’ field of ‘LineModeAll’ register.
LineInverterAll
Write to
‘Value’ field of ‘LineInverterAll’ register.
LineStatusAll
Read
‘Value’ field of ‘LineStatusAll’ register.
UserOutputValueAll
Write to
‘Value’ field of ‘UserOutputAll’ register.
LineSelector
Write to
‘Value’ field of ‘LineSelector’ register.
LineSource
Write to
‘Value’ field of ‘LineSource’ register.
// Line2/Line1 = output, Line0 = input
uint32_t uiMode = 6;
Cam_WriteReg(s_hCam, 0x209030, 1, &uiMode);
// Set Value
uint32_t uiSelector;
uint32_t uiSource;
uiSelector = 1; // Line1
uiSource = 123;
// ExposureActive
Cam_WriteReg(s_hCam, 0x2090BC, 1, &uiSelector);
Cam_WriteReg(s_hCam, 0x2090DC, 1, &uiSource);
uiSelector = 2; // Line2
uiSource = 115; // FrameTransferActive
Cam_WriteReg(s_hCam, 0x2090BC, 1, &uiSelector);
Cam_WriteReg(s_hCam, 0x2090DC, 1, &uiSource);
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.
● Note
- Line0 is dedicated input.
- Line1 is dedicated output.
- Line2 is bi-directional. The default direction is input.
For [Timer0Active] signal, please refer to [TimerControl] Section for more detail.