From 4e7135e237a514aac6a1a250a935d661fe21bb96 Mon Sep 17 00:00:00 2001 From: Markus Kohlhase Date: Thu, 26 Nov 2020 15:35:13 +0100 Subject: [PATCH] Add sub_idx field to SdoEntryInfo --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f272557..86fb04b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -109,7 +109,7 @@ pub struct SdoIdx { /// SDO Meta Information #[derive(Debug, Clone, PartialEq)] pub struct SdoInfo { - pub pos: SdoPos, // TODO: do we need this info here? + pub pos: SdoPos, pub idx: Idx, pub max_sub_idx: SubIdx, pub object_code: Option, @@ -119,6 +119,7 @@ pub struct SdoInfo { /// SDO Entry Information #[derive(Debug, Clone, PartialEq)] pub struct SdoEntryInfo { + pub sub_idx: SubIdx, pub data_type: DataType, pub bit_len: u16, pub access: SdoEntryAccess,