File main.cpp
FileList > COD_ENG_OUT_Pruefgeraet > src > main.cpp
Go to the source code of this file
#include <Arduino.h>
Public Attributes
Type | Name |
---|---|
float | fl_high_frequency = = 0.0 |
float | fl_low_frequency = = 0.0 |
const int | i_pin = = 2 |
uint32_t | u32_duration_high = = 0 |
uint32_t | u32_duration_low = = 0 |
uint32_t | u32_start_time_high = = 0 |
uint32_t | u32_start_time_low = = 0 |
Public Functions
Type | Name |
---|---|
void | Pin_Change () This function is responsible for handling pin state changes. |
void | loop () |
void | setup () |
Public Attributes Documentation
variable fl_high_frequency
float fl_high_frequency;
variable fl_low_frequency
float fl_low_frequency;
variable i_pin
const int i_pin;
variable u32_duration_high
volatile uint32_t u32_duration_high;
variable u32_duration_low
volatile uint32_t u32_duration_low;
variable u32_start_time_high
volatile uint32_t u32_start_time_high;
variable u32_start_time_low
volatile uint32_t u32_start_time_low;
Public Functions Documentation
function Pin_Change
This function is responsible for handling pin state changes.
void Pin_Change ()
\
This function reads the state of a digital pin and records the timing information for transitions between HIGH and LOW states. It calculates the duration of the HIGH and LOW states and updates the corresponding variables accordingly.
function loop
void loop ()
function setup
void setup ()
The documentation for this class was generated from the following file /home/runner/work/Arduino_DHBW_Spiel/Arduino_DHBW_Spiel/Engineering/COD_ENG_OUT_Pruefgeraet/src/main.cpp