We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caa702f commit d3933deCopy full SHA for d3933de
1 file changed
Inc/HALAL/Models/GPIO.hpp
@@ -159,6 +159,14 @@ struct GPIODomain {
159
return true;
160
return ((1 << static_cast<uint8_t>(af)) & afs) != 0;
161
}
162
+
163
+ constexpr bool operator==(const Pin &other) const {
164
+ return (port == other.port) && (pin == other.pin);
165
+ }
166
167
+ constexpr bool operator!=(const Pin &other) const {
168
+ return !(*this == other);
169
170
};
171
172
struct Entry {
0 commit comments