OpenBIC
OpenSource Bridge-IC
sdr.c File Reference
#include <stdio.h>
#include <string.h>
#include "sdr.h"
#include "sensor.h"
#include "plat_sdr_table.h"
#include "plat_sensor_table.h"
#include "plat_ipmb.h"
#include <logging/log.h>
Include dependency graph for sdr.c:

Functions

 LOG_MODULE_REGISTER (sdr)
 
void SDR_clear_ID (void)
 
uint16_t SDR_get_record_ID (uint16_t current_ID)
 
bool SDR_check_record_ID (uint16_t current_ID)
 
uint16_t SDR_get_RSV_ID (uint8_t rsv_table_index)
 
bool SDR_RSV_ID_check (uint16_t ID, uint8_t rsv_table_index)
 
__weak void pal_extend_full_sdr_table (void)
 
int get_sdr_index (uint8_t sensor_num)
 
void add_full_sdr_table (SDR_Full_sensor add_item)
 
void change_sensor_threshold (uint8_t sensor_num, uint8_t threshold_type, uint8_t change_value)
 
void change_sensor_mbr (uint8_t sensor_num, uint8_t mbr_type, uint16_t change_value)
 
uint8_t sdr_init (void)
 
uint8_t plat_get_sdr_size ()
 
__weak void load_sdr_table (void)
 

Variables

SDR_INFO sdr_info
 
bool is_sdr_not_init = true
 
SDR_Full_sensor plat_sdr_table []
 
const int SDR_TABLE_SIZE
 
SDR_Full_sensorfull_sdr_table
 
uint8_t sensor_config_size = 0
 
uint8_t sdr_count = 0
 

Function Documentation

◆ add_full_sdr_table()

void add_full_sdr_table ( SDR_Full_sensor  add_item)
Here is the call graph for this function:

◆ change_sensor_mbr()

void change_sensor_mbr ( uint8_t  sensor_num,
uint8_t  mbr_type,
uint16_t  change_value 
)
Here is the call graph for this function:

◆ change_sensor_threshold()

void change_sensor_threshold ( uint8_t  sensor_num,
uint8_t  threshold_type,
uint8_t  change_value 
)
Here is the call graph for this function:

◆ get_sdr_index()

int get_sdr_index ( uint8_t  sensor_num)

◆ load_sdr_table()

__weak void load_sdr_table ( void  )

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( sdr  )

◆ pal_extend_full_sdr_table()

__weak void pal_extend_full_sdr_table ( void  )

◆ plat_get_sdr_size()

uint8_t plat_get_sdr_size ( )

◆ SDR_check_record_ID()

bool SDR_check_record_ID ( uint16_t  current_ID)

◆ SDR_clear_ID()

void SDR_clear_ID ( void  )

◆ SDR_get_record_ID()

uint16_t SDR_get_record_ID ( uint16_t  current_ID)

◆ SDR_get_RSV_ID()

uint16_t SDR_get_RSV_ID ( uint8_t  rsv_table_index)

◆ sdr_init()

uint8_t sdr_init ( void  )
Here is the call graph for this function:

◆ SDR_RSV_ID_check()

bool SDR_RSV_ID_check ( uint16_t  ID,
uint8_t  rsv_table_index 
)

Variable Documentation

◆ full_sdr_table

SDR_Full_sensor* full_sdr_table

◆ is_sdr_not_init

bool is_sdr_not_init = true

◆ plat_sdr_table

SDR_Full_sensor plat_sdr_table[]
extern

◆ sdr_count

uint8_t sdr_count = 0

◆ sdr_info

SDR_INFO sdr_info

◆ SDR_TABLE_SIZE

const int SDR_TABLE_SIZE
extern

◆ sensor_config_size

uint8_t sensor_config_size = 0