|
OpenBIC
OpenSource Bridge-IC
|
#include <stdlib.h>#include "plat_modbus.h"#include "plat_util.h"#include "modbus_server.h"#include <logging/log.h>#include "util_spi.h"#include "libutil.h"#include "sensor.h"#include "plat_gpio.h"#include "plat_pwm.h"#include "plat_fsc.h"#include "plat_hook.h"#include "plat_status.h"#include <shell/shell_uart.h>#include <logging/log_ctrl.h>
Macros | |
| #define | PLAT_UTIL_H |
| #define | I2C_MASTER_READ_BACK_MAX_SIZE 16 |
Functions | |
| LOG_MODULE_REGISTER (plat_util) | |
| bool | modbus_i2c_master_write_read (const uint16_t *modbus_data, uint8_t data_len) |
| void | modbus_i2c_master_write_read_response (uint16_t *modbus_data) |
| void | regs_reverse (uint16_t reg_len, uint16_t *data) |
| void | plat_enable_sensor_poll (void) |
| void | plat_disable_sensor_poll (void) |
| void | set_status_flag_config (uint8_t idx, uint32_t val) |
| void | get_status_flag_config (uint8_t *idx, uint32_t *val) |
| uint8_t | get_rpu_ready_pin_status () |
| float | pow_of_10 (int8_t exp) |
| bool | set_log_level (uint16_t data) |
| uint8_t | get_fsc_mode () |
| bool | get_abr (void) |
| void | set_abr (uint8_t onoff) |
| void | set_fmc_wdt (uint32_t val) |
Variables | |
| struct { | |
| uint8_t idx | |
| uint32_t val | |
| } | status_flag_config |
| #define I2C_MASTER_READ_BACK_MAX_SIZE 16 |
| #define PLAT_UTIL_H |
| bool get_abr | ( | void | ) |
| uint8_t get_fsc_mode | ( | ) |

| uint8_t get_rpu_ready_pin_status | ( | ) |

| void get_status_flag_config | ( | uint8_t * | idx, |
| uint32_t * | val | ||
| ) |
| LOG_MODULE_REGISTER | ( | plat_util | ) |
| bool modbus_i2c_master_write_read | ( | const uint16_t * | modbus_data, |
| uint8_t | data_len | ||
| ) |

| void modbus_i2c_master_write_read_response | ( | uint16_t * | modbus_data | ) |
| void plat_disable_sensor_poll | ( | void | ) |

| void plat_enable_sensor_poll | ( | void | ) |

| float pow_of_10 | ( | int8_t | exp | ) |
| void regs_reverse | ( | uint16_t | reg_len, |
| uint16_t * | data | ||
| ) |
| void set_abr | ( | uint8_t | onoff | ) |
| void set_fmc_wdt | ( | uint32_t | val | ) |
| bool set_log_level | ( | uint16_t | data | ) |
| void set_status_flag_config | ( | uint8_t | idx, |
| uint32_t | val | ||
| ) |
| uint8_t idx |
| struct { ... } status_flag_config |
| uint32_t val |