forked from vectorgrp/XCPlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecupp.hpp
64 lines (46 loc) · 881 Bytes
/
ecupp.hpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* ecupp.hpp */
/*
| Code released into public domain, no attribution required
*/
#ifndef __ECUPP_HPP_
#define __ECUPP_HPP_
#ifdef __cplusplus
extern "C" {
void* ecuppTask(void* p);
}
class EcuTask {
public:
uint16_t taskId;
uint16_t counter;
double timer;
double channel1;
bool squarewave;
volatile double offset = 0;
volatile double period = 5;
volatile double ampl = 50;
uint8_t byte;
uint16_t word;
uint32_t dword;
int8_t sbyte;
int16_t sword;
int32_t sdword;
float float32;
double float64;
EcuTask( uint16_t taskId );
void run();
#ifdef APP_ENABLE_A2L_GEN
void createA2lClassDefinition();
void createA2lClassInstance(const char* instanceName, const char* comment);
#endif
};
#endif
#ifdef __cplusplus
extern "C" {
#endif
void ecuppInit();
void ecuppCreateA2lDescription();
void* ecuppTask(void* p);
#ifdef __cplusplus
}
#endif
#endif