Paparazzi UAS  v5.15_devel-88-gb3ad7fe
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
adc_arch.c File Reference

Dummy functions for handling of ADC hardware in sim. More...

#include "mcu_periph/adc.h"
+ Include dependency graph for adc_arch.c:

Go to the source code of this file.

Functions

void adc_buf_channel (uint8_t adc_channel, struct adc_buf *s, uint8_t av_nb_sample)
 Registers a buffer to be used to store the specified converted channel Usage: More...
 
void adc_init (void)
 Starts conversions. More...
 

Detailed Description

Dummy functions for handling of ADC hardware in sim.

Definition in file adc_arch.c.

Function Documentation

void adc_buf_channel ( uint8_t  adc_channel,
struct adc_buf s,
uint8_t  av_nb_sample 
)

Registers a buffer to be used to store the specified converted channel Usage:

1 struct adc_buf channel_buf;
2 adc_buf_channel(1, &channel_buf, 12);

Registers channel_buf as buffer for ADC channel 1, with max index 12 (12 samples).

Registers a buffer to be used to store the specified converted channel Usage:

Todo:
: fx a more general ADC

Definition at line 29 of file adc_arch.c.

void adc_init ( void  )

Starts conversions.

Starts conversions.

Initialize ADC drivers, buffers and start conversion in the background

Starts conversions.

Definition at line 33 of file adc_arch.c.