Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
SimpleNodeInfoDefs.hxx
Go to the documentation of this file.
1
35#ifndef _OPENLCB_SIMPLENODEINFODEFS_HXX_
36#define _OPENLCB_SIMPLENODEINFODEFS_HXX_
37
38#include <inttypes.h>
39
40namespace openlcb
41{
42
46{
47 const uint8_t version;
48 const char manufacturer_name[41];
49 const char model_name[41];
50 const char hardware_version[21];
51 const char software_version[21];
52};
53
57{
58 uint8_t version;
59 char user_name[63];
60 char user_description[64];
61};
62
63static_assert(sizeof(struct SimpleNodeDynamicValues) == 128,
64 "SNIP dynamic file is not of the right size in your compiler");
65
66static_assert(sizeof(struct SimpleNodeStaticValues) == 125,
67 "SNIP static file is not of the right size in your compiler");
68
74extern const char *const SNIP_DYNAMIC_FILENAME;
75
76} // namespace openlcb
77
78#endif // _OPENLCB_SIMPLENODEINFODEFS_HXX_
const SimpleNodeStaticValues SNIP_STATIC_DATA
This static data will be exported as the first block of SNIP.
const char *const SNIP_DYNAMIC_FILENAME
The SNIP dynamic data will be read from this file.
Structure representing the layout of the memory space for Simple Node Identification user-editable da...
Structure representing the layout of the memory space for Simple Node Identification manufacturer-spe...