cmdTEAREADIndex

Command Code:

The Packet:

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.


version: 1.0, build 80903
© Copyright 1994-2008 Acroname, Inc., Boulder, Colorado.  All rights reserved.