66
Example This example writes a command byte to the PS/2 serial
port and then reads back the specified number of response
bytes from the port.
#include <mdpcint.h>
{
HDC
UWORD
DWORD
UBYTE
DWORD
/* Put command bytes in CmdBuffer, and set
dwRetCode = DSerialCmd (hdc, 0, wnumCmdBytes,
return dwRetCode;
}
hdc;
wnumCmdBytes, wnumResponseBytes;
dwTimeout;
CmdBuffer, ResponseBuffer;
dwRetCode;
.
.
.
&CmdBuffer, wnumResponseBytes,
&ResponseBuffer, dwTimeout);
number of command bytes
and response bytes. */
DSerialCmd