64 | DSerialCmd
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 number of
dwRetCode = DSerialCmd (hdc, 0, wnumCmdBytes,
return dwRetCode;
}
hdc;
wnumCmdBytes, wnumResponseBytes;
dwTimeout;
CmdBuffer, ResponseBuffer;
dwRetCode;
.
.
.
&CmdBuffer, wnumResponseBytes, &ResponseBuffer,
dwTimeout);
command bytes and response bytes */