TTK4155 Lab Node 1
Term project in the NTNU course TTK4155 Embedded and Industrial Computer Systems Design
Loading...
Searching...
No Matches
adc.h File Reference

ADC memory-mapped interface. More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  ADC_meas
 Container for ADC measurement results. More...

Functions

void ADC_init (void)
 Initialize the external memory–mapped ADC interface.
void ADC_start_conv (void)
 Start a conversion on the external ADC and wait for completion.
uint8_t ADC_read_ch (void)
 Read the current ADC channel sample.
void ADC_read_all (struct ADC_meas *output)
 Perform a full four-channel ADC conversion and return all results.
void ADC_test (void)
 Internal ADC test routine. (Currently disabled in implementation.).

Detailed Description

ADC memory-mapped interface.

Definition in file adc.h.