7#ifndef ZEPHYR_INCLUDE_DRIVERS_DAC_DAC161S997_H_
8#define ZEPHYR_INCLUDE_DRIVERS_DAC_DAC161S997_H_
void(* dac161s997_error_callback_t)(const struct device *dev, const union dac161s997_status *status)
Callback to invoke when an error is triggered.
Definition dac161s997.h:58
int dac161s997_set_error_callback(const struct device *dev, dac161s997_error_callback_t cb)
Set callback to invoke when an error is triggered.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:504
Definition dac161s997.h:17
bool frame_status
A frame error is caused by an incorrect number of clocks during a register write.
Definition dac161s997.h:39
uint8_t dac_resolution
DAC resolution register.
Definition dac161s997.h:47
bool spi_timeout_error
True if a SPI command has not been received within SPI timeout period (default 100 ms).
Definition dac161s997.h:33
bool error_level_pin_state
Returns the state of the ERR_LVL pin.
Definition dac161s997.h:43
bool current_loop_status
True if the DAC161S997 is unable to maintain the output current.
Definition dac161s997.h:23
uint8_t raw
Definition dac161s997.h:18
bool loop_status
Identical to current_loop_status except this bit is sticky.
Definition dac161s997.h:27