Veethree D7 SDK
Loading...
Searching...
No Matches
CT2KLib compatibility library overview

Introduction

CT2KLib is Veethree's library that implements support for the J1939 and NMEA 2000 protocols. Its documentation can be found here.

This compatibility library provides the functions necessary for initializing CT2KLib on the D7.

Key features

  • Provides CT2KLib as a CMake interface library, so linking against vsdk::ct2klib_compat (e.g. target_link_libraries(${APPNAME} PRIVATE vsdk::ct2klib_compat)) will also link libCT2KLib.a in the resulting binary.
  • Encapsulates the CAN functionality of vsdk::comms such that it can be used by CT2KLib applications.

Architecture

The compatibility library only contains one class vsdk::ct2klib_compat::ct2klib with static functions that need to be given to CT2KLibInitEx.

See the CT2KLib Compatibility Library Example page for an example of a simple CLI application that initializes CT2KLib and sets up handlers for a few PGNs using CT2KLib.