added function as alternative to macro

This commit is contained in:
Robin Müller 2020-06-23 14:12:55 +02:00
parent 9dc2ea426b
commit 7aa713a452

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_ */