Go to the source code of this file.
Macros | |
#define | DAC_LOCK_CONTROL (0x1U) |
Header Files. More... | |
#define | DAC_LOCK_SHADOW (0x2U) |
Lock the shadow value register. More... | |
#define | DAC_LOCK_OUTPUT (0x4U) |
Lock the output enable register. More... | |
#define | DAC_REG_BYTE_MASK (0xFFU) |
Register Byte Mask. More... | |
#define | DAC_LOCK_KEY (0xA000U) |
DAC Lock Key. More... | |
Enumerations | |
enum | DAC_ReferenceVoltage { DAC_REF_VREF = 0, DAC_REF_VDDA = 1 } |
enum | DAC_LoadMode { DAC_LOAD_SYSCLK = 0, DAC_LOAD_PWMSYNC = 4 } |
Values that can be passed to DAC_setLoadMode() as the mode parameter. More... | |
Functions | |
static uint16_t | DAC_getRevision (uint32_t base) |
static void | DAC_setReferenceVoltage (uint32_t base, DAC_ReferenceVoltage source) |
static void | DAC_setLoadMode (uint32_t base, DAC_LoadMode mode) |
static void | DAC_setPWMSyncSignal (uint32_t base, uint16_t signal) |
static uint16_t | DAC_getActiveValue (uint32_t base) |
static void | DAC_setShadowValue (uint32_t base, uint16_t value) |
static uint16_t | DAC_getShadowValue (uint32_t base) |
static void | DAC_enableOutput (uint32_t base) |
static void | DAC_disableOutput (uint32_t base) |
static void | DAC_setOffsetTrim (uint32_t base, int16_t offset) |
static int16_t | DAC_getOffsetTrim (uint32_t base) |
static void | DAC_lockRegister (uint32_t base, uint16_t reg) |
static bool | DAC_isRegisterLocked (uint32_t base, uint16_t reg) |
void | DAC_tuneOffsetTrim (uint32_t base, Float32 referenceVoltage) |