PebbleOS v4.47.0-1075-g013613c8a
Loading...
Searching...
No Matches
pbl_device Struct Reference

A hardware device. More...

#include <device.h>

Data Fields

int(* init )(const struct pbl_device *dev)
 Optional.
 
const struct pbl_device * parent
 Optional.
 
const struct pbl_device_class * cls
 Optional.
 
struct pbl_device_state * state
 Runtime state.
 

Detailed Description

A hardware device.

Field Documentation

◆ cls

const struct pbl_device_class* pbl_device::cls

Optional.

Class of the device.

◆ init

int(* pbl_device::init) (const struct pbl_device *dev)

Optional.

Returns 0, -ENODEV if the device is not present, or another negative errno.

◆ parent

const struct pbl_device* pbl_device::parent

Optional.

Bus or multi-function device the device sits on, initialized first.

Referenced by pbl_npm1300_from_cell().

◆ state

struct pbl_device_state* pbl_device::state

Runtime state.


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