1
0
Fork 0
CANopenNode/401/invertValue.h
Pedro Rodríguez Vieites 8751c52836 Added support for CiA 401 / Driver example / Test example.
User must implement the CANInterface for its own hardware
2025-03-07 17:02:55 +01:00

12 lines
No EOL
172 B
C++

#pragma once
template <typename T>
static T invertValue(T val) {
return ~val;
}
// Specialization for bool
template <>
bool invertValue(bool val) {
return !val;
}