OpenBIC
OpenSource Bridge-IC
plat_class.h File Reference
#include <stdio.h>
Include dependency graph for plat_class.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ADC_INFO
 

Macros

#define AST1030_ADC_BASE_ADDR   0x7e6e9000
 

Enumerations

enum  ADC_CHANNEL {
  CHANNEL_6 = 6 , CHANNEL_7 = 7 , CHANNEL_6 = 6 , CHANNEL_7 = 7 ,
  CHANNEL_6 = 6 , CHANNEL_7 = 7 , CHANNEL_6 = 6 , CHANNEL_6 = 6 ,
  CHANNEL_6 = 6 , CHANNEL_7 = 7 , CHANNEL_5 = 5 , NUMBER_OF_ADC_CHANNEL = 16 ,
  ADC_CHANNEL_2 = 2 , ADC_CHANNEL_12 = 12 , ADC_CHANNEL_13 = 13 , NUMBER_OF_ADC_CHANNEL = 16
}
 

Functions

bool get_adc_voltage (int channel, float *voltage)
 

Macro Definition Documentation

◆ AST1030_ADC_BASE_ADDR

#define AST1030_ADC_BASE_ADDR   0x7e6e9000

Enumeration Type Documentation

◆ ADC_CHANNEL

Enumerator
CHANNEL_6 
CHANNEL_7 
CHANNEL_6 
CHANNEL_7 
CHANNEL_6 
CHANNEL_7 
CHANNEL_6 
CHANNEL_6 
CHANNEL_6 
CHANNEL_7 
CHANNEL_5 
NUMBER_OF_ADC_CHANNEL 
ADC_CHANNEL_2 
ADC_CHANNEL_12 
ADC_CHANNEL_13 
NUMBER_OF_ADC_CHANNEL 

Function Documentation

◆ get_adc_voltage()

bool get_adc_voltage ( int  channel,
float *  voltage 
)