| cmdTEAREAD | Index |
Command Code:
The Packet:
| 0 | 1 | 2 | ||
| address | 1 | cmdTEAREAD |
Description:
This command requests data from a TEA file. The TEA file must be opened with the cmdTEAINIT command. The first read or write command for a newly opened TEA file determines its mode. Trying to read from a write-only TEA file will generate an error message.
The reply is a cmdTEADATA packet with up to 7 bytes of data from the file. Additional cmdTEAREAD commands will generate more cmdTEADATA replies. If the file has less than 7 bytes remaining, the BrainStem will issue a final cmdTEADATA reply with only the remaining bytes in the file. After the final cmdTEADATA reply, the BrainStem will reply to additional cmdTEAREAD requests with a cmdTEAEOF message.