Table of Contents        Previous topic       Next topic       

Virtual Workshop Interface->General Purpose Interface Calls->GetSerialInput()

extern "C" LONG GetSerialInput(LONG nExtensionState, LONG 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.