demo-epb  v1.0
Elektrische Parkbremse - slohmaier Dev Process Demo
epb_types.h
gehe zur Dokumentation dieser Datei
1 /**
2  * @file epb_types.h
3  * @brief Common types for the EPB software.
4  *
5  * @arch SA-001
6  */
7 #ifndef EPB_TYPES_H
8 #define EPB_TYPES_H
9 
10 #include <stdbool.h>
11 #include <stdint.h>
12 
13 typedef enum {
14  EPB_OK = 0,
21 
22 typedef enum {
27  EPB_STATE_ERROR = 0xFF
29 
30 typedef enum {
33  ACTUATOR_COUNT = 2
35 
36 typedef enum {
39  SWITCH_RELEASE = 2
41 
42 typedef struct {
43  uint8_t apply_raw : 1;
44  uint8_t release_raw : 1;
45 } SwitchRaw;
46 
47 #endif /* EPB_TYPES_H */
EpbState
Definition: epb_types.h:22
@ EPB_STATE_ERROR
Definition: epb_types.h:27
@ EPB_STATE_APPLIED
Definition: epb_types.h:25
@ EPB_STATE_APPLYING
Definition: epb_types.h:24
@ EPB_STATE_RELEASED
Definition: epb_types.h:23
@ EPB_STATE_RELEASING
Definition: epb_types.h:26
EpbStatus
Definition: epb_types.h:13
@ EPB_EHARDWARE
Definition: epb_types.h:18
@ EPB_EINVAL
Definition: epb_types.h:15
@ EPB_EOVERCURRENT
Definition: epb_types.h:19
@ EPB_ENOSPACE
Definition: epb_types.h:17
@ EPB_ETIMEOUT
Definition: epb_types.h:16
@ EPB_OK
Definition: epb_types.h:14
SwitchState
Definition: epb_types.h:36
@ SWITCH_APPLY
Definition: epb_types.h:38
@ SWITCH_RELEASE
Definition: epb_types.h:39
@ SWITCH_NEUTRAL
Definition: epb_types.h:37
ActuatorId
Definition: epb_types.h:30
@ ACTUATOR_RIGHT
Definition: epb_types.h:32
@ ACTUATOR_COUNT
Definition: epb_types.h:33
@ ACTUATOR_LEFT
Definition: epb_types.h:31
uint8_t apply_raw
Definition: epb_types.h:43
uint8_t release_raw
Definition: epb_types.h:44