Home >

FM SDK Programming Guide > HSM Functions Reference > Serial communication functions

Serial communication functions

This section contains functions for using the serial ports on the HSM. Note that in emulation mode, the serial ports on the host system are used.

If you specify serial port 0, the output is redirected to the hsmtrace log.

The following functions are provided by libfmserial.a :

SERIAL_GetNumPorts

SERIAL_Open

SERIAL_Close

SERIAL_InitPort

SERIAL_SendData

SERIAL_WaitReply

SERIAL_ReceiveData

SERIAL_FlushRX

SERIAL_GetControlLines

SERIAL_SetControlLines

SERIAL_SetMode