|
Zephyr Project API 4.3.99
A Scalable Open Source RTOS
|
TI DAC161S997 16-bit 1 channel SPI DAC for 4-20 mA loops. More...
Files | |
| file | dac161s997.h |
| Header file for extended DAC API of DAC161S997. | |
Data Structures | |
| union | dac161s997_status |
| DAC161S997 Status Register. More... | |
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. | |
TI DAC161S997 16-bit 1 channel SPI DAC for 4-20 mA loops.
| typedef void(* dac161s997_error_callback_t) (const struct device *dev, const union dac161s997_status *status) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dac/dac161s997.h>
Callback to invoke when an error is triggered.
| dev | Pointer to the device |
| status | NULL if read was not possible, otherwise pointer to status. |
| int dac161s997_set_error_callback | ( | const struct device * | dev, |
| dac161s997_error_callback_t | cb ) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dac/dac161s997.h>
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.
| dev | Pointer to the device |
| cb | Callback to invoke when an error is triggered |
| 0 | success |
| -errno | negative error code on failure. |