Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

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.

Detailed Description

TI DAC161S997 16-bit 1 channel SPI DAC for 4-20 mA loops.

Typedef Documentation

◆ dac161s997_error_callback_t

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

#include <zephyr/drivers/dac/dac161s997.h>

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 )

#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.

Parameters
devPointer to the device
cbCallback to invoke when an error is triggered
Return values
0success
-errnonegative error code on failure.