Home
SDK User manual PDF PDF Document
Contents
1. Build targets Files Ey Cancel Custom Usertemplates Console application KAntrak 3700 Project View as Large icons List TIP Try right clicking an item 1 Select a wizard type first on the left 2 Select a specific wizard from the main window filter by categories if needed 3 Press Go Figure 13 Creating a new KAntrak application 2 Follow on screen instructions to create application IMPORTANT NOTE All projects and source code should be created and saved into your shared folders on your host PC media sf_FolderName XxxXxX This will avoid any data lost when updating Kongsberg KAntrak 3700 SDK virtual machine Please select the folder to create your project in Places Name vy Size Modified Q Search igi sSF_Documents 12 03 17 Recently Used user Hi Desktop File System W Music m Pictures B Videos E Downloads Remove Figure 14 Media folder September 29 2012 PO4050A00 Page 23 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide Code blocks build targets Debug KAntrak Simulator Run locally within KAntrak 3700 simulator with debug symbols and without optimisation Release KAntrak Simulator Run locally within KAntrak 3700 simulator without debug symbols and with optimisation Debug KAntrak 3700 Run on KAntrak 3 700 hardware with debug symbols and without optimisation Release KAntrak 3700 Run on KAntrak 3 700 hardware without debug symbols and with optimisation 8 2
2. image clutter actor get width default stage f 2 clutter actor get width image f 2 F tn n g in f Add image to default stage i e the main screen clutter container add actor CLUITER CONTAINER default stage image Everything is loaded and initialised show main screen clutter actor show default stage Figure 9 Loading an image September 29 2012 P04050A00 Page 16 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide Step by step 1 Initialize Clutter library 2 Initialize KAntrak display 3 Get KAntrak main screen stage 4 Load a PNG image into a clutter texture 5 Move image in the X axis to center 6 Add image to main screen 7 Show main screen Example references clutter_init Initialize Clutter library docs clutter clutter General html kdisplay_ init Initialize KAntrak 3700 display docs klib kdisplay 8h html kdisplay_stage_get_default Get main screen stage from docs klib kdisplay 8h html KAntrak library clutter_texture_new_from_file Load a PNG file into Clutter docs clutter ClutterTexture html texture clutter_actor_set_x Set image position in the X axis docs clutter ClutterActor html O value is the left side of the screen clutter_container_add_actor Add texture to main screen docs clutter ClutterContainer html clutter_actor show Display main screen docs clutter ClutterActor html September 29 2012 PO4050A00 Page 17 of 27 WS KONGSBERG AUTOMOTIVE
3. Data folder All data for application like gauge images screen background icons and configuration files must be located into the data folder contained of the code project in order to be installed on KAntrak e This folder is automatically created when using the KAntrak 3700 project wizard e Using build targets Debug KAntrak 3700 and Release KAntrak 3700 this folder and all its subfolders will be copied into KAntrak 3700 storage and available for your application e In your code to refer to your files uses relative path data Xxxx September 29 2012 PO4050A00 Page 24 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide 8 3 Simulator The KAntrak 3700 simulator starts automatically when running target is Debug KAntrak Simulator or Release KAntrak Simulator KA M ELT G SCALE FLIP Y ir MOVE X OPACITY L Figure 15 KAntrak 3700 simulator e Mouse click on simulator keypad button will emulate KAntrak 3700 keypad events for button 1 to 5 e Numbers 1 to 5 on your PC keyboard emulate KAntrak 3700 keypad events for button 1 to 5 September 29 2012 PO04050A00 Page 25 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide 9 KAntrak 3700 application examples Into the SDK root folder you will find a folder name examples with KAntrak 3700 application examples Open it and run it via your shared folder image Demonstrate how to load an image center and display
4. Events are registered at startup and are processed automatically in a main loop Block and process events Figure 5 KAntrak 3700 event based framework More information on main loop processing can be found at docs glib glib The Main Event Loop html September 29 2012 P04050A00 Page 8 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide 7 1 KAntrak library The KAntrak library KLIB gives access to KAntrak 3700 devices and provide some utilities methods to facilitate software development Header files can be found into k ib folder and sources documentation is located in docs klib folder of the SDK docs klib index html File Description Usage examples Name kdisplay h Methods related to LCD peripheral examples image main c management examples round_gauge main c kkeypad h System keypad management methods klib kkeypad h examples round_gauge screen c kled h System keypad LED management methods examples round_gauge screen c kcamera h System camera management methods Note camera not available in simulator mode Methods used for CRC calculation klib kerc h kiirfilter h Methods used for low pass IIR filter klib kiirfilter h processing definitions and methods fish Boredom sere KAntrak 3700 product information method CF September 29 2012 PO4050A00 Page 9 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK isas Gide 7 1 1 KDISPLAY Supports all KAntrak 3700 display functionalities e Initialize displa
5. KAntrak 3700 SDK eaveGuide 7 2 6 Creating and animating a gauge To create and animate a simple gauge developer needs to create a group load a background and a needle image in PNG format then animate needle Main references docs clutter ClutterT exture html docs clutter ClutterActor html Example from examples round_gauge round_gauge c 1 Load a PNG images into textures j Create a group for the gauge This is useful to show and animate both gauge background and needle at the same time new round gage gt group clutter group new Load gauge background image file new round gage sbackground clutter texture new from file background image amp error if new round gage gt background i g critical gauge init unable to load gauge background image s error gt message g free new round gage return NULL Set gauge background opacity to 255 i e opaque clutter actor set opacity new round gage gt background 253 Add background to gauge group clutter container add actor CLUTTER CONTAINER new round gage sgroup new round gage gt background Load needle background image file new round gage sneedle clutter texture new from file needle image amp error if new round gage gt needle i g critical gauge init unable to load needle image 3 error gt message g free new round gage return NULL Add needle to gauge group clutter container
6. a general purpose and portable utility library which provides many useful data types macros type conversions string utilities file utilities thread etc for C programming KAntrak 3700 SDK and Clutter uses GLib for all data types We encourage using Glib to facilitates your application development Supported version API documentation can be found into the docs glib subfolder of the SDK docs qglib index html 7 3 1 Main functionalities Name OO een Dcumentation GType Portable types docs qlib glib Basic Types html GList GSLit Generic single and double linked docs glib glib Singly Linked list methods Lists html docs qlib glib Doubly Linked Lists html Timer methods ocs qlib glib Timers htm File reading writing methods docs glib glib File Utilities htm GHastable Hashtable methods ocs glib glib Hash Tables html GThread Thread methods docs qlib glib Threads html GKeyFile INI configuration file methods docs qlib glib Key value file parser html GSlice Memory allocator methods docs qlib glib Memory Slices html 7 3 2 Additional GLib resources e http developer gnome org glib 2 28 index html September 29 2012 PO4050A00 Page 22 of 27 AK KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide 8 KAntrak 3700 application 8 1 Creating a new application 1 In Code blocks from the File gt New gt Project menu select Kantrak 3700 Project New from template Category lt All categories gt
7. it Demonstrate KAntrak display usage round gauge Demonstrate KAntrak display usage Demonstrate Keypad usage Demonstrate Keypad LED usage Demonstrate on to display text Demonstrate how to add and place a gauge image into screen Demonstrate how to set background color and image Demonstrate how to animate gauge scaling rotation moving opacity September 29 2012 PO04050A00 Page 26 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide 10 Licenses 10 1 Clutter 10 1 1 Software GNU Library General Public License GNU LGPL 2 1 http Awww gnu org licenses Igpl 2 1 html 10 1 2 Documentation Copyright 2006 2007 2008 OpenedHand LTD Copyright 2009 2010 Intel Corporation Permission is granted to copy distribute and or modify this document under the terms of the GNU Free Documentation License Version 1 1 or any later version published by the Free Software Foundation with no Invariant Sections no Front Cover Texts and no Back Cover Texts You may obtain a copy of the GNU Free Documentation License from the Free Software Foundation by visiting their Web site or by writing to The Free Software Foundation Inc 59 Temple Place Suite 330 Boston MA 02111 1307 USA 10 2 GLib GNU Library General Public License GNU LGPL http Awww gnu org licenses Igpl html September 29 2012 PO4050A00 Page 27 of 27
8. IN we ec yo dace Sepa eae A N dE 16 7 20 CYEOUNG and AMMAN G COUTO osoei sheni sp e a eiea oe hear pIe aei a Oeean earen 18 Laid PUPIL OI IS resco titans ed E AIGA A 20 7 2 8 Addilanal Culler TCS OUT CON osrin a aia 21 7 3 E E i E EE NE we otto ane EA E EEA TE EATA EE E E EEE ATEST 22 7 3 1 Main FU CHONG ILLS sie act neS oe En rnea NEEE Near aaa ise isa sigs 22 laa AG AIMONAL GLAD VESOUICCS oorsee TEOT 22 8 KANTRAK 3700 APPLICATION esesesesssscscseseseseseseseseseosososcscsesoseseseseseosoeosososcscseseseseseseosssoscsososesesesesesesessseoe 23 8 1 CREATING A NEW APPLICATION 0cccseccsccceccscccsccceccscccsccecccsscesccesccsccesscesccssecssceeccscesscecscscasseeseesceassceeceuecs 23 8 2 Ue MR ae ceric Barston ed EE 24 8 3 RD UO arrears eters sss i earn acre pace sc eet sts sc See acsecs ete en sete edit teeta tues eesanrecieee 25 9 KANTRAK 3700 APPLICATION EXAMPLES 2 cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccceccocces 26 10 LICENSES oere E TE O EEE EEE E EEA 27 OT E e E obese aise tatusnc dao eaatuc du aaseea restate cssann te eta ree eceenes 27 LU ES O eRe eee TNE RTE eee eT Tee ME mere T TE Tee mM Re My ee ne ae em mee ar 10 1 2 DOCUMENTATION 0 cece cece ccc cc ccc cceccccccucuccccuccecuccecucaecucuccucuecucuscecuececucuecucuscusaecusuecucuececaseecuscscseecesaecusueeess 27 WO ACE aes eas ere E acral anna pence dsm cae sete elders nao eteene seeded 27 September 29 2012 P04050A00 Page 2 o
9. KAntrak 3700 Software Development Kit User s Guide P04050A00 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide Table of Content 1 INTRODUCTION e eseseesesesesesesesesesscssosososcsesosesesesesessosososcsesesesesesesesessssosososcseseseseseseseosososososcsesesesesesesessssssososeseso 3 2 HARDWARE SYSTEM at occas ess ENEAN AREEN EENEN sauuseedieceeteacees 3 3 KANTRAK 3700 CONNECTIONS cccccccccccccccccccccccccccccccccccccccccccccccccccccsccccccccccccccccscccccccccesceccccoccocces 4 d TEATU asses cetacean E E E 5 S3 PDE PACEA a E E 5 O DEYELOPMENT PROCESS wiiccicccxeccccssccccereccecccicsceiciseancnccadeceaciccavcccesdaneaciesexanseaasceasacdswecstucsctiwiseautaccsasiensiceaced 6 Te SOFTWARE PLATFORM cierna ee rn rr er EANNAN 7 7 1 EAr A e Sige str ears areca ge rence seers pe aac at aes sep neers dscns esac dessa 9 7 1 1 TTA apes isan A et wales aaah lla eawttal bs ough Gseaenatiesatuneuatin siataninadas 10 7 1 2 TTD act anos aicartisntns a gen cadets anne arta a O 10 72 CLUTTER een epee cere cece crag reseed mia hen tergni rate an aera ena tet centeanasaeeentoe eo antaeamraennieceaueaeecuenaioetoniees 12 Tod UIE FE UOMO OS at canst tc ter at E E rs gatos a eee 12 Toe SU POr CEE MN MACC TO MUL AR a nO OP Tene Penne ee Ene ne near 12 7 2 3 DANO GONE DOS TOO in acct eset asta ate es aa eto na clea ac a te E ena tenee 13 7 2 4 lE o a ee et eee E A ee ee ee ne A ee ee 14 ey ee DTI ate ee cee ae I I O a eee E
10. UTTER EASE OUT ELASTIC 1 0 1 0 b Pa i j NULL E in in tn tn in in tn h ti Ra Start animation clutter animator start animation Figure 12 Clutter animation scale in and out September 29 2012 PO4050A00 Page 20 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide Step by step 1 Allocate a new animation 2 Set animation duration in ms 3 Set scaling from the center of the image 4 Define animation At animation start time 0 0 set X and Y scales to original scales 1 0 At animation middle time 0 5 set X and Y scales to half 0 5 At animation end time 1 0 set X and Y scales to original scales 1 0 4 Start animation Example references clutter_animator_new docs clutter ClutterAnimator html clutter_animator_set duration Set animation duration docs clutter ClutterAnimator html clutter_actor set_scale_with gravity Set scaling point in the middle docs clutter ClutterActor html of the image clutter_animator_set docs clutter ClutterAnimator html clutter_animator_start Start animation docs clutter ClutterAnimator html 7 2 8 Additional Clutter resources e https clutter project org http developer gnome org clutter 1 8 http tuxradar com content clutter beginners tutorial http www openismus com documents clutter_tutorial 0 8 docs tutorial html September 29 2012 PO4050A00 Page 21 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide 7 3 GLib GLib is
11. add actor CLUITER CONTAINER new round gage gt group new round gage sneedle Add gauge group to default stage i e the main screen clutter container add actor CLUITER CONTAINER default stage new round gage gt group Figure 10 Clutter gauge loading image September 29 2012 PO4050A00 Page 18 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide Step by step 1 Create a clutter group to be able to manipulate background and needle image at the same time For example if you want to rotate or move the entire gauge you only need to manipulate the group 2 Load background PNG image into clutter texture 3 Add background texture to the gauge group 4 Load needle PNG image into a clutter texture 5 Add needle texture to the gauge group 6 Add the gauge group to the default stage i e the main screen 2 Rotating needle From examples round_gauge round_gauge c void round gauge set value round gauge t gauge guintl raw value gintl6 rotation point if gauge return Interpolate value rotation point kmath interpolation guintl ginti6 gauge sneedle raw value min max gauge sneedle angle min max sizeof raw value raw value Set needle angle clutter actor set z rotation from gravity gauge sneedle rotation point CLUTTER GRAVITY CENTER j Figure 11 Clutter gauge rotating needle Step by step 1 Calculate rotation value depending on raw value see klib
12. break default return Figure 6 Keypad example Step by step 1 Initialize keypad device and set callback function 2 Process keypad event and print a message 3 Close keypad device on exit Example references Function name Description Documentation kkeypad_init Initialize keypad device and set docs klib kkeypad_ 8h html event callback function kkeypad_close Close keypad device docs klib kkeypad_ 8h html September 29 2012 PO4050A00 Page 11 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide 7 2 Clutter Clutter is a software library that uses OpenGL ES 2 0 for rendering but wraps an easy to use and flexible API around GL s complexity KAntrak 3700 SDK uses Clutter for all graphics and 3D effects Supported version API documentation can be found into docs clutter folder of the SDK docs clutter index html IMPORTANT NOTE Some display functions have been overloaded by the SDK to ensure proper operation in all build target types Please see k ib kdisplay h for further information and the list of mandatory usage functions 7 2 1 Main functionalities OO oone OO een Documentation Clutter Texture Loading images methods docs clutter ClutterTexture html ClutterActor Moving rotating sizing scaling docs clutter ClutterActor html images text methods ClutterText Text methods docs clutter ClutterText hAtm ClutterAnimation Animation methods docs clutter ClutterAnimator html ClutterGroup Gro
13. d Italic use LiberationSans in code Serif Regular Italic Bold Bold Italic use LiberationSerif in code More fonts will be added to the platform in future release September 29 2012 PO04050A00 Page 15 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK 7 2 5 Image User s Guide To load an image you need to create a clutter texture ClutterTexture from a PNG file contained in your data folder and add it to the main screen i e the KAntrak default stage Main reference docs clutter ClutterT exture html Example from examples image main c f Initialize graphical library if clutter _ init argc amp argyvy CLUTTER INIT SUCCESS i 23 g critical main unable to init graphical library 24 return 1 25 26 f Initialize FAntrak display if kdisplay init g critical main unable to init kantrak display return l1 sal Get default stage from Kongsberg KLIB library i this is mandatory for a proper execution in both simulator and kantrak i default stage kdisplay stage _get_defauit if default stage 40 41 g critical main unable to get default stage 42 return 1 43 45 f Load image file image clutter texture new from file data image png NULL 1 image g critical main unable to load image return i A Agp ai A EL ad aL t cr j in in in Center image in the x axis in main screen clutter actor set x
14. f Set font and text screen text clutter text new with text LiberationSans Bold 12 E DATE FETTO V Lmao Tr ei p E F T E oh ae oe iat i IF DOLT TY J k de Ealer e e e r clutter text set _color CLUTTER TEXT screen text clutter color get_static CLUTTER COLOR WHITE f Add text actor to default stage i e the main screen clutter container add actor CLUTTER CONTAINER default stage screen text clutter actor set y screen text 256 return IRUE Figure 8 Displaying text Step by step 1 Get KAntrak main screen stage 2 Create a text box with LiberationSans bold font size 12 3 Set text color to white 4 Add text to main screen stage 5 Set text y position at bottom screen September 29 2012 PO4050A00 Page 14 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide Example references Function name Description Documentation kdisplay_stage_get_default Get main screen stage from docs klib kdisplay 8h html KAntrak library clutter_text_new_with_text Create a new text box docs clutter ClutterText html clutter_text_set_color Set text color docs clutter ClutterText html clutter_container_add_actor Add text to main screen docs clutter ClutterContainer html clutter_actor_set_y Set text position in y axis docs clutter ClutterActor html Available fonts Mono Regular Italic Bold Bold Italic use LiberationMono in code Sans Serif Regular Italic Bold Bol
15. f 27 WS KONGSBERG AUTOMOTIVE 1 Introduction KAntrak 3700 SDK User s Guide This manual is intended to explain the basics of the KAntrak 3700 SDK This should be interpreted as a good start point for a designer having to develop his own application as well as doing field support The user must be aware that understanding the following concepts requires a minimum skill level in embedded systems and related software development tools Thus the following sections will not explain in depth the functionality of third party tools but will mainly deal with the KAntrak 3700 system particularities You are also welcome to start your application using the supplied code while respecting the license agreement see Quick Start Guide 2 Hardware System The circuit board can be divided in different blocks as shown in the next diagram 12 24 V Power gt Color Graphic LCD 480 x 272 LCD Backlight driver Supply Protection and Regulator Keypad LED driver Keypad buttons September 29 2012 Parallel GPIO interface Optional interface GPIO 1 GPIO 2 y GPIO 3 Video y Video transcoder IS011898 interface IS011898 interface Input I2C interface CAN Controller Keyboard D Interface Q O CAN Controller USB Controller sD gt O Q GPS receiver Controller UART Bluetooth Figure 1 Software platform b
16. kmath h 2 Set image rotation from center point in the Z axis September 29 2012 PO4050A00 Page 19 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide Example references clutter_group_ new Initialize Clutter library docs clutter ClutterGroup html clutter_texture_new_from_file Load a PNG file into docs clutter ClutterTexture html Clutter texture clutter_container_add_actor Add texture to main docs clutter ClutterContainer html screen kmath_interpolation_guint16_gint16 Translate and interpolate docs klib kmath 8h html raw value to a rotation point clutter_actor set_z_ rotation _from_gravity Display main screen docs clutter ClutterActor html 7 2 Animations Clutter provides an easy way to make 3D animation Main reference docs clutter ClutterAnimator html Example from examples round_gauge animations c here is a simple scale in and out animation animation clutter animator new Set animation duration clutter animator set duration animation interval Set scaling in the center clutter actor set scale with gravity actor oy Oo D CLUTTER GRAVITY CENTER m F wm 6 Scale up and down actor clutter animator set animation actor scale x CLUITER LINEAR actor scale y CLUTTER LINEAR Hi b actor scale CLUTTER LINEAR actor scale y CLUTTER LINEAR actor scale x CLUTTER EASE OUT ELASTIC 1 0 1 0 actor scale y CL
17. lock diagram P04050A00 Camera NTSC PAL Vehicle Network Vehicle Network Page 3 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK 3 KAntrak 3700 Connections Figure 2 KAntrak 3700 connections 1 Micro SD port 2 Mini USB port 3 Deutsch 12 way connector 1 2 3 4 5 6 T 8 9 1 Power ve Power ve CAN HI 1 CAN LOW 1 Configurable I O 1 Configurable I O 2 CAN LOW 2 CAN HI 2 Ignition input 0 Configurable I O 3 or LIN Bus optional 11 Video In 12 Video In September 29 2012 PO4050A00 User s Guide Page 4 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide 4 Features Faw i Deripon Storage Fah J1939 NMEA200 SAE J1939 NMEA2000 Data Link Layers J1939 21 and Network Management functions J1939 81 Configurable I O 3 2 Full 1 Limited 5 SDK package Included in the SDK package Folder Description S examples KAntrak 3700 application examples docs Libraries documentation virtual machine KAntrak 3700 Oracle VirtualBox virtual machine klib KAntrak 3700 library header files RELEASE NOTES txt KAntrak 3700 SDK release notes September 29 2012 P04050A00 Page 5 of 27 AK KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide 6 Development process Typical software development process with the KAntrak 3700 SDK involve two entities industrial or graphic designer and a software designer At first industrial
18. or graphic designer creates screen layout gauges and export it in the form of image files PNG Subsequently the software designer import it into the application animate it and connect gauges to live data Example an industrial designer created this screen layout and exported all gauges and needle into separated PNG image files The software designer took the gauges images animated needles and connected it to the live data Figure 3 Screen layout September 29 2012 PO4050A00 Page 6 of 27 a KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide Software Platform This section describes the software platform architecture A particular care has been taken to make the software development as easy as possible Figure 4 shows a block diagram of the implemented architecture We will explain in more details the purpose of every block in the following sub sections APPLICATION Future release GL ee TI CA U Figure 4 Software platform block diagram Main features e KAntrak 3700 uses Clutter graphical library for all 3D effects and image manipulation e KAntrak library provides access to devices like display keypad keypad LED camera and some utilities methods e GLib is included in the SDK to provide additional data types files utilities thread etc September 29 2012 PO4050A00 Page 7 of 27 AK KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide e The KAntrak 3700 SDK is built upon an event based framework
19. uping methods docs clutter ClutterGroup html Please refer to documentation for more functionalities docs clutter index html 7 2 2 Supported image format e Only Portable Network Graphics PNG image format is supported by KAntrak 3700 SDK e KAntrak 3700 resolution is 128 pixels per inch PPI September 29 2012 PO4050A00 Page 12 of 27 AK KONGSBERG AUTOMOTIVE KAntrak 3700 SDK User s Guide 7 2 3 Image text positioning Here is a representation of the three axis in the KAntrak display The origins are in the left top corner of the display 0 0 0 Figure 7 KAntrak display axis Here are main methods to position an image or a text field into the display Function name Description Documentation clutter_actor set_x Set text image position in x axis docs clutter ClutterActor html clutter_actor_set_y Set text image position in y axis docs clutter ClutterActor html September 29 2012 PO4050A00 Page 13 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK ieaveGuide 1 2 4 Text To display text use ClutterText Main reference docs clutter ClutterText html Example from examples round_gauge screen c Static gboolean screen text bottom set void I all ch a Co Co j ClutterActor default stage 3 Le cea i Lo Le cea O PF I Get default stage from Kongsberg KLIE library this is mandatory for a proper execution in both simulator and kantrak default stage kdisplay stage get default
20. y environment e Methods for setting and getting LCD backlight value e Method for getting LCD temperature Main reference docs klib kdisplay _8h html 7 1 2 KKEYPAD Supports for KAntrak keypad events Main reference docs klib kkeypad 8h html Example from klib kkeypad h gint main gint argc gchar argv tid PA f Initialize graphical library if clutter init amp argc targv CLUITER_INIT SUCCESS he g critical main return 1 Lo Co D L0 iD W iD 0 ip up LA Initialize KAntrak display if tkdisplay init Q critical main return 1 f Initialize keypad and get callback funtion if kkeypad init keypad hit cb g critical mMain unable return 1 io M e Wait for events 7 CA clutter main f Close keypad kkeypad close return 0 September 29 2012 PO04050A00 Page 10 of 27 WS KONGSBERG AUTOMOTIVE KAntrak 3700 SDK eave Guide Print keypad key and state switch key case KKEYPAD KEY1 gq debug KEY 1 3 state KKEYPAD KEY PRESSED break case KKEYPAD KEYZ g debug KEY 2 3 state KKEYPAD KEY PRESSED break case KKEYPAD KEY3 gq debug KEY 3 a atate KKEYPAD KEY PRESSED break case KKEYPAD KEY4 g debug KEY 4 a state KKEYPAD KEY PRESSED pressed released break case KKEYPAD KEYS g debug KEY 5 s state KKEYPAD KEY PRESSED
Download Pdf Manuals
Related Search
Related Contents
Chalet bois en Kit Tao : 70m² - maison bois en kit, Chalet bois en kit Canon F-1 User's Manual GX53 Einbaufassung rund Glas II GX53 recess Zenoah SGCZ2610DL User's Manual Philips SHAVER 9000 SensoTouch 3D Electric shaver HQ9080 Saneamento Ecológico e permacultura em Manual Máquina de Cinta Condiciones de compra Manuel d`utilisation Bloc électrique EBL 99 G Copyright © All rights reserved.
Failed to retrieve file