19#ifndef CMSIS_PLUS_DRIVER_COMMON_H_
20#define CMSIS_PLUS_DRIVER_COMMON_H_
32#pragma GCC diagnostic push
34#pragma clang diagnostic ignored "-Wc++98-compat"
170 get_version (
void) noexcept;
178 power (
Power state) noexcept;
185 do_get_version (
void) noexcept = 0;
188 do_power (
Power state) noexcept = 0;
195 Base::get_version (
void) noexcept
197 return do_get_version ();
203 return do_power (state);
209#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)