09.11.2012 Views

Contents - Raspberry PI Community Projects

Contents - Raspberry PI Community Projects

Contents - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ilclient helper library<br />

This library is described as: This A<strong>PI</strong> defines helper functions for<br />

writing IL clients.<br />

*<br />

* This file defines an IL client side library. This is useful when<br />

* writing IL clients, since there tends to be much repeated and<br />

* common code across both single and multiple clients. This library<br />

* seeks to remove that common code and abstract some of the<br />

* interactions with components. There is a wrapper around a<br />

* component and tunnel, and some operations can be done on lists of<br />

* these. The callbacks from components are handled, and specific<br />

* events can be checked or waited for.<br />

*/<br />

Libraries<br />

libbcm_host<br />

bcm_host is the Broadcom hardware interface library.<br />

vc_dispmanx_*<br />

Dispmanx is a windowing system in the process of being deprecated in favour of<br />

OpenWF (http://www.khronos.org/openwf/) (or similar), however dispmanx is still used<br />

in all A<strong>PI</strong> demos and it's replacement may not yet be available. [1] (confirmation<br />

required?)<br />

vc_tvservice_*<br />

These A<strong>PI</strong>s allow controlling the HDMI and SDTV video outputs of the <strong>Raspberry</strong> Pi, as<br />

well as allowing the user to query the supported HDMI resolutions and audio formats and<br />

turn on/off copy protection. The <strong>Raspberry</strong> Pi can only have one output active at a time -<br />

turning on the HDMI automatically turns off the SDTV and vice-versa. However either<br />

can be turned off using the vc_tv_power_off() function.<br />

The header file vc_tvservice.h (https://github.com/raspberrypi/firmware/blob/master/opt/<br />

vc/include/interface/vmcs_host/vc_tvservice.h) documents the functions quite well via<br />

comments above each prototype function, however before any of these functions will<br />

succeed you must initialise the connection to the host A<strong>PI</strong> like so:<br />

void tvservice_init() {<br />

VCHI_INSTANCE_T vchi_instance;<br />

VCHI_CONNECTION_T *vchi_connections;

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

Saved successfully!

Ooh no, something went wrong!