OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <logging/log.h>
#include "sensor.h"
#include "hal_i2c.h"
#include "pmbus.h"
#include "util_pmbus.h"
#include "libutil.h"
#include "xdpe12284c.h"
Classes | |
struct | xdpe_config |
Macros | |
#define | VR_XDPE_PAGE_20 0x20 |
#define | VR_XDPE_PAGE_32 0x32 |
#define | VR_XDPE_PAGE_50 0x50 |
#define | VR_XDPE_PAGE_60 0x60 |
#define | VR_XDPE_PAGE_62 0x62 |
#define | VR_XDPE_REG_REMAIN_WR 0x82 |
#define | VR_XDPE_REG_CRC_L 0x42 |
#define | VR_XDPE_REG_CRC_H 0x43 |
#define | VR_XDPE_REG_NEXT_MEM 0x65 |
#define | VR_XDPE_TOTAL_RW_SIZE 1080 |
#define | VR_XDPE_REG_LOCK 0x1A |
#define | VR_WARN_REMAIN_WR 3 |
#define | MAX_CMD_LINE 1080 |
Enumerations | |
enum | { VR12 = 1 , VR13 , IMVP9 } |
enum | { VID_IDENTIFIER = 1 } |
Functions | |
LOG_MODULE_REGISTER (xdpe12284c) | |
bool | xdpe12284c_get_checksum (uint8_t bus, uint8_t target_addr, uint8_t *checksum) |
bool | xdpe12284c_get_remaining_write (uint8_t bus, uint8_t target_addr, uint16_t *remain_write) |
bool | xdpe12284c_fwupdate (uint8_t bus, uint8_t addr, uint8_t *img_buff, uint32_t img_size) |
uint8_t | xdpe12284c_read (sensor_cfg *cfg, int *reading) |
uint8_t | xdpe12284c_init (sensor_cfg *cfg) |
#define MAX_CMD_LINE 1080 |
#define VR_WARN_REMAIN_WR 3 |
#define VR_XDPE_PAGE_20 0x20 |
#define VR_XDPE_PAGE_32 0x32 |
#define VR_XDPE_PAGE_50 0x50 |
#define VR_XDPE_PAGE_60 0x60 |
#define VR_XDPE_PAGE_62 0x62 |
#define VR_XDPE_REG_CRC_H 0x43 |
#define VR_XDPE_REG_CRC_L 0x42 |
#define VR_XDPE_REG_LOCK 0x1A |
#define VR_XDPE_REG_NEXT_MEM 0x65 |
#define VR_XDPE_REG_REMAIN_WR 0x82 |
#define VR_XDPE_TOTAL_RW_SIZE 1080 |
LOG_MODULE_REGISTER | ( | xdpe12284c | ) |
bool xdpe12284c_fwupdate | ( | uint8_t | bus, |
uint8_t | addr, | ||
uint8_t * | img_buff, | ||
uint32_t | img_size | ||
) |
bool xdpe12284c_get_checksum | ( | uint8_t | bus, |
uint8_t | target_addr, | ||
uint8_t * | checksum | ||
) |
bool xdpe12284c_get_remaining_write | ( | uint8_t | bus, |
uint8_t | target_addr, | ||
uint16_t * | remain_write | ||
) |
uint8_t xdpe12284c_init | ( | sensor_cfg * | cfg | ) |
uint8_t xdpe12284c_read | ( | sensor_cfg * | cfg, |
int * | reading | ||
) |