|
STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
|
The status every fallible driver function returns. More...
Go to the source code of this file.
Macros | |
| #define | DRIVER_MUST_CHECK __attribute__((warn_unused_result)) |
| Make ignoring a function's result a compile error (with -Werror). | |
Typedefs | |
| typedef enum DriverStatus_e | DriverStatus_e |
| Outcome of a driver call: a category for control flow, not a diagnosis. | |
Enumerations | |
| enum | DriverStatus_e { DRIVER_STATUS_UNINITIALIZED = 0 , DRIVER_STATUS_OK = 1 , DRIVER_STATUS_ERR_INVALID_PARAM = 2 , DRIVER_STATUS_ERR_NOT_INITIALIZED = 3 , DRIVER_STATUS_ERR_TIMEOUT = 4 , DRIVER_STATUS_ERR_HW_FAULT = 5 , DRIVER_STATUS_ERR_BUSY = 6 , DRIVER_STATUS_ERR_UNSUPPORTED = 7 } |
| Outcome of a driver call: a category for control flow, not a diagnosis. More... | |
The status every fallible driver function returns.
See Error contract for the rules and their one exception.
Definition in file driver_status.h.