2019-03-22 23:32:56 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2018-10-28 20:23:31 -03:00
|
|
|
/*
|
|
|
|
initialise adc
|
|
|
|
*/
|
|
|
|
void adc_init(void);
|
|
|
|
|
|
|
|
/*
|
|
|
|
capture VSERVO
|
|
|
|
*/
|
2023-12-09 09:54:26 -04:00
|
|
|
uint16_t adc_vservo(void);
|
2018-10-28 20:23:31 -03:00
|
|
|
|
|
|
|
/*
|
|
|
|
capture VRSSI
|
|
|
|
*/
|
2023-12-09 09:54:26 -04:00
|
|
|
uint16_t adc_vrssi(void);
|
|
|
|
|
|
|
|
/* start another update */
|
|
|
|
void adc_sample_channels(void);
|
|
|
|
|
|
|
|
/* capture VRSSI */
|
|
|
|
void adc_enable_vrssi(void);
|
|
|
|
|
|
|
|
/* don't capture VRSSI */
|
|
|
|
void adc_disable_vrssi(void);
|