SERIAL_InitPort
This function initializes the specified serial port to the parameters “9600 8N1” with no handshake.
Synopsis
int SERIAL_InitPort(int port);
Parameter | Description |
---|---|
port
|
Serial port number (0 based). Specify port 0 to redirect the output to the hsmtrace log. |
Return Code
0
: The serial port was initialized successfully.
-1
: There was an error initializing the port.