Returns, Mid2246_api int sn_clearoverlay (int board), Parameters – Sensoray 2246 User Manual
Page 48: Function documentation - general purpose io

Returns:
0 on success
MID2246_API int SN_ClearOverlay (int board)
Clear all overlays
Parameters:
board ID if multiple boards installed.
Returns:
0 on success
MID2246_API int SN_ClearOverlayRegion (int regionmask, int board)
Clears all overlays for specified region. Use SN_ClearOverlay to erase overlays. This
function only clears the overlay by region
Parameters:
regionmask output region mask
board ID if multiple boards installed.
Returns:
0 on success
MID2246_API int SN_SetOverlayRegion (int regionmask, int board)
Set all overlays for specified region.This function only sets regionmask for all overlays
Parameters:
regionmask output region mask
board ID if multiple boards installed.
Returns:
0 on success
MID2246_API int SN_SetOverlayMode (int mode, int board)
Set overlay mode. No longer has any effect. All current SDK/FPGA releases support full
screen (at source input resolution) double buffered text and graphic overlays with 16-bit
color.
Function Documentation - General Purpose IO
MID2246_API int SN_SetGPOutput (int states, int board)
Drives the general purpose output pins with the value in states.
Parameters:
states integer value to drive the general purpose outputs with.
board ID if multiple boards installed.
Returns:
0 on success
MID2246_API int SN_GetGPOutput (int * states, int board)
Reads the value that was previously written to the general purpose output pins via
SN_SetGPOutput
48