OpenBIC
OpenSource Bridge-IC
|
#include <stdlib.h>
#include <sys/util.h>
#include <sys/byteorder.h>
#include <drivers/gpio.h>
#include <modbus/modbus.h>
#include <time.h>
#include <logging/log.h>
#include "sensor.h"
#include "modbus_server.h"
#include "fru.h"
#include "eeprom.h"
#include "libutil.h"
#include "plat_modbus.h"
#include "plat_sensor_table.h"
#include "plat_fru.h"
#include "hal_gpio.h"
#include "plat_gpio.h"
#include <modbus_internal.h>
#include "plat_util.h"
#include "plat_pwm.h"
#include "util_sys.h"
#include "util_spi.h"
#include "plat_version.h"
#include "plat_hwmon.h"
#include "plat_log.h"
#include "plat_i2c.h"
#include "plat_threshold.h"
#include "plat_fsc.h"
#include "plat_led.h"
#include "plat_status.h"
#include "plat_fru_date.h"
#include "plat_isr.h"
Classes | |
struct | modbus_server |
Macros | |
#define | FW_UPDATE_SWITCH_FC 0x64 |
#define | FW_UPDATE_SWITCH_ADDR 0x0119 |
#define | FW_UPDATE_ENABLE_DATA 0x0101 |
#define | FW_UPDATE_DISABLE_DATA 0x0100 |
#define | UPADTE_FW_DATA_LENGTH_MIN 3 |
#define | LOG_BEGIN_MODBUS_ADDR MODBUS_EVENT_1_ERROR_LOG_ADDR |
#define | TIMER_SINCE_LAST_ON_LENGTH 4 |
#define | BOARD_MFG_DATA_READ_START_OFFSET 3 |
#define | IPMI_FRU_DATA_LENGTH_MASK BIT_MASK(6) |
Variables | |
modbus_server | modbus_server_config [] |
pump_reset_struct | modbus_pump_setting_table [] |
modbus_command_mapping | modbus_command_table [] |
#define BOARD_MFG_DATA_READ_START_OFFSET 3 |
#define FW_UPDATE_DISABLE_DATA 0x0100 |
#define FW_UPDATE_ENABLE_DATA 0x0101 |
#define FW_UPDATE_SWITCH_ADDR 0x0119 |
#define FW_UPDATE_SWITCH_FC 0x64 |
#define IPMI_FRU_DATA_LENGTH_MASK BIT_MASK(6) |
#define LOG_BEGIN_MODBUS_ADDR MODBUS_EVENT_1_ERROR_LOG_ADDR |
#define TIMER_SINCE_LAST_ON_LENGTH 4 |
#define UPADTE_FW_DATA_LENGTH_MIN 3 |
int change_modbus_slave_addr | ( | uint8_t | idx, |
uint8_t | addr | ||
) |
int init_custom_modbus_server | ( | void | ) |
void init_modbus_command_table | ( | void | ) |
LOG_MODULE_REGISTER | ( | plat_modbus | ) |
uint8_t modbus_command_i2c_master_write_read | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_command_i2c_master_write_read_response | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_command_i2c_scan | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_command_i2c_scan_bus_set | ( | modbus_command_mapping * | cmd | ) |
MODBUS_CUSTOM_FC_DEFINE | ( | custom_fc64 | , |
custom_handler_fc64 | , | ||
FW_UPDATE_SWITCH_FC | , | ||
NULL | |||
) |
uint8_t modbus_error_log_count | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_error_log_event | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_fw_download | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_get_aalc_sensor_status | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_get_fw_reversion | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_get_led_status | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_get_manual_flag | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_get_manual_pwm | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_get_pwm | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_get_rpu_addr | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_get_senser_reading | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_get_setpoint | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_get_setpoint_enable | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_get_sticky_sensor_status | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_leakage_status_read | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_pump_setting | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_pump_setting_get | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_read_fruid_data | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_read_hmi_version | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_read_pump_running_time | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_read_time_since_last_on | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_read_uptime | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_sensor_poll_get | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_sensor_poll_set | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_set_log_level | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_set_manual_flag | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_set_manual_pwm | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_set_rpu_addr | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_set_setpoint | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_set_setpoint_enable | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_set_status_flag_config | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_set_sticky_sensor_status | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_status_flag_get | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_status_flag_set | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_write_fruid_data | ( | modbus_command_mapping * | cmd | ) |
uint8_t modbus_write_hmi_version | ( | modbus_command_mapping * | cmd | ) |
modbus_command_mapping * ptr_to_modbus_table | ( | uint16_t | addr | ) |
modbus_command_mapping modbus_command_table[] |
pump_reset_struct modbus_pump_setting_table[] |
modbus_server modbus_server_config[] |