15.08.2013 Views

Manual Inspecta Software

Manual Inspecta Software

Manual Inspecta Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.4.6.2 mvfg_IntSource (), mfg_IntSource ()<br />

Synopsis: void mvfg_IntSource ( DWORD irqsource );<br />

<strong>Software</strong><br />

Description: ‘mvfg_IntSource()’ defines the source of an interrupt. Use this function in<br />

conjunction with mvfg_IntCallback () to define, how often the user supplied<br />

programme should be called.<br />

Returns: --<br />

The parameter irqsource is the same as in function mvfg_isr (). Bits 10-12<br />

define the source of an interrupt.<br />

‘irqsource’ can have the following values:<br />

Bits: 0..7 = 0<br />

Bits: 8..9 = 0<br />

10 = ISRC0 interrupt source 0<br />

11 = ISRC1 interrupt source 1<br />

12 = ISRC2 interrupt source 1<br />

Bits: 13..32 = 0<br />

irqsource = 0x000 ; hor. freq/128<br />

0x400 ; falling edge of VSYNC analog<br />

0x800 ; start/stop flipflop is set<br />

0xC00 ; falling edge of HSYNC analog<br />

0x1400 ; falling edge of VSYNC digital<br />

0x1C00 ; falling edge of HSYNC digital<br />

Example: Call the application programme with every VSYNC.<br />

// define (VSYNC) as interrupt source.<br />

mvfg_IntSource ( 0x0400 );<br />

// initialize MVFG-Callback function.<br />

mvfg_IntCallback( (DWORD) myCallBackFkt, 0 );<br />

INSPECTA <strong>Software</strong> Rev. 1.47 Page 56

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!