OpenBIC
OpenSource Bridge-IC
|
Go to the source code of this file.
Classes | |
struct | adc_info |
struct | board_rev_mappting_table |
Macros | |
#define | NUMBER_OF_ADC_CHANNEL 16 |
#define | AST1030_ADC_BASE_ADDR 0x7e6e9000 |
Enumerations | |
enum | ADC_REF_VOL_SELECTION { REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 } |
enum | ADC_CHANNEL_NUM { CHANNEL_1 = 1 } |
enum | BOARD_REV_ID { BOARD_REV_POC = 0x00 , BOARD_REV_EVT = 0x01 , BOARD_REV_DVT = 0x03 , BOARD_REV_PVT = 0x05 , BOARD_REV_MP = 0x06 , BOARD_POC = 0 , BOARD_POC2 , BOARD_EVT , BOARD_DVT , BOARD_PVT , BOARD_MP , UNKNOWN } |
Functions | |
bool | get_adc_voltage (int channel, float *voltage) |
uint8_t | get_board_revision () |
int | init_platform_config () |
#define AST1030_ADC_BASE_ADDR 0x7e6e9000 |
#define NUMBER_OF_ADC_CHANNEL 16 |
enum ADC_CHANNEL_NUM |
enum BOARD_REV_ID |
bool get_adc_voltage | ( | int | channel, |
float * | voltage | ||
) |
uint8_t get_board_revision | ( | ) |
int init_platform_config | ( | ) |