Displayport api reference, Using the library, Displayport api reference -1 – Altera DisplayPort MegaCore Function User Manual
Page 102: Using the library -1
DisplayPort API Reference
8
2015.05.04
UG-01131
You can use the DisplayPort IP core to instantiate sources and sinks. Source instantiations require an
embedded controller (Nios II processor or another controller) to act as the policy maker. Sink instantia‐
tions greatly benefit from and may optionally use a controller.
Altera provides software for source and sink instantiations as two system libraries for the Nios II
processor (
btc_dptx_syslib
and
btc
_dprx_syslib
, respectively). The IP core includes an example
main program (
dp_demo_src/main.c
), which demonstrates basic system library use.
Using the Library
The following figure describes a typical user application flow. The user application must initialize the
library as its first operation. Next, the application should initialize the instantiated devices (sink and/or
source), partly in the
btc_dptx_syslib
and
btc_dprx_syslib
data structures and partly in the user
application. You must also implement interrupt service routines (ISRs) to handle interrupts generated by
the DisplayPort core.
When initialization completes, the user application should periodically invoke the library monitoring
function.
Figure 8-1: Typical User Application Flow
Initialize btc_dpxx_syslib
Initialize Source/Sink
Initialize Source/Sink ISR
btc_dpxx_syslib Monitor
©
2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are
trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as
trademarks or service marks are the property of their respective holders as described at
www.altera.com/common/legal.html
. Altera warrants performance
of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any
products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information,
product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device
specifications before relying on any published information and before placing orders for products or services.
www.altera.com
101 Innovation Drive, San Jose, CA 95134