Home
last modified time | relevance | path

Searched refs:DAC (Results 1 – 25 of 441) sorted by relevance

12345678910>>...18

/bsp/apm32/libraries/APM32F4xx_Library/APM32F4xx_StdPeriphDriver/src/
A Dapm32f4xx_dac.c71 temp1 = DAC->CTRL; in DAC_Config()
82 DAC->CTRL = temp1; in DAC_Config()
114 DAC->CTRL_B.ENCH1 = BIT_SET; in DAC_Enable()
118 DAC->CTRL_B.ENCH2 = BIT_SET; in DAC_Enable()
241 DAC->SWTRG_B.SWTRG1 = BIT_SET; in DAC_EnableDualSoftwareTrigger()
242 DAC->SWTRG_B.SWTRG2 = BIT_SET; in DAC_EnableDualSoftwareTrigger()
254 DAC->SWTRG_B.SWTRG1 = BIT_RESET; in DAC_DisableDualSoftwareTrigger()
275 DAC->CTRL &= 0xFF3FFF3F; in DAC_EnableWaveGeneration()
276 DAC->CTRL |= wave << channel; in DAC_EnableWaveGeneration()
506 return (DAC->CTRL_B.DMAUDIEN1 && DAC->STS_B.DMAUDFLG1); in DAC_ReadIntFlag()
[all …]
/bsp/apm32/libraries/APM32F0xx_Library/APM32F0xx_StdPeriphDriver/src/
A Dapm32f0xx_dac.c100 tmp1 = DAC->CTRL; in DAC_Config()
111 DAC->CTRL = tmp1; in DAC_Config()
148 DAC->CTRL_B.ENCH1 = SET; in DAC_Enable()
152 DAC->CTRL_B.ENCH2 = SET; in DAC_Enable()
172 DAC->CTRL_B.ENCH1 = RESET; in DAC_Disable()
176 DAC->CTRL_B.ENCH2 = RESET; in DAC_Disable()
196 DAC->SWTRG_B.SWTRG1 = SET; in DAC_EnableSoftwareTrigger()
200 DAC->SWTRG_B.SWTRG2 = SET; in DAC_EnableSoftwareTrigger()
239 DAC->SWTRG |= DUAL_SWTRIG_SET; in DAC_EnableDualSoftwareTrigger()
555 DAC->STS &= (uint32_t)~flag; in DAC_ClearStatusFlag()
[all …]
/bsp/apm32/libraries/APM32E10x_Library/APM32E10x_StdPeriphDriver/src/
A Dapm32e10x_dac.c72 tmp1 = DAC->CTRL; in DAC_Config()
82 DAC->CTRL = tmp1; in DAC_Config()
118 DAC->CTRL_B.ENCH1 = BIT_SET; in DAC_Enable()
122 DAC->CTRL_B.ENCH2 = BIT_SET; in DAC_Enable()
245 DAC->SWTRG_B.SWTRG1 = BIT_SET; in DAC_EnableDualSoftwareTrigger()
246 DAC->SWTRG_B.SWTRG2 = BIT_SET; in DAC_EnableDualSoftwareTrigger()
258 DAC->SWTRG_B.SWTRG1 = BIT_RESET; in DAC_DisableDualSoftwareTrigger()
259 DAC->SWTRG_B.SWTRG2 = BIT_RESET; in DAC_DisableDualSoftwareTrigger()
280 DAC->CTRL &= 0xFF3FFF3F; in DAC_EnableWaveGeneration()
281 DAC->CTRL |= wave << channel; in DAC_EnableWaveGeneration()
[all …]
/bsp/apm32/libraries/APM32F10x_Library/APM32F10x_StdPeriphDriver/src/
A Dapm32f10x_dac.c71 tmp1 = DAC->CTRL; in DAC_Config()
82 DAC->CTRL = tmp1; in DAC_Config()
118 DAC->CTRL_B.ENCH1 = BIT_SET; in DAC_Enable()
122 DAC->CTRL_B.ENCH2 = BIT_SET; in DAC_Enable()
245 DAC->SWTRG_B.SWTRG1 = BIT_SET; in DAC_EnableDualSoftwareTrigger()
246 DAC->SWTRG_B.SWTRG2 = BIT_SET; in DAC_EnableDualSoftwareTrigger()
258 DAC->SWTRG_B.SWTRG1 = BIT_RESET; in DAC_DisableDualSoftwareTrigger()
259 DAC->SWTRG_B.SWTRG2 = BIT_RESET; in DAC_DisableDualSoftwareTrigger()
280 DAC->CTRL &= 0xFF3FFF3F; in DAC_EnableWaveGeneration()
281 DAC->CTRL |= wave << channel; in DAC_EnableWaveGeneration()
[all …]
/bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Src/
A Dhal_dac.c57DAC->CR &= ~((DAC_CR_BOFF1 | DAC_CR_TEN1 | DAC_CR_TSEL1 | DAC_CR_WAVE1 | DAC_CR_MAMP1) << channel); in DAC_Init()
58 DAC->CR |= (((u32)(init_struct->DAC_Trigger) | (u32)(init_struct->DAC_WaveGeneration) | in DAC_Init()
84 (state) ? (DAC->CR |= DAC_CR_EN1 << channel) : (DAC->CR &= ~(DAC_CR_EN1 << channel)); in DAC_Cmd()
95 (state) ? (DAC->CR |= DAC_CR_DMAEN1 << channel) : (DAC->CR &= ~(DAC_CR_DMAEN1 << channel)); in DAC_DMACmd()
106 (state) ? (DAC->SWTRIGR |= (DAC_SWTRIGR_SWTRIG1 << (channel >> 4))) in DAC_SoftwareTriggerCmd()
107 : (DAC->SWTRIGR &= ~(DAC_SWTRIGR_SWTRIG1 << (channel >> 4))); in DAC_SoftwareTriggerCmd()
117 (state) ? (DAC->SWTRIGR |= (DAC_SWTRIGR_SWTRIG1 | DAC_SWTRIGR_SWTRIG2)) in DAC_DualSoftwareTriggerCmd()
118 : (DAC->SWTRIGR &= ~(DAC_SWTRIGR_SWTRIG1 | DAC_SWTRIGR_SWTRIG2)); in DAC_DualSoftwareTriggerCmd()
130 (state) ? (DAC->CR |= wave << channel) : (DAC->CR &= ~(wave << channel)); in DAC_WaveGenerationCmd()
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/
A Dn32l43x_dac.c134 tmpreg1 = DAC->CTRL; in DAC_Init()
148 DAC->CTRL = tmpreg1; in DAC_Init()
185 DAC->CTRL |= DAC_CTRL_CHEN ; in DAC_Enable()
190 DAC->CTRL &= ~DAC_CTRL_CHEN ; in DAC_Enable()
210 DAC->CTRL |= DAC_CTRL_DMAEN; in DAC_DmaEnable()
215 DAC->CTRL &= ~DAC_CTRL_DMAEN; in DAC_DmaEnable()
235 DAC->SOTTR |= DAC_SOTTR_TREN ; in DAC_SoftTrgEnable()
240 DAC->SOTTR &= ~(DAC_SOTTR_TREN); in DAC_SoftTrgEnable()
257 DAC->SOTTR |= DUAL_SWTRIG_SET; in DAC_SoftwareTrgEnable()
285 tmp=DAC->CTRL; in DAC_WaveGenerationEnable()
[all …]
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/
A Dn32l40x_dac.c134 tmpreg1 = DAC->CTRL; in DAC_Init()
148 DAC->CTRL = tmpreg1; in DAC_Init()
185 DAC->CTRL |= DAC_CTRL_CHEN ; in DAC_Enable()
190 DAC->CTRL &= ~DAC_CTRL_CHEN ; in DAC_Enable()
210 DAC->CTRL |= DAC_CTRL_DMAEN; in DAC_DmaEnable()
215 DAC->CTRL &= ~DAC_CTRL_DMAEN; in DAC_DmaEnable()
235 DAC->SOTTR |= DAC_SOTTR_TREN ; in DAC_SoftTrgEnable()
240 DAC->SOTTR &= ~(DAC_SOTTR_TREN); in DAC_SoftTrgEnable()
257 DAC->SOTTR |= DUAL_SWTRIG_SET; in DAC_SoftwareTrgEnable()
285 tmp=DAC->CTRL; in DAC_WaveGenerationEnable()
[all …]
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/
A Dn32g43x_dac.c134 tmpreg1 = DAC->CTRL; in DAC_Init()
148 DAC->CTRL = tmpreg1; in DAC_Init()
185 DAC->CTRL |= DAC_CTRL_CHEN ; in DAC_Enable()
190 DAC->CTRL &= ~DAC_CTRL_CHEN ; in DAC_Enable()
210 DAC->CTRL |= DAC_CTRL_DMAEN; in DAC_DmaEnable()
215 DAC->CTRL &= ~DAC_CTRL_DMAEN; in DAC_DmaEnable()
235 DAC->SOTTR |= DAC_SOTTR_TREN ; in DAC_SoftTrgEnable()
240 DAC->SOTTR &= ~(DAC_SOTTR_TREN); in DAC_SoftTrgEnable()
257 DAC->SOTTR |= DUAL_SWTRIG_SET; in DAC_SoftwareTrgEnable()
285 tmp=DAC->CTRL; in DAC_WaveGenerationEnable()
[all …]
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_standard_peripheral/Include/
A Dgd32vf103_dac.h42 #define DAC DAC_BASE macro
47 #define DAC_CTL REG32(DAC + 0x00U) /*!< DAC control register */
48 #define DAC_SWT REG32(DAC + 0x04U) /*!< DAC software trigger register */
49 #define DAC0_R12DH REG32(DAC + 0x08U) /*!< DAC0 12-bit right-aligned data holding re…
50 #define DAC0_L12DH REG32(DAC + 0x0CU) /*!< DAC0 12-bit left-aligned data holding reg…
51 #define DAC0_R8DH REG32(DAC + 0x10U) /*!< DAC0 8-bit right-aligned data holding reg…
52 #define DAC1_R12DH REG32(DAC + 0x14U) /*!< DAC1 12-bit right-aligned data holding re…
53 #define DAC1_L12DH REG32(DAC + 0x18U) /*!< DAC1 12-bit left-aligned data holding reg…
54 #define DAC1_R8DH REG32(DAC + 0x1CU) /*!< DAC1 8-bit right-aligned data holding reg…
58 #define DAC0_DO REG32(DAC + 0x2CU) /*!< DAC0 data output register */
[all …]
/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/StdPeriph_Driver/src/
A Dch32f20x_dac.c53 tmpreg1 = DAC->CTLR; in DAC_Init()
58 DAC->CTLR = tmpreg1; in DAC_Init()
88 DAC->CTLR |= (DAC_EN1 << DAC_Channel); in DAC_Cmd()
92 DAC->CTLR &= ~(DAC_EN1 << DAC_Channel); in DAC_Cmd()
109 DAC->CTLR |= (DAC_DMAEN1 << DAC_Channel); in DAC_DMACmd()
113 DAC->CTLR &= ~(DAC_DMAEN1 << DAC_Channel); in DAC_DMACmd()
130 DAC->SWTR |= (uint32_t)DAC_SWTRIG1 << (DAC_Channel >> 4); in DAC_SoftwareTriggerCmd()
148 DAC->SWTR |= DUAL_SWTR_SET ; in DAC_DualSoftwareTriggerCmd()
152 DAC->SWTR &= DUAL_SWTR_RESET; in DAC_DualSoftwareTriggerCmd()
172 DAC->CTLR |= DAC_Wave << DAC_Channel; in DAC_WaveGenerationCmd()
[all …]
/bsp/wch/arm/Libraries/CH32F10x_StdPeriph_Driver/StdPeriph_Driver/src/
A Dch32f10x_dac.c53 tmpreg1 = DAC->CTLR; in DAC_Init()
58 DAC->CTLR = tmpreg1; in DAC_Init()
88 DAC->CTLR |= (DAC_EN1 << DAC_Channel); in DAC_Cmd()
92 DAC->CTLR &= ~(DAC_EN1 << DAC_Channel); in DAC_Cmd()
109 DAC->CTLR |= (DAC_DMAEN1 << DAC_Channel); in DAC_DMACmd()
113 DAC->CTLR &= ~(DAC_DMAEN1 << DAC_Channel); in DAC_DMACmd()
130 DAC->SWTR |= (uint32_t)DAC_SWTRIG1 << (DAC_Channel >> 4); in DAC_SoftwareTriggerCmd()
134 DAC->SWTR &= ~((uint32_t)DAC_SWTRIG1 << (DAC_Channel >> 4)); in DAC_SoftwareTriggerCmd()
155 DAC->CTLR |= DAC_Wave << DAC_Channel; in DAC_WaveGenerationCmd()
159 DAC->CTLR &= ~(DAC_Wave << DAC_Channel); in DAC_WaveGenerationCmd()
/bsp/mm32l3xx/Libraries/MM32L3xx/HAL_lib/src/
A DHAL_dac.c137 tmpreg1 = DAC->CR; in DAC_Init()
151 DAC->CR = tmpreg1; in DAC_Init()
191 DAC->CR |= CR_EN_Set << DAC_Channel; in DAC_Cmd()
196 DAC->CR &= ~(CR_EN_Set << DAC_Channel); in DAC_Cmd()
218 DAC->CR |= CR_DMAEN_Set << DAC_Channel; in DAC_DMACmd()
223 DAC->CR &= ~(CR_DMAEN_Set << DAC_Channel); in DAC_DMACmd()
245 DAC->SWTRIGR |= SWTRIGR_SWTRIG_Set << (DAC_Channel >> 4); in DAC_SoftwareTriggerCmd()
268 DAC->SWTRIGR |= DUAL_SWTRIG_Set ; in DAC_DualSoftwareTriggerCmd()
273 DAC->SWTRIGR &= DUAL_SWTRIG_Reset; in DAC_DualSoftwareTriggerCmd()
300 DAC->CR |= DAC_Wave << DAC_Channel; in DAC_WaveGenerationCmd()
[all …]
/bsp/airm2m/air32f103/libraries/AIR32F10xLib/src/
A Dair32f10x_dac.c102 tmpreg1 = DAC->CR; in DAC_Init()
116 DAC->CR = tmpreg1; in DAC_Init()
156 DAC->CR |= (DAC_CR_EN1 << DAC_Channel); in DAC_Cmd()
161 DAC->CR &= ~(DAC_CR_EN1 << DAC_Channel); in DAC_Cmd()
183 DAC->CR |= (DAC_CR_DMAEN1 << DAC_Channel); in DAC_DMACmd()
188 DAC->CR &= ~(DAC_CR_DMAEN1 << DAC_Channel); in DAC_DMACmd()
210 DAC->SWTRIGR |= (uint32_t)DAC_SWTRIGR_SWTRIG1 << (DAC_Channel >> 4); in DAC_SoftwareTriggerCmd()
233 DAC->SWTRIGR |= DUAL_SWTRIG_SET ; in DAC_DualSoftwareTriggerCmd()
238 DAC->SWTRIGR &= DUAL_SWTRIG_RESET; in DAC_DualSoftwareTriggerCmd()
265 DAC->CR |= DAC_Wave << DAC_Channel; in DAC_WaveGenerationCmd()
[all …]
/bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/src/
A Dn32g45x_dac.c136 tmpreg1 = DAC->CTRL; in DAC_Init()
150 DAC->CTRL = tmpreg1; in DAC_Init()
188 DAC->CTRL |= (DAC_CTRL_CH1EN << DAC_Channel); in DAC_Enable()
193 DAC->CTRL &= ~(DAC_CTRL_CH1EN << DAC_Channel); in DAC_Enable()
214 DAC->CTRL |= (DAC_CTRL_DMA1EN << DAC_Channel); in DAC_DmaEnable()
219 DAC->CTRL &= ~(DAC_CTRL_DMA1EN << DAC_Channel); in DAC_DmaEnable()
240 DAC->SOTTR |= (uint32_t)DAC_SOTTR_TR1EN << (DAC_Channel >> 4); in DAC_SoftTrgEnable()
262 DAC->SOTTR |= DUAL_SWTRIG_SET; in DAC_DualSoftwareTrgEnable()
267 DAC->SOTTR &= DUAL_SWTRIG_RESET; in DAC_DualSoftwareTrgEnable()
291 tmp=DAC->CTRL; in DAC_WaveGenerationEnable()
[all …]
/bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/src/
A Dn32g4fr_dac.c136 tmpreg1 = DAC->CTRL; in DAC_Init()
150 DAC->CTRL = tmpreg1; in DAC_Init()
188 DAC->CTRL |= (DAC_CTRL_CH1EN << DAC_Channel); in DAC_Enable()
193 DAC->CTRL &= ~(DAC_CTRL_CH1EN << DAC_Channel); in DAC_Enable()
214 DAC->CTRL |= (DAC_CTRL_DMA1EN << DAC_Channel); in DAC_DmaEnable()
219 DAC->CTRL &= ~(DAC_CTRL_DMA1EN << DAC_Channel); in DAC_DmaEnable()
240 DAC->SOTTR |= (uint32_t)DAC_SOTTR_TR1EN << (DAC_Channel >> 4); in DAC_SoftTrgEnable()
262 DAC->SOTTR |= DUAL_SWTRIG_SET; in DAC_DualSoftwareTrgEnable()
267 DAC->SOTTR &= DUAL_SWTRIG_RESET; in DAC_DualSoftwareTrgEnable()
291 tmp=DAC->CTRL; in DAC_WaveGenerationEnable()
[all …]
/bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/src/
A Dn32wb452_dac.c136 tmpreg1 = DAC->CTRL; in DAC_Init()
150 DAC->CTRL = tmpreg1; in DAC_Init()
188 DAC->CTRL |= (DAC_CTRL_CH1EN << DAC_Channel); in DAC_Enable()
193 DAC->CTRL &= ~(DAC_CTRL_CH1EN << DAC_Channel); in DAC_Enable()
214 DAC->CTRL |= (DAC_CTRL_DMA1EN << DAC_Channel); in DAC_DmaEnable()
219 DAC->CTRL &= ~(DAC_CTRL_DMA1EN << DAC_Channel); in DAC_DmaEnable()
240 DAC->SOTTR |= (uint32_t)DAC_SOTTR_TR1EN << (DAC_Channel >> 4); in DAC_SoftTrgEnable()
262 DAC->SOTTR |= DUAL_SWTRIG_SET; in DAC_DualSoftwareTrgEnable()
267 DAC->SOTTR &= DUAL_SWTRIG_RESET; in DAC_DualSoftwareTrgEnable()
291 tmp=DAC->CTRL; in DAC_WaveGenerationEnable()
[all …]
/bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/
A Dn32g45x_dac.c136 tmpreg1 = DAC->CTRL; in DAC_Init()
150 DAC->CTRL = tmpreg1; in DAC_Init()
188 DAC->CTRL |= (DAC_CTRL_CH1EN << DAC_Channel); in DAC_Enable()
193 DAC->CTRL &= ~(DAC_CTRL_CH1EN << DAC_Channel); in DAC_Enable()
214 DAC->CTRL |= (DAC_CTRL_DMA1EN << DAC_Channel); in DAC_DmaEnable()
219 DAC->CTRL &= ~(DAC_CTRL_DMA1EN << DAC_Channel); in DAC_DmaEnable()
240 DAC->SOTTR |= (uint32_t)DAC_SOTTR_TR1EN << (DAC_Channel >> 4); in DAC_SoftTrgEnable()
262 DAC->SOTTR |= DUAL_SWTRIG_SET; in DAC_DualSoftwareTrgEnable()
267 DAC->SOTTR &= DUAL_SWTRIG_RESET; in DAC_DualSoftwareTrgEnable()
291 tmp=DAC->CTRL; in DAC_WaveGenerationEnable()
[all …]
/bsp/ft32/libraries/FT32F0xx/FT32F0xx_Driver/Src/
A Dft32f0xx_dac.c23 tmpreg = DAC->CTRL; in DAC_Ref_Config()
27 DAC->CTRL |= tmpreg; in DAC_Ref_Config()
36 DAC->CTRL |= DAC_CTRL_EN; in DAC_Cmd()
40 DAC->CTRL &= ~DAC_CTRL_EN; in DAC_Cmd()
56 DAC->DATA1 = (uint32_t)Data; in DAC_SetChannel1Data()
64 DAC->DATA2 = (uint32_t)Data; in DAC_SetChannel2Data()
/bsp/synwit/libraries/SWM341_drivers/
A Ddrv_dac.c30 DAC_Open(DAC); in swm_dac_enabled()
44 DAC_Close(DAC); in swm_dac_disabled()
60 DAC->DHR = *value; in swm_dac_convert()
61 while(DAC->SR & DAC_SR_DHRFULL_Msk) __NOP(); in swm_dac_convert()
79 DAC_Init(DAC, DAC_FORMAT_LSB12B); in swm_dac_init()
/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/library/HT32F5xxxx_Driver/inc/
A Dht32f5xxxx_dac.h65 #define IS_DAC(DAC) (((DAC) == HT_DAC0) || ((DAC) == HT_DAC1)) argument
67 #define IS_DAC(DAC) ((DAC) == HT_DAC0)
/bsp/airm2m/air105/libraries/HAL_Driver/Src/
A Dcore_dac.c69 DMA_InitStruct.DMA_PeripheralBaseAddr = (uint32_t)&DAC->DAC_DATA; in DAC_Init()
81 while (DAC->DAC_CR1 & (1 << 29)); in DAC_Setup()
83 DAC->DAC_CR1 = (OutRMode << 5) | 0x0c; in DAC_Setup()
84 DAC->DAC_TIMER = ((SystemCoreClock >> 3) / Freq) - 1; in DAC_Setup()
85 DAC->DAC_FIFO_THR = 7; in DAC_Setup()
/bsp/stm32/stm32mp157a-st-ev1/
A DREADME_zh.md61 | DAC | 支持 | |
116 ##### 1. DAC
124 在使用设备前,需要先查找设备是否存在,可以使用命令 `dac probe` 后面跟注册的 DAC 设备的名称。如下所示:
138 设置 DAC 设备某个通道的数据可以使用命令 `dac write` 后面跟通道号。
/bsp/stm32/stm32mp157a-st-discovery/
A DREADME_zh.md53 | DAC | 支持 | |
114 ##### 2. DAC
122 在使用设备前,需要先查找设备是否存在,可以使用命令 `dac probe` 后面跟注册的 DAC 设备的名称。如下所示:
136 设置 DAC 设备某个通道的数据可以使用命令 `dac write` 后面跟通道号。
/bsp/mm32/libraries/MM32F3270_HAL/MM32F3270_HAL_Driver/Src/
A Dhal_dac.c31 DAC->CR = cr; in DAC_Init()
116 DAC->CR &= ~(DAC_CR_WAVE1_MASK << (channel << 4u)); in DAC_EnableAddNoise()
120 DAC->CR |= (( DAC_CR_WAVE1(1u) /* Noise wave need to set WAVEx = 01. */ in DAC_EnableAddNoise()
130 DAC->CR &= ~(DAC_CR_WAVE1_MASK << (channel << 4u)); in DAC_EnableAddTriangle()
134 DAC->CR |= (( DAC_CR_WAVE1(2u) /* Noise wave need to set WAVEx = 1x. */ in DAC_EnableAddTriangle()
/bsp/stm32/stm32h743-armfly-v7/
A DREADME.md69 23. ADC. DAC接口(可外接示波器模块)
89 \- DAC8501双路DAC模块(0-5V)
91 \- DAC8563双路DAC模块( -10V -> +10V)

Completed in 44 milliseconds

12345678910>>...18