Table of Contents Previous topic Next topic
The Extension Interface->General Purpose Interface Calls->GetSerialInput()
extern "C" LONG GetSerialInput(LONG nExtensionState, BYTE nBuffAddress, BYTE* pnByte)
The simulator will call GetSerialInput to ask for a serial input byte. The extension can place the byte in *pnByte and return one.
If a variant supports more than one serial port, the extension can test the value of nBuffAddress to determine which serial port will receive the byte from this call.
The extension should return zero if it does not want to handle this call.