Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
smbus_callback Struct Reference

SMBus callback structure. More...

#include <smbus.h>

Data Fields

sys_snode_t node
 This should be used in driver for a callback list management.
 
smbus_callback_handler_t handler
 Actual callback function being called when relevant.
 
uint8_t addr
 Peripheral device address.
 

Detailed Description

SMBus callback structure.

Used to register a callback in the driver instance callback list. As many callbacks as needed can be added as long as each of them is a unique pointer of struct smbus_callback.

Note: Such struct should not be allocated on stack.

Field Documentation

◆ addr

uint8_t smbus_callback::addr

Peripheral device address.

◆ handler

smbus_callback_handler_t smbus_callback::handler

Actual callback function being called when relevant.

◆ node

sys_snode_t smbus_callback::node

This should be used in driver for a callback list management.


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