7 #ifndef __MSP430WARE_DAC12_A_H__ 8 #define __MSP430WARE_DAC12_A_H__ 10 #include "inc/hw_memmap.h" 12 #ifdef __MSP430_HAS_DAC12_2__ 25 #include "inc/hw_memmap.h" 108 #define DAC12_A_VREF_INT (DAC12SREF_0) 109 #define DAC12_A_VREF_AVCC (DAC12SREF_1) 110 #define DAC12_A_VREF_EXT (DAC12SREF_2) 119 #define DAC12_A_AMP_OFF_PINOUTHIGHZ (DAC12AMP_0) 120 #define DAC12_A_AMP_OFF_PINOUTLOW (DAC12AMP_1) 121 #define DAC12_A_AMP_LOWIN_LOWOUT (DAC12AMP_2) 122 #define DAC12_A_AMP_LOWIN_MEDOUT (DAC12AMP_3) 123 #define DAC12_A_AMP_LOWIN_HIGHOUT (DAC12AMP_4) 124 #define DAC12_A_AMP_MEDIN_MEDOUT (DAC12AMP_5) 125 #define DAC12_A_AMP_MEDIN_HIGHOUT (DAC12AMP_6) 126 #define DAC12_A_AMP_HIGHIN_HIGHOUT (DAC12AMP_7) 135 #define DAC12_A_OUTPUT_1 (!(DAC12OPS)) 136 #define DAC12_A_OUTPUT_2 (DAC12OPS) 152 #define DAC12_A_SUBMODULE_0 (0x00) 153 #define DAC12_A_SUBMODULE_1 (0x10) 162 #define DAC12_A_VREFx1 (DAC12IR) 163 #define DAC12_A_VREFx2 (DAC12OG) 164 #define DAC12_A_VREFx3 (0x0) 173 #define DAC12_A_TRIGGER_ENCBYPASS (DAC12LSEL_0) 174 #define DAC12_A_TRIGGER_ENC (DAC12LSEL_1) 175 #define DAC12_A_TRIGGER_TA (DAC12LSEL_2) 176 #define DAC12_A_TRIGGER_TB (DAC12LSEL_3) 184 #define DAC12_A_RESOLUTION_8BIT (DAC12RES) 185 #define DAC12_A_RESOLUTION_12BIT (!(DAC12RES)) 193 #define DAC12_A_JUSTIFICATION_RIGHT (!(DAC12DFJ)) 194 #define DAC12_A_JUSTIFICATION_LEFT (DAC12DFJ) 202 #define DAC12_A_UNSIGNED_BINARY (!(DAC12DF)) 203 #define DAC12_A_SIGNED_2SCOMPLEMENT (DAC12DF) 211 #define DAC12_A_INT_ACTIVE (DAC12IFG) 212 #define DAC12_A_INT_INACTIVE (0x00) 499 uint16_t calibrationOffsetValue);
603 uint16_t resolutionSelect);
632 uint8_t inputJustification,
665 #endif // __MSP430WARE_DAC12_A_H__ void DAC12_A_enableInterrupt(uint16_t baseAddress, uint8_t submoduleSelect)
Enables the DAC12_A module interrupt source.
Definition: dac12_a.c:68
uint16_t positiveReferenceVoltage
Definition: dac12_a.h:50
void DAC12_A_setCalibrationOffset(uint16_t baseAddress, uint8_t submoduleSelect, uint16_t calibrationOffsetValue)
Returns the calibrated offset of the output buffer.
Definition: dac12_a.c:115
void DAC12_A_setAmplifierSetting(uint16_t baseAddress, uint8_t submoduleSelect, uint8_t amplifierSetting)
Sets the amplifier settings for the Vref+ and Vout buffers.
Definition: dac12_a.c:42
Used in the DAC12_A_init() function as the param parameter.
Definition: dac12_a.h:31
void DAC12_A_calibrateOutput(uint16_t baseAddress, uint8_t submoduleSelect)
Calibrates the output offset.
Definition: dac12_a.c:92
void DAC12_A_disableGrouping(uint16_t baseAddress)
Disables grouping of two DAC12_A modules in a dual DAC12_A system.
Definition: dac12_a.c:63
uint16_t DAC12_A_getCalibrationData(uint16_t baseAddress, uint8_t submoduleSelect)
Returns the calibrated offset of the output buffer.
Definition: dac12_a.c:109
uint16_t DAC12_A_getInterruptStatus(uint16_t baseAddress, uint8_t submoduleSelect)
Returns the status of the DAC12_A module interrupt flag.
Definition: dac12_a.c:80
uint8_t submoduleSelect
Definition: dac12_a.h:36
void DAC12_A_setInputDataFormat(uint16_t baseAddress, uint8_t submoduleSelect, uint8_t inputJustification, uint8_t inputSign)
Sets the input data format for the DAC12_A module.
Definition: dac12_a.c:171
void DAC12_A_clearInterrupt(uint16_t baseAddress, uint8_t submoduleSelect)
Clears the DAC12_A module interrupt flag.
Definition: dac12_a.c:86
uint8_t amplifierSetting
Definition: dac12_a.h:80
void DAC12_A_enableConversions(uint16_t baseAddress, uint8_t submoduleSelect)
Enables triggers to start conversions.
Definition: dac12_a.c:131
bool DAC12_A_init(uint16_t baseAddress, DAC12_A_initParam *param)
Initializes the DAC12_A module with the specified settings.
Definition: dac12_a.c:21
void DAC12_A_enableGrouping(uint16_t baseAddress)
Enables grouping of two DAC12_A modules in a dual DAC12_A system.
Definition: dac12_a.c:58
void DAC12_A_setData(uint16_t baseAddress, uint8_t submoduleSelect, uint16_t data)
Sets the given data into the buffer to be converted.
Definition: dac12_a.c:137
uint16_t outputVoltageMultiplier
Definition: dac12_a.h:56
void DAC12_A_disableInterrupt(uint16_t baseAddress, uint8_t submoduleSelect)
Disables the DAC12_A module interrupt source.
Definition: dac12_a.c:74
uint16_t conversionTriggerSelect
Definition: dac12_a.h:97
uint32_t DAC12_A_getDataBufferMemoryAddressForDMA(uint16_t baseAddress, uint8_t submoduleSelect)
Returns the address of the specified DAC12_A data buffer for the DMA module.
Definition: dac12_a.c:199
void DAC12_A_disable(uint16_t baseAddress, uint8_t submoduleSelect)
Clears the amplifier settings to disable the DAC12_A module.
Definition: dac12_a.c:51
void DAC12_A_disableConversions(uint16_t baseAddress, uint8_t submoduleSelect)
Disables triggers to start conversions.
Definition: dac12_a.c:144
uint16_t outputSelect
Definition: dac12_a.h:41
void DAC12_A_setResolution(uint16_t baseAddress, uint8_t submoduleSelect, uint16_t resolutionSelect)
Sets the resolution to be used by the DAC12_A module.
Definition: dac12_a.c:150