Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Runtime device dynamic structure (in RAM) per driver instance. More...
#include <device.h>
Data Fields | |
unsigned int | init_res: 8 |
bool | initialized: 1 |
Runtime device dynamic structure (in RAM) per driver instance.
Fields in this are expected to be default-initialized to zero. The kernel driver infrastructure and driver access functions are responsible for ensuring that any non-zero initialization is done before they are accessed.
unsigned int device_state::init_res |
Non-negative result of initializing the device.
The absolute value returned when the device initialization function was invoked, or UINT8_MAX
if the value exceeds an 8-bit integer. If initialized is also set, a zero value indicates initialization succeeded.
bool device_state::initialized |
Indicates the device initialization function has been invoked.