OpenBIC
OpenSource Bridge-IC
plat_util.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16bool modbus_i2c_master_write_read(const uint16_t *modbus_data, uint8_t data_len);
17void modbus_i2c_master_write_read_response(uint16_t *modbus_data);
18void regs_reverse(uint16_t reg_len, uint16_t *data);
21void set_status_flag_config(uint8_t idx, uint32_t val);
22void get_status_flag_config(uint8_t *idx, uint32_t *val);
24float pow_of_10(int8_t exp);
25bool set_log_level(uint16_t data);
26uint8_t get_fsc_mode();
uint8_t idx
Definition: plat_util.c:39
uint32_t val
Definition: plat_util.c:40
float pow_of_10(int8_t exp)
Definition: plat_util.c:136
void regs_reverse(uint16_t reg_len, uint16_t *data)
Definition: plat_util.c:94
uint8_t get_rpu_ready_pin_status()
Definition: plat_util.c:127
uint8_t get_fsc_mode()
Definition: plat_util.c:185
void plat_disable_sensor_poll()
Definition: plat_util.c:108
void plat_enable_sensor_poll()
Definition: plat_util.c:101
bool set_log_level(uint16_t data)
Definition: plat_util.c:154
void set_status_flag_config(uint8_t idx, uint32_t val)
Definition: plat_util.c:116
void modbus_i2c_master_write_read_response(uint16_t *modbus_data)
Definition: plat_util.c:87
void get_status_flag_config(uint8_t *idx, uint32_t *val)
Definition: plat_util.c:121
bool modbus_i2c_master_write_read(const uint16_t *modbus_data, uint8_t data_len)
Definition: plat_util.c:45
uint16_t data_len
Definition: ipmb.h:14
uint8_t data[]
Definition: isl69259.c:2