NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
adc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  adc_config_s
 
struct  drv_adc_config_s
 

Macros

#define ADC_CHANNEL_COUNT   (ADC_CHANNEL_MAX + 1)
 

Typedefs

typedef struct adc_config_s adc_config_t
 
typedef struct drv_adc_config_s drv_adc_config_t
 

Enumerations

enum  AdcChannel {
  ADC_BATTERY = 0, ADC_RSSI = 1, ADC_EXTERNAL1 = 2, ADC_CURRENT = 3,
  ADC_CHANNEL_MAX = ADC_CURRENT
}
 

Functions

void adcInit (drv_adc_config_t *init)
 
uint16_t adcGetChannel (uint8_t channel)
 

Macro Definition Documentation

#define ADC_CHANNEL_COUNT   (ADC_CHANNEL_MAX + 1)

Typedef Documentation

typedef struct adc_config_s adc_config_t

Enumeration Type Documentation

enum AdcChannel
Enumerator
ADC_BATTERY 
ADC_RSSI 
ADC_EXTERNAL1 
ADC_CURRENT 
ADC_CHANNEL_MAX 

Function Documentation

uint16_t adcGetChannel ( uint8_t  channel)
void adcInit ( drv_adc_config_t init)

Here is the call graph for this function: