SERIAL_InitPort
Initializes the specified serial port to the parameters “9600 8N1” with no handshake.
Synopsis
#include <serial.h> int SERIAL_InitPort(int port);
Parameters
port | Serial port number (0 based). Specify port 0 to redirect the output to the HSM trace log |
Return Code:
Function Code | Qualification |
---|---|
0 | The serial port was initialized successfully |
-1 | There was an error initializing the port. |