34 #ifndef CMSIS_PLUS_DRIVER_COMMON_H_ 35 #define CMSIS_PLUS_DRIVER_COMMON_H_ 107 operator= (
const Version&) =
default;
109 ~
Version () noexcept =
default;
114 get_api (
void)
const noexcept;
117 get_drv (
void)
const noexcept;
164 Base () noexcept =
default;
176 get_version (
void) noexcept;
184 power (
Power state) noexcept;
191 do_get_version (
void) noexcept = 0;
194 do_power (
Power state) noexcept = 0;
203 return do_get_version ();
209 return do_power (state);
constexpr return_t RETURN_OK
< Operation succeeded
constexpr return_t ERROR_PARAMETER
Start of driver specific errors.
constexpr return_t ERROR_SPECIFIC
version_t get_drv(void) const noexcept
return_t power(Power state) noexcept
Power up/down device.
constexpr Version() noexcept
version_t api_
API version.
version_t get_api(void) const noexcept
constexpr return_t ERROR_UNSUPPORTED
Parameter error.
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)
constexpr return_t ERROR
Driver is busy.
const Version & get_version(void) noexcept
Get driver version.
version_t drv_
Driver version.