The FSPortDirectionEnum enum defines a port as an input or output. This value is set in the constructor of a FS Port class.
public enum FSPortDirectionEnum { PORTDIR_INPUT, PORTDIR_OUTPUT, PORTDIR_INPUTOUTPUT }