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
*/
16
bool
modbus_i2c_master_write_read
(
const
uint16_t *modbus_data, uint8_t
data_len
);
17
void
modbus_i2c_master_write_read_response
(uint16_t *modbus_data);
18
void
regs_reverse
(uint16_t reg_len, uint16_t *
data
);
19
void
plat_enable_sensor_poll
();
20
void
plat_disable_sensor_poll
();
21
void
set_status_flag_config
(uint8_t
idx
, uint32_t
val
);
22
void
get_status_flag_config
(uint8_t *
idx
, uint32_t *
val
);
23
uint8_t
get_rpu_ready_pin_status
();
24
float
pow_of_10
(int8_t exp);
25
bool
set_log_level
(uint16_t
data
);
26
uint8_t
get_fsc_mode
();
idx
uint8_t idx
Definition:
plat_util.c:39
val
uint32_t val
Definition:
plat_util.c:40
pow_of_10
float pow_of_10(int8_t exp)
Definition:
plat_util.c:136
regs_reverse
void regs_reverse(uint16_t reg_len, uint16_t *data)
Definition:
plat_util.c:94
get_rpu_ready_pin_status
uint8_t get_rpu_ready_pin_status()
Definition:
plat_util.c:127
get_fsc_mode
uint8_t get_fsc_mode()
Definition:
plat_util.c:185
plat_disable_sensor_poll
void plat_disable_sensor_poll()
Definition:
plat_util.c:108
plat_enable_sensor_poll
void plat_enable_sensor_poll()
Definition:
plat_util.c:101
set_log_level
bool set_log_level(uint16_t data)
Definition:
plat_util.c:154
set_status_flag_config
void set_status_flag_config(uint8_t idx, uint32_t val)
Definition:
plat_util.c:116
modbus_i2c_master_write_read_response
void modbus_i2c_master_write_read_response(uint16_t *modbus_data)
Definition:
plat_util.c:87
get_status_flag_config
void get_status_flag_config(uint8_t *idx, uint32_t *val)
Definition:
plat_util.c:121
modbus_i2c_master_write_read
bool modbus_i2c_master_write_read(const uint16_t *modbus_data, uint8_t data_len)
Definition:
plat_util.c:45
data_len
uint16_t data_len
Definition:
ipmb.h:14
data
uint8_t data[]
Definition:
isl69259.c:2
meta-facebook
aalc-rpu
src
platform
plat_util.h
Generated by
1.9.2