X12_reset, X12_set_input, X12_set_input_type – Sensoray 512 QNX User Manual

Page 10

Advertising
background image

10

The function initializes the driver, searches for and initializes all boards supported by the Library. This
function has to be called only once per application. The system resources allocated by X12_init are
released by a call to X12_cleanup.

X12_reset

int X12_reset(int CardId);

Parameters

CardId

Card identifier. Must be between 0 and number of cards minus 1.

Return values

Returns 0 on success. Returns -1 if any errors were detected.

Notes

Resets the board. Writes new values to the board registers.

X12_set_input

void X12_set_input(int CardId,int input);

Parameters

CardId

Card identifier. Must be between 0 and number of cards minus 1.

input

Video input. Must be between 0 and 3.

Return values

None.

Notes

Select video input. Default is 0.

X12_set_input_type

void X12_set_input_type(int CardId,int type);

Parameters

CardId

Card identifier. Must be between 0 and number of cards minus 1.

type

Video input type. Must be 0 for Composite Video or 1 for S-Video.

Return values

Advertising