Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
dac161s997.h File Reference
#include <stdint.h>
#include <zephyr/device.h>

Go to the source code of this file.

Data Structures

union  dac161s997_status
 

Typedefs

typedef void(* dac161s997_error_callback_t) (const struct device *dev, const union dac161s997_status *status)
 Callback to invoke when an error is triggered.
 

Functions

int dac161s997_set_error_callback (const struct device *dev, dac161s997_error_callback_t cb)
 Set callback to invoke when an error is triggered.
 

Typedef Documentation

◆ dac161s997_error_callback_t

typedef void(* dac161s997_error_callback_t) (const struct device *dev, const union dac161s997_status *status)

Callback to invoke when an error is triggered.

Parameters
devPointer to the device
statusNULL if read was not possible otherwise pointer to status.

Function Documentation

◆ dac161s997_set_error_callback()

int dac161s997_set_error_callback ( const struct device * dev,
dac161s997_error_callback_t cb )

Set callback to invoke when an error is triggered.

The callback runs in a work queue context and the device is locked while it runs.

Parameters
devPointer to the device
cbCallback to invoke when an error is triggered
Returns
0 on success and -errno otherwise.