You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
239 B

  1. #ifndef DAC_H
  2. #define DAC_H
  3. #include "config.h"
  4. /* Initialize DAC (AD5542) */
  5. void dac_init(void);
  6. /* Write raw 16-bit value to DAC:
  7. 0xFFFF 4.9998v
  8. 0x8000 0v
  9. 0x0000 -5v
  10. */
  11. void dac_write(uint16_t val);
  12. #endif