Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement Request: add VBI hook capability #5

Closed
GoogleCodeExporter opened this issue Sep 11, 2015 · 4 comments
Closed

Improvement Request: add VBI hook capability #5

GoogleCodeExporter opened this issue Sep 11, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

I'd like TVout to have the ability to call a hook during the vertical blanking 
interval.  I am using this capability to communicate with an I2C device.

Example implementation

TVout.h:
// declaration of set_vbi_hook function
void set_vbi_hook(void (*func)());

TVout.cpp:
// implementation of set_vbi_hook
void TVout::set_vbi_hook(void (*func)()) {
  vbi_hook = func;
}

video_gen.h:
// extern declaration of vbi_hook function pointer
extern void (*vbi_hook)();

video_gen.cpp:
// declaration of vbi_hook function pointer and invocation of function at 
beginning of VBI
void (*vbi_hook)();

// in active_line()...
    if ((display.scanLine + 1) == display.stop_render) {
        line_handler = &blank_line;
        if (vbi_hook != 0) {
          vbi_hook();
        }
    }


Let me know if you have any questions; this should be pretty self explanatory 
for you.


Original issue reported on code.google.com by nootropi...@gmail.com on 15 Oct 2010 at 9:02

@GoogleCodeExporter
Copy link
Author

Original comment by mdmetzle@gmail.com on 15 Oct 2010 at 9:59

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Original comment by mdmetzle@gmail.com on 15 Oct 2010 at 11:23

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Original comment by mdmetzle@gmail.com on 17 Oct 2010 at 4:29

  • Added labels: Milestone-Release1.0

@GoogleCodeExporter
Copy link
Author

Original comment by mdmetzle@gmail.com on 21 Oct 2010 at 2:23

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant