|
| 1 | +// Auto-generated PLCopen types from TC6 XML schema |
| 2 | +// DO NOT EDIT - Generated by build script |
| 3 | + |
| 4 | +use serde::{Serialize, Deserialize}; |
| 5 | + |
| 6 | +#[path = "generated_sfc.rs"] |
| 7 | +mod sfc; |
| 8 | +#[path = "generated_variables.rs"] |
| 9 | +mod variables; |
| 10 | +#[path = "generated_body.rs"] |
| 11 | +mod body; |
| 12 | +#[path = "generated_config.rs"] |
| 13 | +mod config; |
| 14 | +#[path = "generated_misc.rs"] |
| 15 | +mod misc; |
| 16 | +#[path = "generated_ladder.rs"] |
| 17 | +mod ladder; |
| 18 | +#[path = "generated_fbd.rs"] |
| 19 | +mod fbd; |
| 20 | +#[path = "generated_datatypes.rs"] |
| 21 | +mod datatypes; |
| 22 | +#[path = "generated_inline.rs"] |
| 23 | +mod inline; |
| 24 | +#[path = "generated_pou.rs"] |
| 25 | +mod pou; |
| 26 | +#[path = "generated_graphics.rs"] |
| 27 | +mod graphics; |
| 28 | +#[path = "generated_addons.rs"] |
| 29 | +mod addons; |
| 30 | +pub use self::{ |
| 31 | + sfc::*, |
| 32 | + variables::*, |
| 33 | + body::*, |
| 34 | + config::*, |
| 35 | + misc::*, |
| 36 | + ladder::*, |
| 37 | + fbd::*, |
| 38 | + datatypes::*, |
| 39 | + inline::*, |
| 40 | + pou::*, |
| 41 | + graphics::*, |
| 42 | + addons::* |
| 43 | +}; |
| 44 | + |
| 45 | +/// Placeholder for xs:any wildcard elements |
| 46 | +/// quick-xml cannot deserialize dynamic element names, so these are skipped |
| 47 | +#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)] |
| 48 | +pub struct AnyElement; |
| 49 | + |
| 50 | +/// elementaryTypes choice group |
| 51 | +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 52 | +pub enum ElementaryTypes { |
| 53 | + BOOL(String), |
| 54 | + BYTE(String), |
| 55 | + WORD(String), |
| 56 | + DWORD(String), |
| 57 | + LWORD(String), |
| 58 | + SINT(String), |
| 59 | + INT(String), |
| 60 | + DINT(String), |
| 61 | + LINT(String), |
| 62 | + USINT(String), |
| 63 | + UINT(String), |
| 64 | + UDINT(String), |
| 65 | + ULINT(String), |
| 66 | + REAL(String), |
| 67 | + LREAL(String), |
| 68 | + TIME(String), |
| 69 | + DATE(String), |
| 70 | + DT(String), |
| 71 | + TOD(String), |
| 72 | + String(ElementaryTypes_string_Inline), |
| 73 | + Wstring(ElementaryTypes_wstring_Inline), |
| 74 | + ANY(String), |
| 75 | + ANY_DERIVED(String), |
| 76 | + ANY_ELEMENTARY(String), |
| 77 | + ANY_MAGNITUDE(String), |
| 78 | + ANY_NUM(String), |
| 79 | + ANY_REAL(String), |
| 80 | + ANY_INT(String), |
| 81 | + ANY_BIT(String), |
| 82 | + ANY_STRING(String), |
| 83 | + ANY_DATE(String), |
| 84 | +} |
| 85 | + |
| 86 | +/// derivedTypes choice group |
| 87 | +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 88 | +pub enum DerivedTypes { |
| 89 | + Array(DerivedTypes_array_Inline), |
| 90 | + Derived(DerivedTypes_derived_Inline), |
| 91 | + #[serde(rename = "enum")] |
| 92 | + Enumeration(DerivedTypes_enum_Inline), |
| 93 | + #[serde(rename = "struct")] |
| 94 | + Structure(VarListPlain), |
| 95 | + SubrangeSigned(DerivedTypes_subrangeSigned_Inline), |
| 96 | + SubrangeUnsigned(DerivedTypes_subrangeUnsigned_Inline), |
| 97 | +} |
| 98 | + |
| 99 | +/// extended choice group |
| 100 | +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 101 | +pub enum Extended { |
| 102 | + Pointer(Extended_pointer_Inline), |
| 103 | +} |
| 104 | + |
| 105 | +/// commonObjects choice group |
| 106 | +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 107 | +pub enum CommonObjects { |
| 108 | + Comment(CommonObjects_comment_Inline), |
| 109 | + Error(CommonObjects_error_Inline), |
| 110 | + Connector(CommonObjects_connector_Inline), |
| 111 | + Continuation(CommonObjects_continuation_Inline), |
| 112 | + ActionBlock(CommonObjects_actionBlock_Inline), |
| 113 | + VendorElement(CommonObjects_vendorElement_Inline), |
| 114 | +} |
| 115 | + |
| 116 | +/// fbdObjects choice group |
| 117 | +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 118 | +pub enum FbdObjects { |
| 119 | + Block(FbdObjects_block_Inline), |
| 120 | + InVariable(FbdObjects_inVariable_Inline), |
| 121 | + OutVariable(FbdObjects_outVariable_Inline), |
| 122 | + InOutVariable(FbdObjects_inOutVariable_Inline), |
| 123 | + Label(FbdObjects_label_Inline), |
| 124 | + Jump(FbdObjects_jump_Inline), |
| 125 | + #[serde(rename = "return")] |
| 126 | + Return(FbdObjects_return_Inline), |
| 127 | +} |
| 128 | + |
| 129 | +/// ldObjects choice group |
| 130 | +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 131 | +pub enum LdObjects { |
| 132 | + LeftPowerRail(LdObjects_leftPowerRail_Inline), |
| 133 | + RightPowerRail(LdObjects_rightPowerRail_Inline), |
| 134 | + Coil(LdObjects_coil_Inline), |
| 135 | + Contact(LdObjects_contact_Inline), |
| 136 | +} |
| 137 | + |
| 138 | +/// sfcObjects choice group |
| 139 | +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 140 | +pub enum SfcObjects { |
| 141 | + Step(SfcObjects_step_Inline), |
| 142 | + MacroStep(SfcObjects_macroStep_Inline), |
| 143 | + JumpStep(SfcObjects_jumpStep_Inline), |
| 144 | + Transition(SfcObjects_transition_Inline), |
| 145 | + SelectionDivergence(SfcObjects_selectionDivergence_Inline), |
| 146 | + SelectionConvergence(SfcObjects_selectionConvergence_Inline), |
| 147 | + SimultaneousDivergence(SfcObjects_simultaneousDivergence_Inline), |
| 148 | + SimultaneousConvergence(SfcObjects_simultaneousConvergence_Inline), |
| 149 | +} |
| 150 | + |
0 commit comments