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


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;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit GND1
{
	public const uint8 TYPE = 0;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit GND2
{
	public const uint8 TYPE = 0;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit VCC1
{
	public const uint8 TYPE = 2;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit VCC2
{
	public const uint8 TYPE = 2;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}

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 const int8 INT_INDEX = 0;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit D3
{
	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 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;
}

//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;
}







