Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
DefaultCdi.cxx
Go to the documentation of this file.
1
37#include <unistd.h>
38#include <stdint.h>
39
40namespace openlcb {
41
42extern const uint16_t __attribute__((weak)) CDI_EVENT_OFFSETS[] = {0};
43
44extern const char __attribute__((weak)) CDI_DATA[] =
45R"cdi(<?xml version="1.0"?>
46<cdi xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://openlcb.org/schema/cdi/1/1/cdi.xsd">
47<identification/>
48<acdi/>
49<segment origin='0' space='252'>
50 <group>
51 <name>Manufacturer Information</name>
52 <description>Manufacturer-provided fixed node description</description>
53 <int size='1'>
54 <name>Version</name>
55 </int>
56 <string size='41'>
57 <name>Manufacturer Name</name>
58 </string>
59 <string size='41'>
60 <name>Node Type</name>
61 </string>
62 <string size='21'>
63 <name>Hardware Version</name>
64 </string>
65 <string size='21'>
66 <name>Software Version</name>
67 </string>
68 </group>
69</segment>
70<segment origin='0' space='251'>
71 <group>
72 <name>User Identification</name>
73 <description>Lets the user add his own description</description>
74 <int size='1'>
75 <name>Version</name>
76 </int>
77 <string size='63'>
78 <name>Node Name</name>
79 </string>
80 <string size='64'>
81 <name>Node Description</name>
82 </string>
83 </group>
84</segment>
85</cdi>
86)cdi";
87
88
89} // namespace openlcb
const char CDI_DATA[]
This symbol contains the embedded text of the CDI xml file.
const uint16_t CDI_EVENT_OFFSETS[]
Contains an array describing each position in the Configuration space that is occupied by an Event ID...