@@ -92,7 +92,7 @@ pub struct ParameterSetConfirmationPayload {
9292}
9393#[ derive( Specifier , Debug , Copy , Clone , PartialEq , Eq , Immutable , TryFromBytes , IntoBytes ) ]
9494#[ repr( u8 ) ]
95- pub enum FieldStatus {
95+ pub enum FieldStatus {
9696 Ok = 0 ,
9797 NotFound = 1 ,
9898}
@@ -106,9 +106,9 @@ pub struct FieldGetReqPayload {
106106#[ derive( Debug , Clone , TryFromBytes , IntoBytes , Immutable , PartialEq ) ]
107107#[ repr( C , packed) ]
108108pub struct FieldGetResPayload {
109- pub field_id : u8 , // Field identifier
109+ pub field_id : u8 , // Field identifier
110110 pub field_status : FieldStatus , // Status of the get operation
111- pub value : [ u8 ; 61 ] , // Field value
111+ pub value : [ u8 ; 61 ] , // Field value
112112}
113113
114114#[ derive( Debug , Clone , FromBytes , IntoBytes , Immutable , PartialEq ) ]
@@ -121,9 +121,9 @@ pub struct FieldIDLookupReqPayload {
121121#[ derive( Debug , Clone , TryFromBytes , IntoBytes , Immutable , PartialEq ) ]
122122#[ repr( C , packed) ]
123123pub struct FieldIDLookupResPayload {
124- pub field_id : u8 , // Field ID
124+ pub field_id : u8 , // Field ID
125125 pub field_status : FieldStatus , // Status of the lookup operation
126- pub field_type : CanDataType , // Field Datatype
126+ pub field_type : CanDataType , // Field Datatype
127127}
128128
129129// Important: only derives TryFromBytes because bool doesn't derive FromBytes
@@ -139,7 +139,7 @@ pub struct ParameterSetLockPayload {
139139pub struct ParameterSetLockConfirmationPayload {
140140 pub parameter_id : u8 , // Parameter identifier to lock
141141 pub parameter_lock : ParameterLockStatus , // Lock status (0=unlocked, 1=locked)
142- pub field_status : FieldStatus // Status of the parameter
142+ pub field_status : FieldStatus , // Status of the parameter
143143}
144144
145145static_assertions:: const_assert_eq!( size_of:: <NodeInfoResPayload >( ) , 63 ) ;
@@ -156,3 +156,7 @@ static_assertions::const_assert_eq!(size_of::<FieldIDLookupReqPayload>(), 61);
156156static_assertions:: const_assert_eq!( size_of:: <FieldIDLookupResPayload >( ) , 3 ) ;
157157static_assertions:: const_assert_eq!( size_of:: <ParameterSetLockConfirmationPayload >( ) , 3 ) ;
158158static_assertions:: const_assert_eq!( size_of:: <ParameterSetLockPayload >( ) , 2 ) ;
159+ static_assertions:: const_assert_eq!( size_of:: <FieldStatus >( ) , 1 ) ;
160+ static_assertions:: const_assert_eq!( size_of:: <CanDataType >( ) , 1 ) ;
161+ static_assertions:: const_assert_eq!( size_of:: <ParameterSetStatus >( ) , 1 ) ;
162+ static_assertions:: const_assert_eq!( size_of:: <ParameterLockStatus >( ) , 1 ) ;
0 commit comments