OpenBIC
OpenSource Bridge-IC
|
#include <logging/log.h>
#include "plat_class.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hal_gpio.h"
#include "hal_i2c.h"
#include "libutil.h"
#include "plat_gpio.h"
#include "plat_i2c.h"
Classes | |
struct | ADC_INFO |
struct | _1OU_CARD_MAPPING_TABLE |
Macros | |
#define | I2C_DATA_SIZE 5 |
#define | CPLD_1OU_CARD_DETECTION 0x09 |
#define | NUMBER_OF_ADC_CHANNEL 16 |
#define | AST1030_ADC_BASE_ADDR 0x7e6e9000 |
Functions | |
LOG_MODULE_REGISTER (plat_class) | |
bool | get_adc_voltage (int channel, float *voltage) |
uint8_t | get_system_class () |
CARD_STATUS | get_1ou_status () |
CARD_STATUS | get_2ou_status () |
uint8_t | get_hsc_module () |
void | init_hsc_module () |
void | init_platform_config () |
Variables | |
struct ADC_INFO | adc_info [NUMBER_OF_ADC_CHANNEL] |
struct _1OU_CARD_MAPPING_TABLE | _1ou_card_mapping_table [] |
#define AST1030_ADC_BASE_ADDR 0x7e6e9000 |
#define CPLD_1OU_CARD_DETECTION 0x09 |
#define I2C_DATA_SIZE 5 |
#define NUMBER_OF_ADC_CHANNEL 16 |
enum ADC_CHANNEL |
enum CONDITION |
CARD_STATUS get_1ou_status | ( | ) |
CARD_STATUS get_2ou_status | ( | ) |
bool get_adc_voltage | ( | int | channel, |
float * | voltage | ||
) |
uint8_t get_hsc_module | ( | ) |
uint8_t get_system_class | ( | ) |
void init_hsc_module | ( | ) |
void init_platform_config | ( | ) |
LOG_MODULE_REGISTER | ( | plat_class | ) |
struct _1OU_CARD_MAPPING_TABLE _1ou_card_mapping_table[] |
struct ADC_INFO adc_info[NUMBER_OF_ADC_CHANNEL] |