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


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 B0
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit B1
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit B2
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit B3
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit B4
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit B5
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit B6
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit B7
{
	public const uint8 TYPE = 10;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}

//AD口
unit C0
{
	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 C1
{
	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 C2
{
	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 C3
{
	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 C4
{
	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 C5
{
	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 C6
{
	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 C7
{
	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;
}







