TI Utilities User's Guide

Table of Contents

1. Overview

The TI-UTILS Component provides a general set of cross-platform libraries that provide common services.

Currently, TI-UTILS contains a JSON library for parsing and building JSON strings, and the Log framework. TI-UTILS will likely expand in the future to include more general-purpose utilities.

2. JSON

The JSON Module was created to provide a portable, general-purpose JSON API that supports building and parsing JSON strings.

2.1 API Reference Guide

The detailed description of the JSON APIs can be found in the API Reference Guide:

2.2 Usage

To use the JSON APIs, the application should include its header file as follows:

#include <ti/utils/json/json.h>

The types available to specify in a JSON template are: int32, uint32, raw, string, and boolean. Usage examples are in the API Reference Guide.

NOTE: Floating point values are not parsed correctly and should likely not be used. This will be fixed in a future release and is tracked by TIUTILS-8.

3. LOG

The Log framework provides an interface for logging and instrumentation of source code. It consists of an API available to use on-target, as well as a collection of host-side tools.

3.1 API Reference Guide

The detailed description of the LOG APIs can be found in the API Reference Guide:

3.2 Usage

To use the LOG APIs, the application should include its header file as follows:

#include <ti/log/Log.h>