STM32 RTOS
0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Toggle main menu visibility
Loading...
Searching...
No Matches
driver_status.h
Go to the documentation of this file.
1
13
#ifndef DRIVER_STATUS_H
14
#define DRIVER_STATUS_H
15
20
22
#define DRIVER_MUST_CHECK __attribute__((warn_unused_result))
23
31
typedef
enum
DriverStatus_e
32
{
34
DRIVER_STATUS_UNINITIALIZED
= 0,
36
DRIVER_STATUS_OK
= 1,
38
DRIVER_STATUS_ERR_INVALID_PARAM
= 2,
40
DRIVER_STATUS_ERR_NOT_INITIALIZED
= 3,
42
DRIVER_STATUS_ERR_TIMEOUT
= 4,
44
DRIVER_STATUS_ERR_HW_FAULT
= 5,
46
DRIVER_STATUS_ERR_BUSY
= 6,
48
DRIVER_STATUS_ERR_UNSUPPORTED
= 7,
49
}
DriverStatus_e
;
50
52
53
#endif
/* DRIVER_STATUS_H */
DriverStatus_e
DriverStatus_e
Outcome of a driver call: a category for control flow, not a diagnosis.
Definition
driver_status.h:32
DRIVER_STATUS_ERR_NOT_INITIALIZED
@ DRIVER_STATUS_ERR_NOT_INITIALIZED
The peripheral or clock source was used before it was enabled or ready.
Definition
driver_status.h:40
DRIVER_STATUS_OK
@ DRIVER_STATUS_OK
Succeeded.
Definition
driver_status.h:36
DRIVER_STATUS_ERR_BUSY
@ DRIVER_STATUS_ERR_BUSY
The hardware is in a state that makes the request unsafe, such as a running PLL.
Definition
driver_status.h:46
DRIVER_STATUS_UNINITIALIZED
@ DRIVER_STATUS_UNINITIALIZED
Never returned.
Definition
driver_status.h:34
DRIVER_STATUS_ERR_UNSUPPORTED
@ DRIVER_STATUS_ERR_UNSUPPORTED
Valid on the hardware, but not implemented by this driver.
Definition
driver_status.h:48
DRIVER_STATUS_ERR_HW_FAULT
@ DRIVER_STATUS_ERR_HW_FAULT
The hardware answered with a fault, such as a UART framing error or a rejected write.
Definition
driver_status.h:44
DRIVER_STATUS_ERR_INVALID_PARAM
@ DRIVER_STATUS_ERR_INVALID_PARAM
A parameter is outside its valid domain.
Definition
driver_status.h:38
DRIVER_STATUS_ERR_TIMEOUT
@ DRIVER_STATUS_ERR_TIMEOUT
A bounded wait for a hardware flag ran out.
Definition
driver_status.h:42
drivers
inc
driver_status.h
Generated by
1.18.0