OpenBIC
OpenSource Bridge-IC
raa228249.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#ifndef RAA228249_H
17#define RAA228249_H
18
19#include "stdint.h"
20#include "sensor.h"
21
22bool raa228249_get_crc(uint8_t bus, uint8_t addr, uint32_t *crc);
23bool raa228249_get_vout_max(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt);
24bool raa228249_get_vout_min(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt);
25bool raa228249_set_vout_max(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt);
26bool raa228249_set_vout_min(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt);
27int raa228249_get_remaining_wr(uint8_t bus, uint8_t addr, uint8_t *remain);
28bool raa228249_fwupdate(uint8_t bus, uint8_t addr, uint8_t *img_buff, uint32_t img_size);
29bool raa228249_get_vout_command(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt);
30bool raa228249_set_vout_command(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt);
31bool raa228249_get_vr_status(sensor_cfg *cfg, uint8_t rail, uint8_t vr_status_rail,
32 uint16_t *vr_status);
33bool raa228249_clear_vr_status(sensor_cfg *cfg, uint8_t rail);
34
35#endif
uint8_t addr
Definition: isl69259.c:0
bool raa228249_set_vout_command(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
Definition: raa228249.c:488
bool raa228249_clear_vr_status(sensor_cfg *cfg, uint8_t rail)
Definition: raa228249.c:579
bool raa228249_get_vout_min(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
Definition: raa228249.c:152
bool raa228249_get_vout_command(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
Definition: raa228249.c:470
bool raa228249_fwupdate(uint8_t bus, uint8_t addr, uint8_t *img_buff, uint32_t img_size)
Definition: raa228249.c:401
bool raa228249_get_crc(uint8_t bus, uint8_t addr, uint32_t *crc)
Definition: raa228249.c:302
bool raa228249_get_vr_status(sensor_cfg *cfg, uint8_t rail, uint8_t vr_status_rail, uint16_t *vr_status)
Definition: raa228249.c:505
bool raa228249_set_vout_min(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
Definition: raa228249.c:186
int raa228249_get_remaining_wr(uint8_t bus, uint8_t addr, uint8_t *remain)
Definition: raa228249.c:234
bool raa228249_set_vout_max(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
Definition: raa228249.c:169
bool raa228249_get_vout_max(sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
Definition: raa228249.c:135
Definition: sensor.h:255