dac.h 330 B

1234567891011121314
  1. #ifndef DAC_H_
  2. #include "ti/driverlib/dl_i2c.h"
  3. #include "ti_msp_dl_config.h"
  4. #include <stdbool.h>
  5. #define DAC_TARGET_BASE_ADDRESS (0x60)
  6. #define CHANNEL_A_VALUE (800) // in mAmps
  7. #define I2C_GENERAL_CALL_ADDR 0x00
  8. bool DAC_fastWrite(uint16_t channel_a_value);
  9. void DAC_UpdateOutput();
  10. uint8_t DAC_ReadCurrentAddress();
  11. #endif