FM Header Definition Macro

The FM header contains information which is used at runtime and must be present in all FMs.

The use of the DEFINE_FM_HEADER macro simplifies the definition of FM header structure and also ensures that the header is placed in the appropriate location in the FM binary image.

#include <mkfmhdr.h>
 

Usage

DEFINE_FM_HEADER(FM_NUMBER, FM_VERSION, FM_SERIAL_NO, MANUFACTURER_ID, PRODUCT_ID);

FM_NUMBER: Must be the manifest constant FM_NUMBER_CUSTOM_FM in this software version.

FM_VERSION: A 16 bit integer, of the form 0xmmMM, where mm is the minor number, and MM is the major number (It is displayed as VMM.mm in ctconf). Example: V1.0f . is encoded as 0x0f01.

SERIAL_NO: An integer representing the serial number of the FM.

MANUFACTURER_ID: A string of at most 32 characters, which contains the manufacturer name. This does not need to be NULL terminated.

PRODUCT_ID: A string consisting of a maximum of 16 characters, which contains the FM name. This does not need to be NULL terminated.