From 0a0b2297025352fa5366d232431a01fe57e84b33 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Tue, 16 Mar 2010 15:16:09 +0100 Subject: Rewrite chip registration. Signed-off-by: Michael Buesch --- README-DEVELOPERS.lyx | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'README-DEVELOPERS.lyx') diff --git a/README-DEVELOPERS.lyx b/README-DEVELOPERS.lyx index 4c64f1d..414c462 100644 --- a/README-DEVELOPERS.lyx +++ b/README-DEVELOPERS.lyx @@ -1,8 +1,9 @@ -#LyX 1.5.5 created this file. For more info see http://www.lyx.org/ -\lyxformat 276 +#LyX 1.6.5 created this file. For more info see http://www.lyx.org/ +\lyxformat 345 \begin_document \begin_header \textclass article +\use_default_options false \language english \inputencoding auto \font_roman default @@ -13,8 +14,10 @@ \font_osf false \font_sf_scale 100 \font_tt_scale 100 + \graphics default \paperfontsize default +\use_hyperref false \papersize default \use_geometry false \use_amsmath 1 @@ -496,19 +499,25 @@ Chip \begin_inset Quotes erd \end_inset --derived class you need to add it to the +-derived class you need to register it. + This is done by calling RegisteredChip(): +\end_layout + +\begin_layout LyX-Code +RegisteredChip(Chip_MyDevice, \begin_inset Quotes eld \end_inset -supportedChips +bitfileID \begin_inset Quotes erd \end_inset - array. +) \end_layout -\begin_layout LyX-Code -supportedChips.append(Chip_MyDevice()) +\begin_layout Standard +The class (_not_ an instance of it) is passed as first parameter. + The ID string of the required bitfile is past as second parameter. \end_layout \begin_layout Subsection -- cgit v1.2.3