2 * RPP driver implementation for ADC header file.
6 * @copyright Copyright (C) 2012-2013 Czech Technical University in Prague
9 * @author Carlos Jenkins <carlos@jenkins.co.cr>
20 * Send SPI command to DAC.
22 * This function translates parameters into a command and sends it through SPI.
24 * @param[in] pin The DAC pin number [0-3].
26 * @return SPI response if successful.
27 * -1 if pin out of range.
28 * -2 if value out of range.
30 int drv_dac_spi_transfer(uint8_t pin, boolean_t enabled, uint16_t value);
33 #endif /* __DRV_DAC_H */