-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
smbusb/firmware/smbusb_firmware.c
Lines 808 to 824 in bb42dd7
| case SMB_TEST_COMMAND_WRITE: | |
| while (EP0CS&bmEPBUSY); // wait until ready | |
| *EP0BUF = 0; | |
| if (!i2c_start()) return FALSE; | |
| if (!i2c_byteout(smb_addr)) goto tcwOver; | |
| if (i2c_byteout(smb_cmd)) { (*EP0BUF)++; // Command ACK = command exists | |
| } else {goto tcwOver;} | |
| if (i2c_byteout(3)) { (*EP0BUF)++; // Data Byte #1 ACK = byte writable | |
| } else {goto tcwOver;} | |
| if (i2c_byteout(0)) { (*EP0BUF)++; // Data Byte #2 ACK = word writable | |
| } else {goto tcwOver;} | |
| if (!i2c_byteout(0)) {goto tcwOver;} | |
| if (i2c_byteout(0)) { (*EP0BUF)++; // Data Byte #4 ACK = block writable | |
| } else {goto tcwOver;} | |
| if (i2c_byteout(0)) { (*EP0BUF)++; // Data Byte #5 ACK = >block writable | |
| } else {goto tcwOver;} | |
Please, make me understand why first out byte is 0x03 ? I think, it should be 0x00 like others byte.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels