
//------------------------------
//图形化连接端口


unit PORT
{
	public bit D2_DIR; public bit D2_IN; public bit D2_OUT; public bit D2_PUL;
	public bit D3_DIR; public bit D3_IN; public bit D3_OUT; public bit D3_PUL;
}
unit GND
{
	public const uint8 TYPE = 0;
}
unit GND1
{
	public const uint8 TYPE = 0;
}
unit GND2
{
	public const uint8 TYPE = 0;
}
unit VCC1
{
	public const uint8 TYPE = 2;
}

unit D0
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D1
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D2
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D3
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D4
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D5
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D6
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D7
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D8
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D9
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D10
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D11
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D12
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D13
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}

unit D14
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D15
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D16
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D17
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D18
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D19
{
	public const uint8 TYPE = 10;
	public const int8 INT_INDEX = 2;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D20
{
	public const uint8 TYPE = 10;
	public const int8 INT_INDEX = 1;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D21
{
	public const uint8 TYPE = 10;
	public const int8 INT_INDEX = 0;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}


unit D22
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D23
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D24
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D25
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D26
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D27
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D28
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D29
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}


unit D30
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D31
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D32
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D33
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D34
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D35
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D36
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D37
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}


unit D38
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D39
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D40
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D41
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}


unit D42
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D43
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D44
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D45
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D46
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D47
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D48
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D49
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}


unit D50
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D51
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D52
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D53
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}



//AD口
unit A0
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 0;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A1
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 1;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A2
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 2;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A3
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 3;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A4
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 4;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A5
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 5;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A6
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 6;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A7
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 7;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
//AD口
unit A8
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 8;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A9
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 9;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A10
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A11
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 11;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A12
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 12;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A13
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 13;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A14
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 14;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit A15
{
	public const uint8 TYPE = 10;
	public const int8 AD_INDEX = 15;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}






