Read and Write Request Formats
Command code:0x20
Request Data Structure
typedef struct tag_STD_SMBUS_REQ
{
unsigned char lun;
unsigned char arg;
unsigned short opcode;
unsigned int offset;
unsigned int length;
unsigned char data[20];
}STD_SMBUS_REQ;
Request Description
Request Data Structure |
Bytes |
Name |
Description |
1 |
LUN |
Bit0-Bit3=0 indicates local. Bit0-Bit3=(1-15) indicates the index of the MINI management chip. Bit7=1 indicates the last frame. Bit7=0 indicates that data writing is not complete. |
|
2 |
arg |
Supplementary parameter of opcode. |
|
3 ~ 4 |
opcode |
Command word. For details, see the Data Register Key Definition definition. |
|
5~8 |
offset |
Data read offset. It starts from 0 and needs to be read multiple times for long data. For example, if the first read is 0 and the read length is 32, the offset is 32 during the second read. |
|
9 ~ 12 |
length |
Length of the requested data.
|
|
13 ~ N |
data |
Data area. |