38#ifndef MCP_FOUR_EIGHT_X_TWO_DOT_H
39#define MCP_FOUR_EIGHT_X_TWO_DOT_H
44#define DAC_CHANNEL_A true
45#define DAC_CHANNEL_B false
model_num_t
Enumerated constants to select the DAC model number.
void dac_set_voltage(bool channel_a, uint16_t millivolts)
Sends a new millivolts value to be output on DAC (Along with config settings).
void dac_set_voltage_12_bit(bool channel_a, uint16_t millivolts, bool fractional)
Sends a new millivolts value to be output on DAC (Along with config settings).
void init_dac(dac_config_t *p_config)
Initialisation routine (run once at startup).
void dac_reconfigure(void)
Applies new config settings.
void pulse_latch(void)
Pulses LDAC pin low for a brief time (1uS).
Struct for config values for each channel - this is only to be used as a nested struct within the dac...