OpenBIC
OpenSource Bridge-IC
ds160pt801.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
17#ifndef DS160PT801_H
18#define DS160PT801_H
19
20#include "plat_def.h"
21#ifdef ENABLE_DS160PT801
22
23#include "hal_i2c.h"
24
25enum {
26 DS160PT801_READ_TEMP,
27};
28
29bool ds160pt801_get_fw_version(I2C_MSG *i2c_msg, uint8_t *version);
30uint8_t ds160pt801_fw_update(I2C_MSG *msg, uint32_t *offset, uint32_t *msg_len, uint8_t *msg_buf,
31 uint8_t flag);
32bool ds160pt801_read_data(I2C_MSG *msg, uint16_t offset, uint8_t *rxbuf, uint16_t length);
33
34#endif
35
36#endif
uint32_t version
Definition: pldm_base.h:1
uint32_t offset
Definition: pldm_firmware_update.h:0
uint32_t length
Definition: pldm_firmware_update.h:1
Definition: hal_i2c.h:163