23 lines
500 B
C
23 lines
500 B
C
#ifndef FORCE_H_
|
|
#define FORCE_H_
|
|
|
|
/**** Includes ****/
|
|
#include <stdint.h>
|
|
|
|
/**** Public definitions ****/
|
|
#define FORCE_MAX_HBRAKE_HOLD_TIME 1000
|
|
|
|
typedef enum {
|
|
FORCE_BMODE_OPEN,
|
|
FORCE_BMODE_KEEP,
|
|
FORCE_BMODE_LOCK
|
|
} fbrake_mode_t;
|
|
|
|
/**** Public function declarations ****/
|
|
uint8_t force_next(uint8_t handbrake, uint8_t brakes, fbrake_mode_t bmode, uint8_t user_force, uint16_t hbarke_act_time);
|
|
fbrake_mode_t force_cycle_bmode(fbrake_mode_t bmode);
|
|
|
|
#ifdef TESTING
|
|
#endif
|
|
|
|
#endif /* FORCE_H_ */ |