Sensoray 711 User Manual
Page 26
Sensoray Model 711 Instruction Manual
27
X11_ResetStatus
__declspec(dllexport) ECODE __stdcall X11_ResetStatus (hfg, mask)
HFG hfg;
/* frame grabber handle */
DWORD mask;
/* reset mask */
The X11_ResetStatus function resets individual bits of the frame grabber status register.
Parameter Description
hfg
Frame grabber handle. Selects the frame grabber.
mask
A value of 1 resets the corresponding bit of the status register.
Returns
The function returns 0 in case of success, or an error code. For the meanings of the status
word individual bits see X11_GetStatus.
X11_GetDStatus
__declspec(dllexport) ECODE __stdcall X11_GetDStatus (hfg, pStatus)
HFG hfg;
/* frame grabber handle */
DWORD * pStatus;
/* address of the variable receiving status value */
The X11_GetDStatus function retrieves additional status information.
Parameter Description
hfg
Frame grabber handle. Selects the frame grabber.
pStatus
Address of the variable receiving the status value.
Returns
The function returns 0 in case of success, or an error code. The individual bits of the status
word have the following meanings:
Value
Description
DSTATUS_PRES
Video present. Reset to 0 when input sync is not detected in 31
consecutive line periods.
DSTATUS_HLOCK
Device in horizontal lock.
DSTATUS_FIELD
Reflects whether an odd or even field is being captured (0 - odd field).
DSTATUS_NUML
Number of lines found in input video signal (0 - 525, 1 - 625).
DSTATUS_CSEL
Identifies which crystal is selected.
DSTATUS_LOF
Luma ADC overflow. Set to 0 at the reset, set to 1 if an overflow
occurs. Has to be written to to be reset.
DSTATUS_COF
Chroma ADC overflow. Set to 0 at the reset, set to 1 if an overflow
occurs. Has to be written to to be reset.
Note
Use X11_SetDStatus to reset status bits.