12-bit DAC Driver Library
|
| void | DL_DAC12_init (DAC12_Regs *dac12, const DL_DAC12_Config *config) |
| | Initialize the DAC module. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_enablePower (DAC12_Regs *dac12) |
| | Enables the Peripheral Write Enable (PWREN) register for the DAC12. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_disablePower (DAC12_Regs *dac12) |
| | Disables the Peripheral Write Enable (PWREN) register for the DAC12. More...
|
| |
| __STATIC_INLINE bool | DL_DAC12_isPowerEnabled (const DAC12_Regs *dac12) |
| | Returns if the Peripheral Write Enable (PWREN) register for the DAC12 is enabled. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_reset (DAC12_Regs *dac12) |
| | Resets dac12 peripheral. More...
|
| |
| __STATIC_INLINE bool | DL_DAC12_isReset (const DAC12_Regs *dac12) |
| | Returns if dac12 peripheral was reset. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_enable (DAC12_Regs *dac12) |
| | Enables the DAC module. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_disable (DAC12_Regs *dac12) |
| | Disables the DAC Module. More...
|
| |
| __STATIC_INLINE bool | DL_DAC12_isEnabled (const DAC12_Regs *dac12) |
| | Checks the enable bit of the DAC. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_configDataFormat (DAC12_Regs *dac12, DL_DAC12_REPRESENTATION rep, DL_DAC12_RESOLUTION res) |
| | Sets all elements of the input data format at once. More...
|
| |
| __STATIC_INLINE DL_DAC12_AMP | DL_DAC12_getAmplifier (const DAC12_Regs *dac12) |
| | Gets the currently configured amplifier setting. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_setAmplifier (DAC12_Regs *dac12, DL_DAC12_AMP ampVal) |
| | Sets the DAC and output amplifer setting. More...
|
| |
| __STATIC_INLINE DL_DAC12_VREF_SOURCE | DL_DAC12_getReferenceVoltageSource (const DAC12_Regs *dac12) |
| | Gets the currently configured reference voltage source. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_setReferenceVoltageSource (DAC12_Regs *dac12, DL_DAC12_VREF_SOURCE refsVal) |
| | Set the reference voltage source of the DAC. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_enableOutputPin (DAC12_Regs *dac12) |
| | Enables the DAC output by connecting it to the OUT0 pin. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_disableOutputPin (DAC12_Regs *dac12) |
| | Disable the DAC output by disconnecting it from the OUT0 pin. More...
|
| |
| __STATIC_INLINE bool | DL_DAC12_isOutputPinEnabled (const DAC12_Regs *dac12) |
| | Checks to see whether the output is connected. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_enableFIFO (DAC12_Regs *dac12) |
| | Enables the FIFO module. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_disableFIFO (DAC12_Regs *dac12) |
| | Disables the FIFO. More...
|
| |
| __STATIC_INLINE bool | DL_DAC12_isFIFOEnabled (const DAC12_Regs *dac12) |
| | Checks whether the FIFO is enabled. More...
|
| |
| __STATIC_INLINE DL_DAC12_FIFO_THRESHOLD | DL_DAC12_getFIFOThreshold (const DAC12_Regs *dac12) |
| | Gets the FIFO threshold. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_setFIFOThreshold (DAC12_Regs *dac12, DL_DAC12_FIFO_THRESHOLD fifoThreshold) |
| | Sets the FIFO threshold. More...
|
| |
| __STATIC_INLINE DL_DAC12_FIFO_TRIGGER | DL_DAC12_getFIFOTriggerSource (const DAC12_Regs *dac12) |
| | Gets the FIFO read trigger source. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_setFIFOTriggerSource (DAC12_Regs *dac12, DL_DAC12_FIFO_TRIGGER fifoTrig) |
| | Sets the FIFO read trigger source. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_enableDMATrigger (DAC12_Regs *dac12) |
| | Enables the DMA trigger generator. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_disableDMATrigger (DAC12_Regs *dac12) |
| | Disables the DMA trigger generator. More...
|
| |
| __STATIC_INLINE bool | DL_DAC12_isDMATriggerEnabled (const DAC12_Regs *dac12) |
| | Checks whether the DMA trigger generator is enabled. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_enableSampleTimeGenerator (DAC12_Regs *dac12) |
| | Enables the sample time generator. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_disableSampleTimeGenerator (DAC12_Regs *dac12) |
| | Disables the sample time generator. More...
|
| |
| __STATIC_INLINE bool | DL_DAC12_isSampleTimeGeneratorEnabled (const DAC12_Regs *dac12) |
| | Checks whether the sample time trigger generator is enabled. More...
|
| |
| __STATIC_INLINE DL_DAC12_SAMPLES_PER_SECOND | DL_DAC12_getSampleRate (const DAC12_Regs *dac12) |
| | Gets the sample trigger rate of the sample time generator. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_setSampleRate (DAC12_Regs *dac12, DL_DAC12_SAMPLES_PER_SECOND sampleRate) |
| | Sets the sample triggering rate of the sample time generator. More...
|
| |
| __STATIC_INLINE bool | DL_DAC12_isCalibrationRunning (const DAC12_Regs *dac12) |
| | Checks whether a calibration sequence is currently running. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_startCalibration (DAC12_Regs *dac12) |
| | Initiates the DAC offset error calibration sequence. More...
|
| |
| __STATIC_INLINE uint32_t | DL_DAC12_getCalibrationData (const DAC12_Regs *dac12) |
| | Gets the DAC Calibration offset. More...
|
| |
| void | DL_DAC12_performSelfCalibrationBlocking (DAC12_Regs *dac12) |
| | Perform calibration sequence. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_output8 (DAC12_Regs *dac12, uint8_t dataValue) |
| | Outputs an 8-bit data value. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_output12 (DAC12_Regs *dac12, uint32_t dataValue) |
| | Outputs a 12-bit Data Value. More...
|
| |
| uint32_t | DL_DAC12_fillFIFO8 (DAC12_Regs *dac12, const uint8_t *buffer, uint32_t count) |
| | Fills the DAC fifo with 8-bit data values from the buffer. More...
|
| |
| uint32_t | DL_DAC12_fillFIFO12 (DAC12_Regs *dac12, const uint16_t *buffer, uint32_t count) |
| | Fills the DAC fifo with 12-bit data values from the buffer. More...
|
| |
| void | DL_DAC12_outputBlocking8 (DAC12_Regs *dac12, uint8_t data) |
| | Blocking 8-bit output to the DAC FIFO. More...
|
| |
| void | DL_DAC12_outputBlocking12 (DAC12_Regs *dac12, uint16_t data) |
| | Blocking 12-bit output to the DAC FIFO. More...
|
| |
| __STATIC_INLINE uint32_t | DL_DAC12_getInterruptStatus (const DAC12_Regs *dac12, uint32_t interruptMask) |
| | Checks the raw interrupt status of one or more interrupts. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_clearInterruptStatus (DAC12_Regs *dac12, uint32_t interruptMask) |
| | Clears the interrupt status of one or more interrupts. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_enableInterrupt (DAC12_Regs *dac12, uint32_t interruptMask) |
| | Enables one or more interrupts. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_disableInterrupt (DAC12_Regs *dac12, uint32_t interruptMask) |
| | Disables one or more interrupts. More...
|
| |
| __STATIC_INLINE DL_DAC12_IIDX | DL_DAC12_getPendingInterrupt (const DAC12_Regs *dac12) |
| | Gets the highest priority pending interrupt. More...
|
| |
| __STATIC_INLINE bool | DL_DAC12_isFIFOFull (const DAC12_Regs *dac12) |
| | Checks if the DAC FIFO is currently full. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_setPublisherChanID (DAC12_Regs *dac12, uint8_t chanID) |
| | Sets the event publisher channel id. More...
|
| |
| __STATIC_INLINE uint8_t | DL_DAC12_getPublisherChanID (const DAC12_Regs *dac12) |
| | Gets the event publisher channel id. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_setSubscriberChanID (DAC12_Regs *dac12, DL_DAC12_SUBSCRIBER_INDEX index, uint8_t chanID) |
| | Sets the event subscriber channel id. More...
|
| |
| __STATIC_INLINE uint8_t | DL_DAC12_getSubscriberChanID (DAC12_Regs *dac12, DL_DAC12_SUBSCRIBER_INDEX index) |
| | Gets the event subscriber channel id. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_enableEvent (DAC12_Regs *dac12, uint32_t eventMask) |
| | Enable DAC event. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_disableEvent (DAC12_Regs *dac12, uint32_t eventMask) |
| | Disable DAC event. More...
|
| |
| __STATIC_INLINE uint32_t | DL_DAC12_getEnabledEvents (const DAC12_Regs *dac12, uint32_t eventMask) |
| | Check which DAC events are enabled. More...
|
| |
| __STATIC_INLINE uint32_t | DL_DAC12_getEnabledEventStatus (const DAC12_Regs *dac12, uint32_t eventMask) |
| | Check event flag of enabled DAC event. More...
|
| |
| __STATIC_INLINE uint32_t | DL_DAC12_getRawEventsStatus (const DAC12_Regs *dac12, uint32_t eventMask) |
| | Check interrupt flag of any DAC event. More...
|
| |
| __STATIC_INLINE void | DL_DAC12_clearEventsStatus (DAC12_Regs *dac12, uint32_t eventMask) |
| | Clear pending DAC events. More...
|
| |