How can handshaking of DTR, DSR, DCD, and RI be implemented in smartBASIC by using GPIOs?

Implement the function ?GpioSetFunc? in smart BASIC and then use that function to monitor the handshaking pins. Per the table on pages 9-10 of the Hardware Integration Guide (HIG), the correct handshaking pins are: 2 (DTR), 3 (DSR), 4 (DCD), and 9 (RI).