/Zephyr-Core-3.6.0/drivers/dac/ |
D | Kconfig | 1 # DAC configuration options 7 # DAC options 9 menuconfig DAC config 10 bool "Digital-to-Analog Converter (DAC) drivers" 12 Enable DAC (Digital to Analog Converter) driver configuration. 14 if DAC 16 module = DAC 17 module-str = DAC 21 bool "DAC shell" 24 Enable DAC related shell commands. [all …]
|
D | dac_shell.c | 9 * @brief DAC shell commands. 13 #include <zephyr/drivers/dac.h> 33 const struct device *dac; in cmd_setup() local 36 dac = device_get_binding(argv[args_indx.device]); in cmd_setup() 37 if (!dac) { in cmd_setup() 38 shell_error(sh, "DAC device not found"); in cmd_setup() 45 err = dac_channel_setup(dac, &cfg); in cmd_setup() 47 shell_error(sh, "Failed to setup DAC channel (err %d)", err); in cmd_setup() 56 const struct device *dac; in cmd_write_value() local 61 dac = device_get_binding(argv[args_indx.device]); in cmd_write_value() [all …]
|
D | Kconfig.mcux | 1 # DAC configuration options 8 bool "NXP Kinetis MCUX DAC driver" 12 Enable the driver for the NXP Kinetis MCUX DAC. 30 bool "DAC test output" 33 Enable the DAC test output.
|
D | dac_sam.c | 7 * @brief DAC driver for Atmel SAM MCU family. 20 #include <zephyr/drivers/dac.h> 57 Dacc *const dac = dev_cfg->regs; in dac_sam_isr() local 61 int_stat = dac->DACC_ISR & dac->DACC_IMR; in dac_sam_isr() 65 dac->DACC_IDR = DACC_IDR_TXRDY0; in dac_sam_isr() 70 dac->DACC_IDR = DACC_IDR_TXRDY1; in dac_sam_isr() 79 Dacc *const dac = dev_cfg->regs; in dac_sam_channel_setup() local 89 dac->DACC_CHER = DACC_CHER_CH0 << channel_cfg->channel_id; in dac_sam_channel_setup() 99 Dacc *const dac = dev_cfg->regs; in dac_sam_write_value() local 105 if (dac->DACC_IMR & (DACC_IMR_TXRDY0 << channel)) { in dac_sam_write_value() [all …]
|
D | Kconfig.ltc166x | 1 # DAC configuration options 8 bool "Linear Technology LTC166X DAC" 13 Enable the driver for the Linear Technology LTC166X DAC 21 Linear Technology LTC166X DAC device driver initialization priority.
|
D | Kconfig.ad56xx | 1 # DAC configuration options 8 bool "Analog Devices AD56xx DAC driver" 23 Enable the driver for the Analog Devices AD56xx DAC 31 Analog Devices AD56xx DAC device driver initialization priority.
|
/Zephyr-Core-3.6.0/dts/bindings/dac/ |
D | espressif,esp32-dac.yaml | 5 Espressif Digital to Analog converter (DAC) control node 10 Two GPIO pads can only be connected to the DAC peripheral. 13 - GPIO25 as DAC channel 1 14 - GPIO26 as DAC channel 2 17 - GPIO17 as DAC channel 1 18 - GPIO18 as DAC channel 2 20 To enable the DAC peripheral it must be enabled in the board 23 &dac { 27 To specify the DAC channel to use, dts overlay must include 28 properties 'dac-channel-id', which uses zero based channel index. [all …]
|
D | ti,dacx0508-base.yaml | 4 include: [dac-controller.yaml, spi-device.yaml] 11 DAC voltage reference select 13 See constants in dt-bindings/dac/dacx0508.h. 21 See constants in dt-bindings/dac/dacx0508.h. 29 See constants in dt-bindings/dac/dacx0508.h. 37 See constants in dt-bindings/dac/dacx0508.h. 45 See constants in dt-bindings/dac/dacx0508.h. 53 See constants in dt-bindings/dac/dacx0508.h. 61 See constants in dt-bindings/dac/dacx0508.h. 69 See constants in dt-bindings/dac/dacx0508.h. [all …]
|
D | gd,gd32-dac.yaml | 4 description: GigaDevice GD32 series DAC module 6 compatible: "gd,gd32-dac" 8 include: [dac-controller.yaml, reset-device.yaml, pinctrl-device.yaml] 22 description: Number of DAC output channels 28 description: Reset value of DAC output. Defaults to 0, the SoC default.
|
D | nxp,kinetis-dac.yaml | 4 description: NXP Kinetis MCUX DAC 6 compatible: "nxp,kinetis-dac" 8 include: dac-controller.yaml 17 description: DAC voltage reference select
|
/Zephyr-Core-3.6.0/samples/drivers/dac/ |
D | README.rst | 1 .. zephyr:code-sample:: dac 2 :name: Digital-to-Analog Converter (DAC) 5 Generate an analog sawtooth signal using the DAC driver API. 10 This sample demonstrates how to use the :ref:`DAC driver API <dac_api>`. 15 The DAC output is defined in the board's devicetree and pinmux file. 17 The board's :ref:`/zephyr,user <dt-zephyr-user>` node must have ``dac``, 18 ``dac-channel-id``, and ``dac-resolution`` properties set. See the predefined 19 overlays in :zephyr_file:`samples/drivers/dac/boards` for examples. 27 :zephyr-app: samples/drivers/dac 38 :zephyr-app: samples/drivers/dac [all …]
|
D | sample.yaml | 2 name: DAC driver sample 4 sample.drivers.dac: 5 tags: DAC 46 depends_on: dac 53 - Generating sawtooth signal at DAC channel ([0-9]*).
|
/Zephyr-Core-3.6.0/tests/drivers/build_all/dac/ |
D | testcase.yaml | 5 - dac 7 drivers.dac.build: 13 drivers.dac.mcux.build: 15 drivers.dac.mcux32.build: 17 drivers.dac.sam0.build: 19 drivers.dac.stm32.build:
|
/Zephyr-Core-3.6.0/include/zephyr/drivers/ |
D | dac.h | 9 * @brief DAC public API header file. 22 * @brief DAC driver APIs 23 * @defgroup dac_interface DAC driver APIs 29 * @brief Structure for specifying the configuration of a DAC channel. 32 /** Channel identifier of the DAC that should be configured. */ 34 /** Desired resolution of the DAC (depends on device capabilities). */ 50 * Type definition of DAC API function for configuring a channel. 57 * Type definition of DAC API function for setting a write request. 64 * DAC driver API 66 * This is the mandatory API any DAC driver needs to expose. [all …]
|
/Zephyr-Core-3.6.0/samples/drivers/dac/boards/ |
D | esp32_devkitc_wroom.overlay | 9 dac = <&dac>; 10 dac-channel-id = <0>; 11 dac-resolution = <8>; 15 &dac {
|
D | yd_esp32.overlay | 9 dac = <&dac>; 10 dac-channel-id = <0>; 11 dac-resolution = <8>; 15 &dac {
|
D | esp32_devkitc_wrover.overlay | 9 dac = <&dac>; 10 dac-channel-id = <0>; 11 dac-resolution = <8>; 15 &dac {
|
D | esp32s2_saola.overlay | 9 dac = <&dac>; 10 dac-channel-id = <0>; 11 dac-resolution = <8>; 15 &dac {
|
D | longan_nano.overlay | 9 dac = <&dac>; 10 dac-channel-id = <0>; 11 dac-resolution = <12>;
|
D | longan_nano_lite.overlay | 9 dac = <&dac>; 10 dac-channel-id = <0>; 11 dac-resolution = <12>;
|
D | gd32f450i_eval.overlay | 9 dac = <&dac>; 10 dac-channel-id = <0>; 11 dac-resolution = <12>;
|
D | gd32e103v_eval.overlay | 9 dac = <&dac>; 10 dac-channel-id = <0>; 11 dac-resolution = <12>;
|
D | gd32a503v_eval.overlay | 9 dac = <&dac>; 10 dac-channel-id = <0>; 11 dac-resolution = <12>;
|
/Zephyr-Core-3.6.0/samples/drivers/dac/src/ |
D | main.c | 9 #include <zephyr/drivers/dac.h> 13 #if (DT_NODE_HAS_PROP(ZEPHYR_USER_NODE, dac) && \ 16 #define DAC_NODE DT_PHANDLE(ZEPHYR_USER_NODE, dac) 37 printk("DAC device %s is not ready\n", dac_dev->name); in main() 44 printk("Setting up of DAC channel failed with code %d\n", ret); in main() 48 printk("Generating sawtooth signal at DAC channel %d.\n", in main() 51 /* Number of valid DAC values, e.g. 4096 for 12-bit DAC */ in main()
|
/Zephyr-Core-3.6.0/tests/drivers/dac/dac_api/ |
D | testcase.yaml | 3 - dac 7 drivers.dac.api: 8 depends_on: dac
|