Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
device Struct Reference

Runtime device structure (in ROM) per driver instance. More...

#include <device.h>

Data Fields

const char * name
 Name of the device instance.
 
const void * config
 Address of device instance config information.
 
const void * api
 Address of the API structure exposed by the device instance.
 
struct device_statestate
 Address of the common device state.
 
void * data
 Address of the device instance private data.
 
const device_handle_tdeps
 Optional pointer to dependencies associated with the device.
 
union { 
 
   struct pm_device_base *   pm_base 
 
   struct pm_device *   pm 
 
   struct pm_device_isr *   pm_isr 
 
};  
 Reference to the device PM resources (only available if CONFIG_PM_DEVICE is enabled).
 
const struct device_dt_metadata * dt_meta
 

Detailed Description

Runtime device structure (in ROM) per driver instance.

Field Documentation

◆ [union]

union { ... } device

Reference to the device PM resources (only available if CONFIG_PM_DEVICE is enabled).

◆ api

const void* device::api

Address of the API structure exposed by the device instance.

◆ config

const void* device::config

Address of device instance config information.

◆ data

void* device::data

Address of the device instance private data.

◆ deps

const device_handle_t* device::deps

Optional pointer to dependencies 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(). Only available if CONFIG_DEVICE_DEPS is enabled.

◆ dt_meta

const struct device_dt_metadata* device::dt_meta

◆ name

const char* device::name

Name of the device instance.

◆ pm

struct pm_device* device::pm

◆ pm_base

struct pm_device_base* device::pm_base

◆ pm_isr

struct pm_device_isr* device::pm_isr

◆ state

struct device_state* device::state

Address of the common device state.


The documentation for this struct was generated from the following file: