34#ifndef CMSIS_PLUS_DRIVER_COMMON_H_
35#define CMSIS_PLUS_DRIVER_COMMON_H_
47#pragma GCC diagnostic push
50#pragma clang diagnostic ignored "-Wc++98-compat"
188 get_version (
void) noexcept;
196 power (
Power state) noexcept;
203 do_get_version (
void) noexcept = 0;
206 do_power (
Power state) noexcept = 0;
213 Base::get_version (
void) noexcept
215 return do_get_version ();
221 return do_power (state);
227#pragma GCC diagnostic pop
version_t get_api(void) const noexcept
version_t drv_
Driver version.
Version & operator=(const Version &)=default
version_t get_drv(void) const noexcept
~Version() noexcept=default
version_t api_
API version.
Version(const Version &)=default
constexpr Version() noexcept
constexpr return_t ERROR_SPECIFIC
constexpr return_t ERROR_UNSUPPORTED
Parameter error.
constexpr return_t RETURN_OK
< Operation succeeded
constexpr return_t ERROR
Driver is busy.
constexpr return_t ERROR_PARAMETER
Start of driver specific errors.
constexpr return_t ERROR_TIMEOUT
Operation not supported.
constexpr return_t ERROR_BUSY
Timeout occurred.
void(* signal_event_t)(const void *object, event_t event)