OpenBIC
OpenSource Bridge-IC
m88rt51632.h File Reference
#include "hal_i2c.h"
Include dependency graph for m88rt51632.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define I2C_READ_CCODE_START   0x82
 
#define I2C_READ_CCODE_END   0x81
 
#define I2C_READ_BYTCNT   0x2
 
#define I2C_WRITE_CCODE_START   0x87
 
#define I2C_WRITE_BYTCNT   0x6
 
#define RETIMER_VERSION   0x0104c
 
#define RETIMER_ADDRPORT   0xfff0
 
#define RETIMER_DATAPORT   0xfff4
 
#define M88RT51632_TEMP_OFFSET   0x00
 
#define M88RT51632_EEPROM_BASE_OFFSET   0x800000
 
#define MAX_SENSORS   2
 
#define IMAGE_PACKAGE_SIZE   0x40
 
#define M88RT51632_MUTEX_LOCK_MS   1000
 
#define MAX_RETRY   3
 

Functions

bool m88rt51632_get_vendor_id (I2C_MSG *msg)
 
bool m88rt51632_get_fw_version (I2C_MSG *msg, uint32_t *version)
 
uint8_t m88rt51632_fw_update (I2C_MSG *msg, uint32_t offset, uint16_t msg_len, uint8_t *msg_buf, uint8_t flag)
 

Macro Definition Documentation

◆ I2C_READ_BYTCNT

#define I2C_READ_BYTCNT   0x2

◆ I2C_READ_CCODE_END

#define I2C_READ_CCODE_END   0x81

◆ I2C_READ_CCODE_START

#define I2C_READ_CCODE_START   0x82

◆ I2C_WRITE_BYTCNT

#define I2C_WRITE_BYTCNT   0x6

◆ I2C_WRITE_CCODE_START

#define I2C_WRITE_CCODE_START   0x87

◆ IMAGE_PACKAGE_SIZE

#define IMAGE_PACKAGE_SIZE   0x40

◆ M88RT51632_EEPROM_BASE_OFFSET

#define M88RT51632_EEPROM_BASE_OFFSET   0x800000

◆ M88RT51632_MUTEX_LOCK_MS

#define M88RT51632_MUTEX_LOCK_MS   1000

◆ M88RT51632_TEMP_OFFSET

#define M88RT51632_TEMP_OFFSET   0x00

◆ MAX_RETRY

#define MAX_RETRY   3

◆ MAX_SENSORS

#define MAX_SENSORS   2

◆ RETIMER_ADDRPORT

#define RETIMER_ADDRPORT   0xfff0

◆ RETIMER_DATAPORT

#define RETIMER_DATAPORT   0xfff4

◆ RETIMER_VERSION

#define RETIMER_VERSION   0x0104c

Function Documentation

◆ m88rt51632_fw_update()

uint8_t m88rt51632_fw_update ( I2C_MSG msg,
uint32_t  offset,
uint16_t  msg_len,
uint8_t *  msg_buf,
uint8_t  flag 
)

◆ m88rt51632_get_fw_version()

bool m88rt51632_get_fw_version ( I2C_MSG msg,
uint32_t *  version 
)
Here is the call graph for this function:

◆ m88rt51632_get_vendor_id()

bool m88rt51632_get_vendor_id ( I2C_MSG msg)
Here is the call graph for this function: