OpenBIC
OpenSource Bridge-IC
tps53689.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 TPS53689_H
17#define TPS53689_H
18
25};
26
27struct tps_config {
28 uint8_t addr;
29 uint8_t crc[2];
30 uint8_t devid[6];
32};
33
34bool tps536xx_get_crc(uint8_t bus, uint8_t addr, uint32_t *crc);
35bool tps536xx_fwupdate(uint8_t bus, uint8_t addr, uint8_t *img_buff, uint32_t img_size);
36#endif
uint8_t addr
Definition: isl69259.c:0
Definition: tps53689.h:27
uint8_t crc[2]
Definition: tps53689.h:29
uint8_t addr
Definition: tps53689.h:28
uint8_t data[TPS536XX_UPDATE_MAX_DATA_SIZE]
Definition: tps53689.h:31
uint8_t devid[6]
Definition: tps53689.h:30
TPS536XX_UPDATE_INFO
Definition: tps53689.h:19
@ TPS536XX_UPDATE_INFO_BYTES
Definition: tps53689.h:21
@ TPS536XX_UPDATE_MAX_DATA_SIZE
Definition: tps53689.h:22
@ TPS536XX_UPDATE_DEVID_BYTE_LENS
Definition: tps53689.h:24
@ TPS536XX_UPDATE_INFO_LENS
Definition: tps53689.h:20
@ TPS536XX_UPDATE_INFO_START_BYTE
Definition: tps53689.h:23
bool tps536xx_fwupdate(uint8_t bus, uint8_t addr, uint8_t *img_buff, uint32_t img_size)
Definition: tps53689.c:171
bool tps536xx_get_crc(uint8_t bus, uint8_t addr, uint32_t *crc)
Definition: tps53689.c:147