@@ -36,12 +36,13 @@ var (
36
36
// Generated code. DO NOT EDIT.
37
37
// EmptyMessageReader provides read access to a EmptyMessage message.
38
38
type EmptyMessageReader interface {
39
+ can.FrameMarshaler
39
40
}
40
41
41
42
// EmptyMessageWriter provides write access to a EmptyMessage message.
42
43
type EmptyMessageWriter interface {
43
44
// CopyFrom copies all values from EmptyMessage.
44
- CopyFrom (* EmptyMessage ) * EmptyMessage
45
+ CopyFrom (EmptyMessageReader ) * EmptyMessage
45
46
}
46
47
47
48
type EmptyMessage struct {
@@ -56,8 +57,9 @@ func NewEmptyMessage() *EmptyMessage {
56
57
func (m * EmptyMessage ) Reset () {
57
58
}
58
59
59
- func (m * EmptyMessage ) CopyFrom (o * EmptyMessage ) * EmptyMessage {
60
- _ = m .UnmarshalFrame (o .Frame ())
60
+ func (m * EmptyMessage ) CopyFrom (o EmptyMessageReader ) * EmptyMessage {
61
+ f , _ := o .MarshalFrame ()
62
+ _ = m .UnmarshalFrame (f )
61
63
return m
62
64
}
63
65
@@ -109,14 +111,15 @@ func (m *EmptyMessage) UnmarshalFrame(f can.Frame) error {
109
111
110
112
// DriverHeartbeatReader provides read access to a DriverHeartbeat message.
111
113
type DriverHeartbeatReader interface {
114
+ can.FrameMarshaler
112
115
// Command returns the value of the Command signal.
113
116
Command () DriverHeartbeat_Command
114
117
}
115
118
116
119
// DriverHeartbeatWriter provides write access to a DriverHeartbeat message.
117
120
type DriverHeartbeatWriter interface {
118
121
// CopyFrom copies all values from DriverHeartbeat.
119
- CopyFrom (* DriverHeartbeat ) * DriverHeartbeat
122
+ CopyFrom (DriverHeartbeatReader ) * DriverHeartbeat
120
123
// SetCommand sets the value of the Command signal.
121
124
SetCommand (DriverHeartbeat_Command ) * DriverHeartbeat
122
125
}
@@ -135,8 +138,9 @@ func (m *DriverHeartbeat) Reset() {
135
138
m .xxx_Command = 0
136
139
}
137
140
138
- func (m * DriverHeartbeat ) CopyFrom (o * DriverHeartbeat ) * DriverHeartbeat {
139
- _ = m .UnmarshalFrame (o .Frame ())
141
+ func (m * DriverHeartbeat ) CopyFrom (o DriverHeartbeatReader ) * DriverHeartbeat {
142
+ f , _ := o .MarshalFrame ()
143
+ _ = m .UnmarshalFrame (f )
140
144
return m
141
145
}
142
146
@@ -225,6 +229,7 @@ func (m *DriverHeartbeat) UnmarshalFrame(f can.Frame) error {
225
229
226
230
// MotorCommandReader provides read access to a MotorCommand message.
227
231
type MotorCommandReader interface {
232
+ can.FrameMarshaler
228
233
// Steer returns the physical value of the Steer signal.
229
234
Steer () float64
230
235
// RawSteer returns the raw (encoded) value of the Steer signal.
@@ -238,7 +243,7 @@ type MotorCommandReader interface {
238
243
// MotorCommandWriter provides write access to a MotorCommand message.
239
244
type MotorCommandWriter interface {
240
245
// CopyFrom copies all values from MotorCommand.
241
- CopyFrom (* MotorCommand ) * MotorCommand
246
+ CopyFrom (MotorCommandReader ) * MotorCommand
242
247
// SetSteer sets the physical value of the Steer signal.
243
248
SetSteer (float64 ) * MotorCommand
244
249
// SetRawSteer sets the raw (encoded) value of the Steer signal.
@@ -265,8 +270,9 @@ func (m *MotorCommand) Reset() {
265
270
m .xxx_Drive = 0
266
271
}
267
272
268
- func (m * MotorCommand ) CopyFrom (o * MotorCommand ) * MotorCommand {
269
- _ = m .UnmarshalFrame (o .Frame ())
273
+ func (m * MotorCommand ) CopyFrom (o MotorCommandReader ) * MotorCommand {
274
+ f , _ := o .MarshalFrame ()
275
+ _ = m .UnmarshalFrame (f )
270
276
return m
271
277
}
272
278
@@ -358,6 +364,7 @@ func (m *MotorCommand) UnmarshalFrame(f can.Frame) error {
358
364
359
365
// SensorSonarsReader provides read access to a SensorSonars message.
360
366
type SensorSonarsReader interface {
367
+ can.FrameMarshaler
361
368
// Mux returns the value of the Mux signal.
362
369
Mux () uint8
363
370
// ErrCount returns the value of the ErrCount signal.
@@ -399,7 +406,7 @@ type SensorSonarsReader interface {
399
406
// SensorSonarsWriter provides write access to a SensorSonars message.
400
407
type SensorSonarsWriter interface {
401
408
// CopyFrom copies all values from SensorSonars.
402
- CopyFrom (* SensorSonars ) * SensorSonars
409
+ CopyFrom (SensorSonarsReader ) * SensorSonars
403
410
// SetMux sets the value of the Mux signal.
404
411
SetMux (uint8 ) * SensorSonars
405
412
// SetErrCount sets the value of the ErrCount signal.
@@ -470,8 +477,9 @@ func (m *SensorSonars) Reset() {
470
477
m .xxx_NoFiltRear = 0
471
478
}
472
479
473
- func (m * SensorSonars ) CopyFrom (o * SensorSonars ) * SensorSonars {
474
- _ = m .UnmarshalFrame (o .Frame ())
480
+ func (m * SensorSonars ) CopyFrom (o SensorSonarsReader ) * SensorSonars {
481
+ f , _ := o .MarshalFrame ()
482
+ _ = m .UnmarshalFrame (f )
475
483
return m
476
484
}
477
485
@@ -737,6 +745,7 @@ func (m *SensorSonars) UnmarshalFrame(f can.Frame) error {
737
745
738
746
// MotorStatusReader provides read access to a MotorStatus message.
739
747
type MotorStatusReader interface {
748
+ can.FrameMarshaler
740
749
// WheelError returns the value of the WheelError signal.
741
750
WheelError () bool
742
751
// SpeedKph returns the physical value of the SpeedKph signal.
@@ -748,7 +757,7 @@ type MotorStatusReader interface {
748
757
// MotorStatusWriter provides write access to a MotorStatus message.
749
758
type MotorStatusWriter interface {
750
759
// CopyFrom copies all values from MotorStatus.
751
- CopyFrom (* MotorStatus ) * MotorStatus
760
+ CopyFrom (MotorStatusReader ) * MotorStatus
752
761
// SetWheelError sets the value of the WheelError signal.
753
762
SetWheelError (bool ) * MotorStatus
754
763
// SetSpeedKph sets the physical value of the SpeedKph signal.
@@ -773,8 +782,9 @@ func (m *MotorStatus) Reset() {
773
782
m .xxx_SpeedKph = 0
774
783
}
775
784
776
- func (m * MotorStatus ) CopyFrom (o * MotorStatus ) * MotorStatus {
777
- _ = m .UnmarshalFrame (o .Frame ())
785
+ func (m * MotorStatus ) CopyFrom (o MotorStatusReader ) * MotorStatus {
786
+ f , _ := o .MarshalFrame ()
787
+ _ = m .UnmarshalFrame (f )
778
788
return m
779
789
}
780
790
@@ -857,6 +867,7 @@ func (m *MotorStatus) UnmarshalFrame(f can.Frame) error {
857
867
858
868
// IODebugReader provides read access to a IODebug message.
859
869
type IODebugReader interface {
870
+ can.FrameMarshaler
860
871
// TestUnsigned returns the value of the TestUnsigned signal.
861
872
TestUnsigned () uint8
862
873
// TestEnum returns the value of the TestEnum signal.
@@ -878,7 +889,7 @@ type IODebugReader interface {
878
889
// IODebugWriter provides write access to a IODebug message.
879
890
type IODebugWriter interface {
880
891
// CopyFrom copies all values from IODebug.
881
- CopyFrom (* IODebug ) * IODebug
892
+ CopyFrom (IODebugReader ) * IODebug
882
893
// SetTestUnsigned sets the value of the TestUnsigned signal.
883
894
SetTestUnsigned (uint8 ) * IODebug
884
895
// SetTestEnum sets the value of the TestEnum signal.
@@ -921,8 +932,9 @@ func (m *IODebug) Reset() {
921
932
m .xxx_TestScaledEnum = 0
922
933
}
923
934
924
- func (m * IODebug ) CopyFrom (o * IODebug ) * IODebug {
925
- _ = m .UnmarshalFrame (o .Frame ())
935
+ func (m * IODebug ) CopyFrom (o IODebugReader ) * IODebug {
936
+ f , _ := o .MarshalFrame ()
937
+ _ = m .UnmarshalFrame (f )
926
938
return m
927
939
}
928
940
@@ -1123,6 +1135,7 @@ func (m *IODebug) UnmarshalFrame(f can.Frame) error {
1123
1135
1124
1136
// IOFloat32Reader provides read access to a IOFloat32 message.
1125
1137
type IOFloat32Reader interface {
1138
+ can.FrameMarshaler
1126
1139
// Float32ValueNoRange returns the value of the Float32ValueNoRange signal.
1127
1140
Float32ValueNoRange () float32
1128
1141
// Float32WithRange returns the physical value of the Float32WithRange signal.
@@ -1134,7 +1147,7 @@ type IOFloat32Reader interface {
1134
1147
// IOFloat32Writer provides write access to a IOFloat32 message.
1135
1148
type IOFloat32Writer interface {
1136
1149
// CopyFrom copies all values from IOFloat32.
1137
- CopyFrom (* IOFloat32 ) * IOFloat32
1150
+ CopyFrom (IOFloat32Reader ) * IOFloat32
1138
1151
// SetFloat32ValueNoRange sets the value of the Float32ValueNoRange signal.
1139
1152
SetFloat32ValueNoRange (float32 ) * IOFloat32
1140
1153
// SetFloat32WithRange sets the physical value of the Float32WithRange signal.
@@ -1159,8 +1172,9 @@ func (m *IOFloat32) Reset() {
1159
1172
m .xxx_Float32WithRange = 0
1160
1173
}
1161
1174
1162
- func (m * IOFloat32 ) CopyFrom (o * IOFloat32 ) * IOFloat32 {
1163
- _ = m .UnmarshalFrame (o .Frame ())
1175
+ func (m * IOFloat32 ) CopyFrom (o IOFloat32Reader ) * IOFloat32 {
1176
+ f , _ := o .MarshalFrame ()
1177
+ _ = m .UnmarshalFrame (f )
1164
1178
return m
1165
1179
}
1166
1180
0 commit comments