server sim base

make check_input_high inline and move it to header file
This commit is contained in:
2026-02-14 14:32:46 +01:00
parent f17676d4ef
commit 9345620fec
2 changed files with 4 additions and 6 deletions
+4 -1
View File
@@ -160,7 +160,10 @@ class Simulator_base : public QObject
* @return true If the bit is high
* @return false If the bit is low
*/
constexpr bool check_input_high(uint32_t data, uint16_t pinnummer);
inline bool check_input_high(uint32_t data, uint16_t pinnummer)
{
return (data & (1 << pinnummer));
}
signals:
/**
* @brief Signal emitted when the ui of the simulator changes