150 static bool blink_state =
false;
151 blink_state = !blink_state;
152 analogWrite(pin, blink_state * 1023);
164 static volatile bool wd_state =
false;
165 wd_state = !wd_state;
Class responsible for controlling digital outputs in the Master Teensy.
void bspd_error()
Turns on the BSPD error signal.
static constexpr std::array< int, 9 > validOutputPins
static void turn_off_assi()
Turns off both ASSI LEDs (yellow and blue).
static void disable_ebs_actuator_2()
Disables EBS actuator 2.
static void enable_ebs_actuator_2()
Enables EBS actuator 2.
static void enable_ebs_actuator_1()
Enables EBS actuator 1.
DigitalSender()
Constructor for the DigitalSender class.
void blink_led(int pin)
Blinks the LED at the given pin.
static void close_watchdog_sdc()
Closes the watchdog signal for SDC.
void turn_on_brake_light()
Turns on the brake light.
void no_bspd_error()
Turns off the BSPD error signal.
void turn_on_blue()
Turns on the blue ASSI LED.
void turn_off_brake_light()
Turns off the brake light.
static void disable_ebs_actuator_1()
Disables EBS actuator 1.
static void activate_ebs()
Activates the solenoid EBS valves.
static void deactivate_ebs()
Deactivates the solenoid EBS valves.
static void toggle_watchdog()
Toggles the watchdog signal.
static void open_sdc()
Opens the SDC in Master and SDC Logic.
static void close_sdc()
Closes the SDC in Master and SDC Logic.
void turn_on_yellow()
Turns on the yellow ASSI LED.
constexpr int SDC_BSPD_OUT
constexpr int WD_SDC_CLOSE
constexpr int ASSI_BLUE_PIN
constexpr int BRAKE_LIGHT
constexpr int ASSI_YELLOW_PIN