VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
END
Attribute VB_Name = "Port"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Option Explicit

Private iPort  			As Integer	'port index (0, 1, 2 etc.)
Private iFirstPin  		As Integer  'lowest  implemented pin no (0-7)
Private iLastPin  		As Integer	'highest implemented pin no (0-7)
Private sDescription  	As String	'text for the button of the port
Private iAddr			As Integer	'Port address
Private bInputDir		As Boolean	'Port direction input possible?
Private bOutputDir		As Boolean	'Port direction output possible?

'---------------------------------------------
Public Property Get InputDir() As Boolean
    On Error Resume Next
	InputDir = bInputDir
End Property

Public Property Let InputDir(bNew As Boolean)
    On Error Resume Next
	bInputDir = bNew
End Property
'---------------------------------------------
Public Property Get OutputDir() As Boolean
    On Error Resume Next
	OutputDir = bOutputDir
End Property

Public Property Let OutputDir(bNew As Boolean)
    On Error Resume Next
	bOutputDir = bNew
End Property
'---------------------------------------------
Public Property Get Addr() As Integer
    On Error Resume Next
	Addr = iAddr
End Property

Public Property Let Addr(iNew As Integer)
    On Error Resume Next
	iAddr = iNew
End Property
'---------------------------------------------
Public Property Get Description() As String
    On Error Resume Next
    Description = sDescription
End Property

Public Property Let Description(sNew As String)
    On Error Resume Next
    sDescription = sNew
End Property
'---------------------------------------------
Public Property Get PortNumber() As Integer
    On Error Resume Next
    PortNumber = iPort
End Property

Public Property Let PortNumber(iNew As Integer)
    On Error Resume Next
    iPort = iNew
End Property
'---------------------------------------------
Public Property Get FirstPin() As Integer
    On Error Resume Next
    FirstPin = iFirstPin
End Property

Public Property Let FirstPin(iNew As Integer)
    On Error Resume Next
    iFirstPin = iNew
End Property
'---------------------------------------------
Public Property Get LastPin() As Integer
    On Error Resume Next
    LastPin = iLastPin
End Property

Public Property Let LastPin(iNew As Integer)
    On Error Resume Next
    iLastPin = iNew
End Property
'---------------------------------------------

Private Sub Class_Initialize()
End Sub

Private Sub Class_Terminate()
End Sub




