API implementation overview

Implementing the API for a service includes:

Create the following files when implementing the service API:

File

Description

xxxapi.c

Implements the service API by calling the corresponding SPI function and handling API errors.

xxxdef.h

Contains API prototypes, event and error definitions, and public data structures.

xxxparm.pf

ASCII definition of each parameter and hierarchical structure.

xxxparm.c

Parameter source file automatically generated from xxxparm.pf.

xxxparm.h

Parameter header file automatically generated from xxxparm.pf.

xxxsys.h

Internal header file containing API command codes.