add check input high
This commit is contained in:
2026-02-14 14:30:47 +01:00
parent 6db7e81f0b
commit 051bf3dfd1
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -68,3 +68,8 @@ void Simulator_base::reboot()
// Reboot the simulator // Reboot the simulator
system("reboot"); system("reboot");
} }
bool Simulator_base::check_input_high(uint32_t data, uint16_t pinnummer)
{
return (data & (1 << pinnummer));
}
+2
View File
@@ -94,6 +94,8 @@ class Simulator_base : public QObject
void shutdown(); void shutdown();
void reboot(); void reboot();
bool check_input_high(uint32_t data, uint16_t pinnummer);
signals: signals:
void sim_changed(); void sim_changed();