Codegen IR and backend trait¶
The codegen-side IR and the CodegenBackend trait (canopen-eds-codegen (BB_0082)):
naming policy, collision handling, and PDO dedup, decoupled from both
the INI parser and any transport opinion.
The codegen-side IR (an extension of the parser IR with naming /
collision policy applied) and the |
The crate shall define a |
The |
When two EDS files share |
When two or more devices’ PDOs include structurally identical entry layouts (same bit-len + data-type tuple list), the codegen layer shall emit one shared PDO entry struct referenced by both devices rather than two duplicated structs. Structural equality is the dedup key; field names do not need to match. |
The codegen layer shall produce |
The codegen layer shall treat one EDS file as one device.
|