DAC Module¶
Note
The DAC Module contains functions for applying a specific voltage to a pin.
Doxygen:
Features¶
Available DACs¶
DAC1_CH1
: DAC1 Channel 1, found on connector X8DAC1_CH2
: DAC1 Channel 2, found on connector X8
Applying a voltage¶
To apply a specific voltage to a pin, the following code can be used.
if (R_SUCCESS(DAC_SetValue(DAC1_CH1, 2.5))) {
// Successfully applied 2.5V to DAC1_CH1
}
-
result_t DAC_SetValue(DAC_Handle_t handle, float32_t value)¶
Sets the voltage on a DAC pin.
- Parameters
handle – DAC Handle
value – Value to set in Volts
- Returns
Status result