Creation of message header file for my_example
To generate the run-time catalog, use the runcat command
as follows:
runcat my_example my_example.msg
This generates the my_example_msg.h header file, as shown
in the following section. Note that the set mnemonic is
MS_MY_EXAMPLE
and
the message mnemonics are CANTOPEN
, BYTECNT,
and CHARCNT
.
These mnemonics are used in the programs in this appendix./*
** The header file: my_example_msg.h is as follows:
*/
#ifndef _H_MY_EXAMPLE_MSG
#define _H_MY_EXAMPLE_MSG
#include <limits.h>
#include <nl_types.h>
#define MF_MY_EXAMPLE "my_example.cat"
/* The following was generated from my_example.msg. */
/* definitions for set MS_MY_EXAMPLE */
#define MS_MY_EXAMPLE 1
#define CANTOPEN 1
#define BYTECNT 2
#define CHARCNT 3
#endif