AutosarOS
CounterTypes.h
Go to the documentation of this file.
1 
15 #ifndef COUNTERTYPES_H_
16 #define COUNTERTYPES_H_
17 
21 typedef uint64_t TickType;
22 
29 
33 typedef enum counters_e CounterType;
34 
40  SOFTWARE
41 };
42 
46 struct counter_s {
50  const enum counterType_e type;
51  const float secondspertick;
53 };
54 
55 #endif /* COUNTERTYPES_H_ */
HARDWARE
@ HARDWARE
Counter is implemented in hardware.
Definition: CounterTypes.h:39
TickType
uint64_t TickType
Data type of counter values.
Definition: CounterTypes.h:21
counter_s::secondspertick
const float secondspertick
Time of one counter tick in seconds.
Definition: CounterTypes.h:51
TickRefType
TickType * TickRefType
Reference to counter values.
Definition: CounterTypes.h:28
SOFTWARE
@ SOFTWARE
Counter is implemented in software.
Definition: CounterTypes.h:40
CounterType
enum counters_e CounterType
Type for counter reference.
Definition: CounterTypes.h:33
counter_s::ticksperbase
const TickType ticksperbase
Number of ticks required to reach a counter-specific unit.
Definition: CounterTypes.h:49
counter_s::maxallowedvalue
const TickType maxallowedvalue
Maximum allowed value of counter.
Definition: CounterTypes.h:47
counter_s::mincycle
const TickType mincycle
Smallest allowed value for the cycle-parameter of cyclic alarms.
Definition: CounterTypes.h:48
counter_s::value
TickType value
Current tick value of counter.
Definition: CounterTypes.h:52
counterType_e
counterType_e
Type of counter.
Definition: CounterTypes.h:38
counter_s
Data structure for counter.
Definition: CounterTypes.h:46
counter_s::type
enum counterType_e type
Type of counter.
Definition: CounterTypes.h:50