crosscontrol CCpilot VS 12” Programmer's Manual

crosscontrol CCpilot VS 12” Programmer's Manual

True sunlight readable, multifunctional 12" display
Hide thumbs Also See for CCpilot VS 12”:

Advertisement

Quick Links

Document revision: C
2018-06-26
CCpilot VS 12"
Programmer's Guide
www.crosscontrol.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CCpilot VS 12” and is the answer not in the manual?

Questions and answers

Summary of Contents for crosscontrol CCpilot VS 12”

  • Page 1 Document revision: C 2018-06-26 CCpilot VS 12” Programmer’s Guide www.crosscontrol.com...
  • Page 2: Table Of Contents

    Trademarks and terms of use ......................19 Revision history Revision Date Author Comments 2017-11-23 Released Chapter on writing Qt full screen applications 2018-05-16 added Removed Qt fullscreen workaround chapter 2018-06-26 (moved to Knowledge Base aritcle on the CrossControl customer support site) www.crosscontrol.com...
  • Page 3: Introduction

    Paths, filenames, definitions. Bolded Command names and important information 1.2. List of abbreviations Application Programming Interface Board Support Package CCAux CrossControl Common Aux Control Light Emitting Diode Main Processor running Linux Operating System Software Development Kit System Supervisor co-processor 1.3. References For further information on the device software and the available APIs see the following references.
  • Page 4: Interfaces

    The CCAux API gives access to several hardware specific interfaces. The API functions of this library are documented in the CCAux API documentation. Table 2 gives a brief introduction on the API’s found therein and their functions. Most API functions can be used from the pre-installed CCSettingsConsole application as well. www.crosscontrol.com...
  • Page 5: Ccaux Api Calling Convention

    M O DUL E H AN DL E p Module = Cro ss Co nt rol: : Get Mod ule ( ); e E rr e rr = Mod ule_ fun c tio n_1 (p Mod ule , a rg , … ) ; M od ule_ rele as e(p Mod ule ); www.crosscontrol.com...
  • Page 6: Telematics Api

    Please refer to the Yocto Project reference manual mentioned earlier for information about required dependencies. 3.2. BSP structure This chapter will go through the structure of the BSP, covering CrossControl specific parts. For other third party components (Qt, OpenEmbedded, Yocto, etc.), please refer to their respective reference documentation.
  • Page 7 Programmer’s Guide 2018-02-26 3.2.1. Apps Contains the source code to CrossControl-developed libraries and applications such as CCAux API library, CCAux daemon, CCLauncher, CCSettingsConsole, CCVideo, Telematic API, etc. 3.2.2. Drivers The drivers folder contains the source code to the following CrossControl-developed drivers: Handles communications between the System Supervisor (SS) and the main processor (MP, i.e.
  • Page 8: Using The Bsp

    CCpilot VS 12” Document revision: C Programmer’s Guide 2018-02-26  Recipes for the CrossControl developed drivers in the drivers folder  Recipe-append to build QtMultimedia with the gstreamer backend  Recipe-append to separate some default Qt applications (calculator for recipes-qt...
  • Page 9: Software Development Kit

    The toolchain included in the SDK is an ARM GNU/Linux cross compiler based on the standard GNU GCC compiler toolchain. Additionally, the SDK contains header and library files for CCAux API and other peripherals. To get the SDK, visit the CrossControl support site. For support on SDK issues, please contact CrossControl directly.
  • Page 10: Using The Sdk

    The header files are located in: <sdk-install-dir>/sysroots/<targetsysroot>/usr/include/ and the libraries are found in these two directories: <sdk-install-dir>/sysroots/<targetsysroot>/lib/ <sdk-install-dir>/sysroots/<targetsysroot>/usr/lib/ These directories are automatically added to the search path when sourcing the environment setup script and don’t need any special consideration. www.crosscontrol.com...
  • Page 11: Debugging Remotely

    Note that it is possible to fully debug the application but not to make system calls made by the application. Such system calls include calls to the soft float library, like divide, add or multiply on floating point variables. It is therefore recommended to use next rather than step when such system calls are being made. www.crosscontrol.com...
  • Page 12: Device Specifics For Ccpilot Vs

    By default, the CAN driver is configured with a transmission buffer that can hold 10 CAN frames. As each frame is sent on the bus, the buffer is cleared. However, it is possible to write frames to the socket faster than the frames are sent, especially if your messages are low-priority frames on a www.crosscontrol.com...
  • Page 13: Analog Video

    Warning: Enabling automatic bus recovery may disturb other nodes on the bus, if CAN interface is incorrectly initialized. 5.2. Analog video For QML applications with analog video, CrossControl recommends using the QtMultimedia framework rather than CCAux API since the video performance is higher and development process quicker. For non-QML applications, CCAux API is recommended.
  • Page 14: Graphics

    Serial number, Firmware version and device type. The sender’s IP address is available in datagram headers. Example data contents (without quotes): “ P R0 1 <tab >1 0. 0. 0< tab >0 ” An example implementation of the data listener is available in the BSP: apps/snb/snb_reader.c. www.crosscontrol.com...
  • Page 15: Examples

    F ro ntL E D_r elea se (pLed ); r et ur n 0 ; Following is an example Makefile that is used to build example. The additional -Wall flag enables all warnings and is recommended. This file can easily be expanded to build more complex applications. www.crosscontrol.com...
  • Page 16 -li nux-g nue abi -c - O2 -pipe -g - fe limi na te - unused -deb ug -t ype s -DL IN UX - W all e x am ple .cp p -o exa mple .o www.crosscontrol.com...
  • Page 17 . exec () ; r et ur n 0 ; Following is an example Qt project file that is used to build example-qt. It can easily be expanded for more complex applications. E x am ple - qt. pro www.crosscontrol.com...
  • Page 18 -li nux-g nue abi -Wl ,- O1 -Wl , -- has h -st yl e= g nu - Wl , -- as - need ed - Wl , -O1 -o e x ampl e -qt e x am ple - qt .o -l cc -a ux2 -lQ t5Widg ets -lQt 5G ui -lQt 5Co re -l E GL - l GL E S v2 -l pt hre ad www.crosscontrol.com...
  • Page 19: Technical Support

    CrossControl. CrossControl respects the intellectual property of others, and we ask our users to do the same. Where software based on CrossControl software or products is distributed, the software may only be distributed in accordance with the terms and conditions provided by the reproduced licensors.

Table of Contents