24#ifndef FLUX_HAL_TYPES_HPP_
25#define FLUX_HAL_TYPES_HPP_
Definition flux_hal_types.hpp:29
ManagerError
Lifecycle / bind failure catalog shared by every manager (GetManagerError()).
Definition flux_hal_types.hpp:37
@ BindFailed
A bus, pin or platform object could not be created.
@ InvalidArgument
Caller passed an invalid argument.
@ DependencyNotReady
A manager this one needs is not initialised.
@ HardwareFault
A fitted chip did not come up or reported a fault.
@ NotInitialized
Manager not initialised (or shut down)
@ Unsupported
Operation or part not supported on this build.
@ Busy
Manager busy / re-entrant call refused.
constexpr const char * ToString(ManagerError e) noexcept
Short name of a ManagerError, for logs and diagnostics.
Definition flux_hal_types.hpp:49
Facade operation result.
Definition flux_hal_types.hpp:69
uint32_t detail
Optional manager / driver code (0 if unused)
Definition flux_hal_types.hpp:72
bool ok
true on success
Definition flux_hal_types.hpp:70
static constexpr HalResult Err(ManagerError c, uint32_t d=0) noexcept
A failure result.
Definition flux_hal_types.hpp:78
ManagerError code
None on success.
Definition flux_hal_types.hpp:71
static constexpr HalResult Ok() noexcept
A success result.
Definition flux_hal_types.hpp:75