Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
device Struct Reference

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

#include <device.h>

Data Fields

const char * name
 
const voidconfig
 
const voidapi
 
struct device_state *const state
 
void *const data
 
const device_handle_t *const handles
 

Detailed Description

Runtime device structure (in ROM) per driver instance.

Field Documentation

◆ 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* const device::data

Address of the device instance private data

◆ handles

const device_handle_t* const 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().

◆ name

const char* device::name

Name of the device instance

◆ state

struct device_state* const device::state

Address of the common device state


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