Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Functions | |
| void | DAC_Init (LPC_DAC_TypeDef *DACx) |
Initial ADC configuration
| |
| void | DAC_UpdateValue (LPC_DAC_TypeDef *DACx, uint32_t dac_value) |
| Update value to DAC. | |
| void | DAC_SetBias (LPC_DAC_TypeDef *DACx, uint32_t bias) |
| Set Maximum current for DAC. | |
| void | DAC_ConfigDAConverterControl (LPC_DAC_TypeDef *DACx, DAC_CONVERTER_CFG_Type *DAC_ConverterConfigStruct) |
| To enable the DMA operation and control DMA timer. | |
| void | DAC_SetDMATimeOut (LPC_DAC_TypeDef *DACx, uint32_t time_out) |
| Set reload value for interrupt/DMA counter. | |
Function Documentation
| void DAC_ConfigDAConverterControl | ( | LPC_DAC_TypeDef * | DACx, |
| DAC_CONVERTER_CFG_Type * | DAC_ConverterConfigStruct | ||
| ) |
To enable the DMA operation and control DMA timer.
- Parameters:
-
[in] DACx pointer to LPC_DAC_TypeDef [in] DAC_ConverterConfigStruct pointer to DAC_CONVERTER_CFG_Type - DBLBUF_ENA : enable/disable DACR double buffering feature
- CNT_ENA : enable/disable timer out counter
- DMA_ENA : enable/disable DMA access
- Returns:
- None
Definition at line 108 of file lpc17xx_dac.c.
| void DAC_Init | ( | LPC_DAC_TypeDef * | DACx ) |
Initial ADC configuration
- Maximum current is 700 uA
- Value to AOUT is 0.
- Parameters:
-
[in] DACx pointer to LPC_DAC_TypeDef
- Returns:
- None
Definition at line 54 of file lpc17xx_dac.c.
| void DAC_SetBias | ( | LPC_DAC_TypeDef * | DACx, |
| uint32_t | bias | ||
| ) |
Set Maximum current for DAC.
- Parameters:
-
[in] DACx pointer to LPC_DAC_TypeDef [in] bias : 0 is 700 uA 1 350 uA
- Returns:
- None
Definition at line 90 of file lpc17xx_dac.c.
| void DAC_SetDMATimeOut | ( | LPC_DAC_TypeDef * | DACx, |
| uint32_t | time_out | ||
| ) |
Set reload value for interrupt/DMA counter.
- Parameters:
-
[in] DACx pointer to LPC_DAC_TypeDef [in] time_out time out to reload for interrupt/DMA counter
- Returns:
- None
Definition at line 125 of file lpc17xx_dac.c.
| void DAC_UpdateValue | ( | LPC_DAC_TypeDef * | DACx, |
| uint32_t | dac_value | ||
| ) |
Update value to DAC.
- Parameters:
-
[in] DACx pointer to LPC_DAC_TypeDef [in] dac_value : value 10 bit to be converted to output
- Returns:
- None
Definition at line 71 of file lpc17xx_dac.c.
Generated on Tue Jul 12 2022 17:06:02 by
1.7.2