dac.h 325 B

12345678910111213141516
  1. #ifndef DAC_H_INCLUDED
  2. #define DAC_H_INCLUDED
  3. #include <stdint.h>
  4. void dac_init(void);
  5. int dac_write(const void *buf, unsigned int len);
  6. int dac_play(const void *buf, unsigned int len);
  7. void dac_play_direct(uint8_t *mem, uint32_t size);
  8. #define pot_get_master() pot_get(2)
  9. #define pot_set_master(x) pot_set(2,x)
  10. #endif