diff --git a/features/FEATURE_BLE/ble/SafeEnum.h b/features/FEATURE_BLE/ble/SafeEnum.h index eed1b8b7e1..a56d6ba32d 100644 --- a/features/FEATURE_BLE/ble/SafeEnum.h +++ b/features/FEATURE_BLE/ble/SafeEnum.h @@ -107,6 +107,10 @@ namespace ble { */ template struct SafeEnum { + /** + * Type of the representation. + */ + typedef LayoutType representation_t; /** * Construction of an enumeration value. @@ -197,6 +201,14 @@ struct SafeEnum { return _value; } + /** + * Return a pointer to the inner storage. + */ + const LayoutType* storage() const + { + return &_value; + } + private: LayoutType _value; };