
//2017.4.29
//开始设计波形发送器

unit Pack
{
	public const uint16 ID = 0;

	//[i] linkinterface_writer writer0;
	link unit writer0 {}
	
	//---------------------------------------------------
	//[i] function_void OS_init;
	public void OS_init()
	{
		
	}
	//---------------------------------------------------
	//[i] function_void set_data int32 int32 int32;
	void set_data( int32 c, int32 i, int32 v )
	{
		uint32 D = (uint)i;
		uint32 V = (uint)v;
		if( c < 1 ) {
			return;
		}
		writer0.SetData( (int)0xAA );
		writer0.SetData( (int8)(int16)(c - 1) );
		writer0.SetData( (int)D.0(uint8) );
		writer0.SetData( (int)V.0(uint8) );
	}
}



