| LIO_Send | Function (ROM Call 0x56)

link.h

unsigned short LIO_Send (LIO_CTX *file, unsigned short DevType);

Sends a file through the link interface.

LIO_Send is a high-level function which sends a file (a variable, a screen dump file, etc.) described by the LIO_CTX structure pointed to by file through the link interface. However, this function is not so easy for usage, because you need to fill the file context structure pointed to by file manually before using this function. If you want just to send a variable through the link interface, function sendcalc is much easier to use. The advantage of this routine is greater generality in comparing to sendcalc (for example, it allows transfer even between incompatible TI models, if properly used; sorry, I don't know too much about it).
Parameter DevType determines the device type (this information is stored in the header of each packet during the communication). It is a collection of flags. Bit b7 is 0 during transfer from a computer to a calculator and 1 during transfer from a calculator to a computer or another calculator. Bits b6 and b5 are reserved (keep them to 0). Bit b4 is 1 if a device is a "special" device, whatever it means (so far, I know that this bit is set if a device is TI-89 or CBL). Bits b3-b0 determine the calculator type (so far, I know the following meanings: 0010 for TI-82, 0011 for TI83, 0101 for TI85, 1000 for TI-89 or TI-92 Plus, and 1001 for TI-92). So, DevType should to be 0x98 for sending from TI-89 or 0x88 for sending from TI-92 Plus.
LIO_Send returns zero if the operation was successful, else returns a non-zero value (this value describes the type of the error, but I am not sure about the concrete meaning of particular values).

Uses: LIO_RecvData, LIO_SendData, OSLinkClose, OSLinkOpen, OSLinkReset, strlen, OSClearBreak, ROM Call 0x46E
Used by: sendcalc, cmd_send, LIO_SendIdList