OSLinkCmd Function (ROM Call 0x24B)

link.h

void OSLinkCmd (short NormalState);

Process the command received through the link port.

OSLinkCmd should to be called after OSCheckSilentLink if the result returned from it is non-zero (this means that there is a packet received from the link port, which waits to be processed). This function handles link commands when the calculator is in the Home Screen for example (link commands are stored in packets). Parameter NormalState should to be set to TRUE if the calculator is in a "normal receiving state", i.e. if the current application is "Home Screen", if the screen is not splitted, and if there is no any event-driven "applets" installed using EV_captureEvents (see events.html for more info). This parameter helps TIOS to conclude which link commands should be processed, and which commands should be rejected (for example, the calculator can not receive variables if it is not in a "normal receiving state").


Uses: LIO_Receive, LIO_RecvData, LIO_SendData, OSLinkReset, sendcalc, HeapFree, cmd_archive, ER_catch, ER_success, bottom_estack, HToESI, push_END_TAG, push_quantum, reset_estack_size, top_estack, MO_currentOptions, MO_digestOptions, BatTooLowFlash, EM_abandon, EM_GC, FL_getHardwareParmBlock, LCD_MEM, gr_active, gr_other, ST_eraseHelp, ST_folder, ST_helpMsg, strcat, strcmp, strlen, AB_getGateArrayVersion, OSenqueue, OSqclear, OSqinquire, XR_stringPtr, EV_appA, EV_appB, gr_delete_fldpic, gr_DelFolder, LoadSymFromFindHandle, ParseSymName, PlotInit, ST_flags, VarStoreLink, ClearUserDef, DerefSym, FolderCount, FolderDel, GetDataType, HSymDel, StrToTokN, SymCpy0, SymDel, SymDelTwin, SymFindFirst, SymFindFolderName, SymFindNext, SymSysVar, VarRecall, ROM Call 0x46E
Used by: kbhit, ngetchx