Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a2f92e8d728344a360164277cb6c721fc72a15ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
 * @author generated by eTrice
 *
 * Source File of DataClass DataClass1
 * 
 */

#include "DataClass1.h"

#include <string.h>

/*--------------------- begin user code ---------------------*/
// usercode3
/*--------------------- end user code ---------------------*/


/*--------------------- operations ---------------------*/
int32 DataClass1_MultiplyWithAttr1(DataClass1* self, int32 value) {
	return self->Attr1 /* ORIG: Attr1 */*value;
}
float32 DataClass1_MultiplyWithAttr3(DataClass1* self, float32 value) {
	return self->Attr3 /* ORIG: Attr3 */*value;
}

// deep copy
void DataClass1_deepCopy(DataClass1* source, DataClass1* target) {
	memcpy(target, source, sizeof(DataClass1));
}


Back to the top