Project Files#
This section lists various files that are created in and used by a Zigbee application project.
Project Configuration File#
<project_name>.slcp
This is the top-level project configuration file.
Application Source Files#
Any number of C files in the project’s top directory can be created. The only requirement is that an implementation of main()
must be present in one of these files.
Makefiles#
Makefiles are generated into the project directory by the Project Configurator when using the GCC compiler. Wth IAR, an .ewp project file is generated instead of makefiles.
ZCL-Generated Files#
Generated files reside in the project’s autogen directory. You should never modify them manually because manual changes are erased with every re-generation. ‘zap’ stands for ZCL Advanced Platform. This partial list discusses the generated files that you might need to refer to for various definitions and declarations:
zap-command.h: Generated macros for producing client-side command payloads prior to sending them out over the air; also contains prototypes for the server-side command handlers.
zap-config.h: A generated file that configures the Zigbee Application Framework's static data structures. This allows attribute metadata to be shared across endpoints and each endpoint to have its own space for attribute storage. The #defines in the zap-config.h file are used by the app/framework/util/attribute-storage.c file to configure all the application’s attribute-related data. It also contains information about command discovery, based on the selection of incoming and outgoing for commands in the Zigbee Cluster Configurator. See AN1325: Zigbee Cluster Configurator User's Guide for more information.
zap-id.h: This file contains all the static IDs for various ZCL entities such as cluster IDs, attribute IDs, and others.
zap-tokens.h: If you are including any attributes in tokens (persistent memory) for a platform that supports tokens, this file is generated by Project Configurator to configure your token storage.
zap-type.h: This file contains all the type definitions for the ZCL—enums, structs, and other entities that are created from XML files.