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

Go to the source code of this file.

Macros

#define MAX_SENSOR_SIZE   60
 
#define INA231_POWER_SEN_FACTOR_RB   0xF0
 
#define INA231_POWER_UCT   0x96
 
#define INA231_VOLTAGE_UCT   0x2F
 
#define INA231_VOLTAGE_LCT   0x25
 
#define ADC_12V_SEN_FACTOR_M   0x3E
 
#define ADC_12V_SEN_FACTOR_RB   0xD0
 
#define ADC_12V_UCT   0xD4
 
#define ADC_12V_LCT   0xAF
 
#define ADC_3V3_SEN_FACTOR_M   0x11
 
#define ADC_3V3_SEN_FACTOR_RB   0xD0
 
#define ADC_3V3_UCT   0xCD
 
#define ADC_3V3_LCT   0xB7
 
#define INA231_VOL_SEN_FACTOR_M   ADC_12V_SEN_FACTOR_M
 
#define INA231_VOL_SEN_FACTOR_RB   ADC_12V_SEN_FACTOR_RB
 
#define INA231_VOL_UCT   ADC_12V_UCT
 
#define INA231_VOL_LCT   ADC_12V_LCT
 
#define HSC_VIN_SEN_FACTOR_M   0x06
 
#define HSC_VIN_SEN_FACTOR_EXP_RB   0xE0
 
#define HSC_IOUT_SEN_FACTOR_M   0x05
 
#define HSC_IOUT_SEN_FACTOR_EXP_RB   0xE0
 
#define HSC_PIN_SEN_FACTOR_M   0x06
 
#define HSC_PIN_SEN_FACTOR_EXP_RB   0xF0
 
#define HSC_T_SEN_FACTOR_M   0x01
 
#define HSC_T_SEN_FACTOR_EXP_RB   0x00
 

Functions

uint8_t plat_get_sdr_size ()
 
void load_sdr_table (void)
 

Macro Definition Documentation

◆ ADC_12V_LCT

#define ADC_12V_LCT   0xAF

◆ ADC_12V_SEN_FACTOR_M

#define ADC_12V_SEN_FACTOR_M   0x3E

◆ ADC_12V_SEN_FACTOR_RB

#define ADC_12V_SEN_FACTOR_RB   0xD0

◆ ADC_12V_UCT

#define ADC_12V_UCT   0xD4

◆ ADC_3V3_LCT

#define ADC_3V3_LCT   0xB7

◆ ADC_3V3_SEN_FACTOR_M

#define ADC_3V3_SEN_FACTOR_M   0x11

◆ ADC_3V3_SEN_FACTOR_RB

#define ADC_3V3_SEN_FACTOR_RB   0xD0

◆ ADC_3V3_UCT

#define ADC_3V3_UCT   0xCD

◆ HSC_IOUT_SEN_FACTOR_EXP_RB

#define HSC_IOUT_SEN_FACTOR_EXP_RB   0xE0

◆ HSC_IOUT_SEN_FACTOR_M

#define HSC_IOUT_SEN_FACTOR_M   0x05

◆ HSC_PIN_SEN_FACTOR_EXP_RB

#define HSC_PIN_SEN_FACTOR_EXP_RB   0xF0

◆ HSC_PIN_SEN_FACTOR_M

#define HSC_PIN_SEN_FACTOR_M   0x06

◆ HSC_T_SEN_FACTOR_EXP_RB

#define HSC_T_SEN_FACTOR_EXP_RB   0x00

◆ HSC_T_SEN_FACTOR_M

#define HSC_T_SEN_FACTOR_M   0x01

◆ HSC_VIN_SEN_FACTOR_EXP_RB

#define HSC_VIN_SEN_FACTOR_EXP_RB   0xE0

◆ HSC_VIN_SEN_FACTOR_M

#define HSC_VIN_SEN_FACTOR_M   0x06

◆ INA231_POWER_SEN_FACTOR_RB

#define INA231_POWER_SEN_FACTOR_RB   0xF0

◆ INA231_POWER_UCT

#define INA231_POWER_UCT   0x96

◆ INA231_VOL_LCT

#define INA231_VOL_LCT   ADC_12V_LCT

◆ INA231_VOL_SEN_FACTOR_M

#define INA231_VOL_SEN_FACTOR_M   ADC_12V_SEN_FACTOR_M

◆ INA231_VOL_SEN_FACTOR_RB

#define INA231_VOL_SEN_FACTOR_RB   ADC_12V_SEN_FACTOR_RB

◆ INA231_VOL_UCT

#define INA231_VOL_UCT   ADC_12V_UCT

◆ INA231_VOLTAGE_LCT

#define INA231_VOLTAGE_LCT   0x25

◆ INA231_VOLTAGE_UCT

#define INA231_VOLTAGE_UCT   0x2F

◆ MAX_SENSOR_SIZE

#define MAX_SENSOR_SIZE   60

Function Documentation

◆ load_sdr_table()

void load_sdr_table ( void  )

◆ plat_get_sdr_size()

uint8_t plat_get_sdr_size ( )