FM Header Definition Macro

DEFINE_FM_HEADER

Simplifies the definition of the FM header structure and also ensures that the header is placed in the appropriate location in the FM binary image.

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

Synopsis
#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 ctfm)
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.