beautypg.com

Sensoray 614 Windows User Manual

Page 34

background image

Registers a callback function for use with the SampleGrabber
DirectShow graphs. Used with SN_StartCompressedCaptureOnly(recmodes 3
and 4) and SN_StartCaptureOnly_CB(recmodes 1 and 2). Please see the
console_demo for a full example.

Parameters

callback_func

The callback function for audio (encoded MP2 or raw)

board

board number in system.

MID314_API int SN_WriteI2C(

unsigned char ucSlave,

unsigned char *seq,

unsigned char seq_len,

int board,

);

(This is for 614 only). Write a data (in word) into a register inside of
the 614 FPGA. It's used for manipulating/controlling the 614 caption
overlay only.

Parameters

ucSlave

The I2C slave address of the 614 FPGA, fixed as 60H

*seq

The point of the data sequence to be written into a register inside of the 614 FPGA

seq_len

The length of the data sequence to be written into a register inside of the 614 FPGA. Based

on the 614 FPGA spec, it always equals 3

board

board number in system.

Note

The data sequence should be formed as:

seq_byte[0] = register_index;

seq_byte[1] = upper_byte_of_the_data_in_word;

seq_byte[2] = lower_byte_of_the_data_in_word;

34

This manual is related to the following products: