|
Zephyr Project API
3.4.0
A Scalable Open Source RTOS
|
Runtime device structure (in ROM) per driver instance. More...
#include <device.h>
Data Fields | |
| const char * | name |
| const void * | config |
| const void * | api |
| struct device_state * | state |
| void * | data |
| const device_handle_t * | handles |
| struct pm_device * | pm |
Runtime device structure (in ROM) per driver instance.
| const void* device::api |
Address of the API structure exposed by the device instance
| const void* device::config |
Address of device instance config information
| void* device::data |
Address of the device instance private data
| const device_handle_t* device::handles |
Optional pointer to handles associated with the device.
This encodes a sequence of sets of device handles that have some relationship to this node. The individual sets are extracted with dedicated API, such as device_required_handles_get().
| const char* device::name |
Name of the device instance
| struct pm_device* device::pm |
Reference to the device PM resources (only available if CONFIG_PM_DEVICE is enabled).
| struct device_state* device::state |
Address of the common device state