108 / 172
Copyright © 2019 Toshiba Teli Corpotration, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4289451A
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, 3, 4 is dedicated input.
- Line1, 5, 6 is dedicated output.
- Line2 is bi-directional. The default direction is output.
For [Timer0Active] signal, please refer to [TimerControl] Section for more detail.