52 #include "preprocessor.h"
55 #include "user_board.h"
58 #define ADC_BUFFER_SIZE 1024
59 #define ADC_INPUT_CHANNELS 4
61 #define ADC_SPI_PORT AVR32_SPI0
62 #define ADC_SPI_INDEX 0
67 typedef uint16_t (*generatorfunction)(uint32_t);
76 void ads1274_set_DAC_generator_function(generatorfunction new_function_generator );
81 void ads1274_init_DAC(
void);
88 void ads1274_ADC_switch_clock(
bool on_off);
96 void ads1274_ADC_switch_channel(int32_t channel,
bool on_off);
103 void ads1274_ADC_set_mode(int32_t mode);
108 void ads1274_ADC_start_sampling(
void);
113 void ads1274_ADC_start_oneshot(
void);
118 void ads1274_ADC_stop_sampling(
void);
125 bool Sampling_Complete(
void);
132 int32_t get_interrupt_counter(
void);
139 int32_t get_sampling_status(
void);
149 float get_sample(int32_t channel, int32_t sample);