From e94e5eb10c333ace808f4bf6e1f86858041f1517 Mon Sep 17 00:00:00 2001 From: Corey Wharton Date: Mon, 9 Sep 2024 09:32:27 -0700 Subject: [PATCH] drivers: dac: add flag to channel config to support internal connections Allows user to connect DAC output to internal peripherals for HW and drivers that support it. Signed-off-by: Corey Wharton --- include/zephyr/drivers/dac.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/zephyr/drivers/dac.h b/include/zephyr/drivers/dac.h index 8e38432051a..e6f696fc9dc 100644 --- a/include/zephyr/drivers/dac.h +++ b/include/zephyr/drivers/dac.h @@ -39,7 +39,12 @@ struct dac_channel_cfg { * This is relevant for instance if the output is directly connected to the load, * without an amplifierin between. The actual details on this are hardware dependent. */ - bool buffered; + bool buffered: 1; + /** Enable internal output path for this channel. This is relevant for channels that + * support directly connecting to on-chip peripherals via internal paths. The actual + * details on this are hardware dependent. + */ + bool internal: 1; }; /**