Skip to content

File interupt.cpp

FileList > COD_ENG_OUT_arduino_code > src > interupt.cpp

Go to the source code of this file

This file contains all interupt routines.

  • #include <ASL.hpp>
  • #include <Arduino.h>
  • #include <logic.hpp>

Public Attributes

Type Name
bool bool_blink_flag
ASL::en_state en_current_state
int8_t i8_current_token_number
ASL::cla_display obj_display
uint8_t u8_computer_quantity
uint8_t u8_player_quantity

Public Functions

Type Name
ISR (INT4_vect)
interupt routine for the Choose (green) Button.
ISR (INT5_vect)
interupt routine for the Submit (red) Button.
ISR (TIMER3_COMPA_vect)
interupt routine for the Timer 3.
ISR (TIMER4_COMPA_vect)
interupt routine for the Timer 4.
ISR (TIMER5_COMPA_vect)
interupt routine for the Timer 5.

Public Attributes Documentation

volatile bool bool_blink_flag;

variable en_current_state

volatile ASL::en_state en_current_state;

variable i8_current_token_number

volatile int8_t i8_current_token_number;

variable obj_display

ASL::cla_display obj_display;

variable u8_computer_quantity

uint8_t u8_computer_quantity;

variable u8_player_quantity

uint8_t u8_player_quantity;

Public Functions Documentation

function ISR

interupt routine for the Choose (green) Button.

ISR (
    INT4_vect
) 

This interupt is used for state manipulation.

function ISR

interupt routine for the Submit (red) Button.

ISR (
    INT5_vect
) 

This interupt is used for state manipulation.

function ISR

interupt routine for the Timer 3.

ISR (
    TIMER3_COMPA_vect
) 

This interupt is used for button debounce. it will be triggered shortly after button interupts to reenable the buttons.

function ISR

interupt routine for the Timer 4.

ISR (
    TIMER4_COMPA_vect
) 

This interupt is used for the display update when using the Blink method. It might just set the bool_blink_flag, if updating the display would take too long for the ISR.

function ISR

interupt routine for the Timer 5.

ISR (
    TIMER5_COMPA_vect
) 

This interupt does nothing except disabling itself. The Delay_256 function will pause and return when this interrupt occurs.


The documentation for this class was generated from the following file /home/runner/work/Arduino_DHBW_Spiel/Arduino_DHBW_Spiel/Engineering/COD_ENG_OUT_arduino_code/src/interupt.cpp