Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dac161s997.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Prevas A/S
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_DAC_DAC161S997_H_
14#define ZEPHYR_INCLUDE_DRIVERS_DAC_DAC161S997_H_
15
16#include <stdint.h>
17#include <zephyr/device.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
29
84
92typedef void (*dac161s997_error_callback_t)(const struct device *dev,
93 const union dac161s997_status *status);
94
107
108#ifdef __cplusplus
109}
110#endif
111
113
114#endif /* 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:92
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:513
DAC161S997 Status Register.
Definition dac161s997.h:36
bool frame_status
Frame error.
Definition dac161s997.h:73
uint8_t dac_resolution
DAC resolution.
Definition dac161s997.h:81
bool spi_timeout_error
SPI timeout error.
Definition dac161s997.h:65
bool error_level_pin_state
ERR_LVL pin state.
Definition dac161s997.h:77
bool current_loop_status
Loop error status (real-time).
Definition dac161s997.h:51
uint8_t raw
Raw 8-bit value of the status register.
Definition dac161s997.h:40
bool loop_status
Loop error status (latched).
Definition dac161s997.h:58