STM8L15x Standard Peripherals Drivers: DAC_Registers_Bits_Definition

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

DAC_Registers_Bits_Definition

Defines

#define DAC_CR1_BOFF   ((uint8_t)0x02)
#define DAC_CR1_EN   ((uint8_t)0x01)
#define DAC_CR1_TEN   ((uint8_t)0x04)
#define DAC_CR1_TSEL   ((uint8_t)0x38)
#define DAC_CR1_WAVEN   ((uint8_t)0xC0)
#define DAC_CR2_DMAEN   ((uint8_t)0x10)
#define DAC_CR2_DMAUDRIE   ((uint8_t)0x20)
#define DAC_CR2_MAMPx   ((uint8_t)0x0F)
#define DAC_DHR8_8DHR   ((uint8_t)0xFF)
#define DAC_DORH_DORH   ((uint8_t)0x0F)
#define DAC_DORL_DORL   ((uint8_t)0xFF)
#define DAC_LDHRH_LDHRH   ((uint8_t)0xFF)
#define DAC_LDHRL_LDHRL   ((uint8_t)0xF0)
#define DAC_RDHRH_RDHRH   ((uint8_t)0x0F)
#define DAC_RDHRL_RDHRL   ((uint8_t)0xFF)
#define DAC_SR_DMAUDR1   ((uint8_t)0x01)
#define DAC_SR_DMAUDR2   ((uint8_t)0x02)
#define DAC_SWTRIGR_SWTRIG1   ((uint8_t)0x01)
#define DAC_SWTRIGR_SWTRIG2   ((uint8_t)0x02)

Define Documentation

#define DAC_CR1_BOFF   ((uint8_t)0x02)

DAC channel output buffer disable.

Definition at line 2459 of file stm8l15x.h.

Referenced by DAC_Init().

#define DAC_CR1_EN   ((uint8_t)0x01)

DAC channel enable.

Definition at line 2460 of file stm8l15x.h.

Referenced by DAC_Cmd().

#define DAC_CR1_TEN   ((uint8_t)0x04)

DAC channel trigger enable.

Definition at line 2458 of file stm8l15x.h.

Referenced by DAC_Init().

#define DAC_CR1_TSEL   ((uint8_t)0x38)

DAC channel trigger selection.

Definition at line 2457 of file stm8l15x.h.

Referenced by DAC_Init().

#define DAC_CR1_WAVEN   ((uint8_t)0xC0)

DAC channel wave generation enable.

Definition at line 2461 of file stm8l15x.h.

Referenced by DAC_WaveGenerationCmd().

#define DAC_CR2_DMAEN   ((uint8_t)0x10)

DAC DMA enable.

Definition at line 2465 of file stm8l15x.h.

Referenced by DAC_DMACmd().

#define DAC_CR2_DMAUDRIE   ((uint8_t)0x20)

DAC channel DMA underrun interrupt enable.

Definition at line 2464 of file stm8l15x.h.

#define DAC_CR2_MAMPx   ((uint8_t)0x0F)

DAC Dchannel wave generation config.

Definition at line 2466 of file stm8l15x.h.

Referenced by DAC_SetNoiseWaveLFSR(), and DAC_SetTriangleWaveAmplitude().

#define DAC_DHR8_8DHR   ((uint8_t)0xFF)

DAC 8bit data holding bits

Definition at line 2489 of file stm8l15x.h.

#define DAC_DORH_DORH   ((uint8_t)0x0F)

DAC data output register most significant bit

Definition at line 2492 of file stm8l15x.h.

#define DAC_DORL_DORL   ((uint8_t)0xFF)

DAC data output register least significant bit

Definition at line 2495 of file stm8l15x.h.

#define DAC_LDHRH_LDHRH   ((uint8_t)0xFF)

DAC left aligned data holding register most significant bits.

Definition at line 2483 of file stm8l15x.h.

#define DAC_LDHRL_LDHRL   ((uint8_t)0xF0)

DAC left aligned data holding register least significant bits.

Definition at line 2486 of file stm8l15x.h.

#define DAC_RDHRH_RDHRH   ((uint8_t)0x0F)

DAC right aligned data holding register most significant bits.

Definition at line 2477 of file stm8l15x.h.

#define DAC_RDHRL_RDHRL   ((uint8_t)0xFF)

DAC right aligned data holding register least significant bits.

Definition at line 2480 of file stm8l15x.h.

#define DAC_SR_DMAUDR1   ((uint8_t)0x01)

DAC channel 1 DMA underrun flag.

Definition at line 2473 of file stm8l15x.h.

#define DAC_SR_DMAUDR2   ((uint8_t)0x02)

DAC channel 2 DMA underrun flag.

Definition at line 2474 of file stm8l15x.h.

#define DAC_SWTRIGR_SWTRIG1   ((uint8_t)0x01)

DAC channel 1 software trigger.

Definition at line 2469 of file stm8l15x.h.

Referenced by DAC_DualSoftwareTriggerCmd(), and DAC_SoftwareTriggerCmd().

#define DAC_SWTRIGR_SWTRIG2   ((uint8_t)0x02)

DAC channel 2 software trigger.

Definition at line 2470 of file stm8l15x.h.

Referenced by DAC_DualSoftwareTriggerCmd().

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com