libtropic
C library for TROPIC01 chip
|
Welcome to the documentation page for libtropic, the official C library for TROPIC01 chip. This guide will help you get started with building applications using TROPIC01 and libtropic.
For detailed information about the libtropic library architecture and development, please refer to the contributors section.
TROPIC01 is currently available in three forms:
Samples can be requested through our website. Visit tropicsquare.com/tropic01-samples for more info.
PCB modules are available as Secure Tropic Click through our external partner MIKROE's webshop.
To order, visit mikroe.com.
You can interface Secure Tropic Click with your platform over SPI bus using a breadboard or wires. Additional conversion PCBs are available on the MIKROE website, including an arduino form factor extension board.
Designed for evaluation on systems where SPI is not available.
Please visit tropicsquare.com, sign-up and check availability.
We provide standalone compilable example projects for platforms of our choice:
Integration example for STM32 is available through this repository and contains code for:
For unix based examples we have cmd line utility
called libtropic-util.
This is Unix program to test API calls against TROPIC01, works for:
How can you add libtropic to your existing project?
We recommend to add libtropic as a submodule. Libtropic uses CMAKE build system, therefore it could be added to compilation of existing cmake projects in a following way:
Please note that exact cmake calls depend on configuration of a project into which libtropic is being added. For more inspiration have a look into integration examples.
Libtropic is configurable with cmake options. They are either passed from parent project's CMakeLists.txt, or over prompt when building is invoked.
We provide following examples:
hello world
: Demonstrates basic usage of libtropic.fw update
: Shows how to update TROPIC01's internal firmwarehw wallet
: Example of how a generic hw wallet project might integrate TROPIC01Mac and Destroy
: Example of usage of Mac and Destroy pin verification engineIn order to have examples exposed in your parent project, libtropic must be compiled with following CMake switches: