SmartMesh Library

The diagram below illustrates the software blocks used when creating an application on the 

LTC5800

 chip.

The 

On-Chip Software Development Kit

 comes with pre-compiled libraries which cover the following:

  • Drivers for all devices available on the 

    LTC5800

     chip, which include sensors and miscellaneous devices. All can be accessed by your application through the Device API, abstracting each device as a file which can be opened, closed, read from and written to.
  • Miscellaneous services such as the file system which can be accessed by calling the appropriate functions.
  • The uC/OS-II Operating System which allows your application to create tasks.
  • The 

    SmartMesh network stack

     which is controlled through the local interface.

To simplify development, two modules are provided as source code. You can elect to modify/customize these and include in your project:

  • The CLI module allows your application to quickly add a Command Line Interface (CLI) to your device, i.e. a set of commands the user can type on a serial terminal to interact which a mote connected to a computer.
  • The Local Interface Module which abstracts the Local Interface into simple functions calls.

By convention, the names of the functions defined in the pre-compiled library start with dn_; defines with DN_. The names of the functions defines in the helper modules start with dnm_.

Your application consists of one or more uC/OS-II tasks which can interact with these components

The format of every function you can call, every structure you can create, and every command you can send is documented in the Doxygen-based documentation in the

On-Chip SDK repository

.