added static function as alternative to macro

This commit is contained in:
Robin Müller 2020-06-23 14:11:53 +02:00
parent 67366c25a0
commit 56455a5fa2

View File

@ -15,6 +15,10 @@ public:
//! This will be the all-ones value irrespective of used unsigned datatype.
static const ReturnValue_t RETURN_FAILED = -1;
virtual ~HasReturnvaluesIF() {}
static ReturnValue_t makeReturnCode(uint8_t interfaceId, uint8_t number) {
return (interfaceId << 8) + number;
}
};
#endif /* HASRETURNVALUESIF_H_ */