<root>
<document scada='0' schema='102' license='10,66718025,6XBAK2' title='' description='' fcversion='590336' target='ESP.ESP32.ESP32' >
	<config data='' clkspd='240000000' simspd='1' usewdt='0' constif='0' commport='9' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='1' head='typedef union
{
  MX_FLOAT AsFloat;
  MX_UINT32 AsLong;
  MX_UINT32 AsUlong;
  MX_UINT16 AsInt[2];
  MX_UINT8  AsByte[4];
} MX_Union_32;


MX_Union_32 convert;

//ADC Channel Definitions to unlock these pins via 1 component
#define MX_ADC_CHANNEL_1
#define MX_ADC_CHANNEL_2
#define MX_ADC_CHANNEL_3
#define MX_ADC_CHANNEL_4
#define MX_ADC_CHANNEL_5' body='' />
	<debug />
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='1' />
			<data name='CalculatedCommsDelay' value='1' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='cc0c6f87-a58f-4d73-8a8f-a717445ec8e9' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<gdiopts FullContainer='1' FullTransparency='1' ShowGdi='1' ShowOpengl='1' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' comp2dType='0' >
			<resources />
			<properties >
				<property name='Keep Alive' target='KeepAlive' typeid='7' hidden='0' locked='0' info='' />
			</properties>
			<values >
				<value target='KeepAlive' data='0' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='Mode' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ReturnCount' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CommsOpen' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Address' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Command' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RxTempBuff' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='idx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Returns' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='255' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ret' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ADC_Ref_Type' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ADC_Precharge' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='40' setinit='40' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Params' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='6' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ip_strg' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;0&quot;' setinit='&quot;0&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TCP_Port' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='1234' setinit='1234' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='UART2_Receive_Interrupt_Handler' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='rx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UART2' macro='Receive' >
							<return exp='.rx' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UARTBuffer1' macro='PutByte' >
							<argument exp='.rx' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ActionCommand' description='Once all the parameters are received we action the command' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='TempUINT' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='TempULONG' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='idx' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='TempStr' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
							<exp exp='Command = CircularBuffer1 :: GetByte () //Command' />
						</command>
						<command class_type='switch' title='IO Commands' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Command' >
							<case >
								<flowline />
							</case>
							<case exp='0x80' >
								<flowline >
									<command class_type='comment' title='' comment='Set Output' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //State' />
									</command>
									<command class_type='switch' title='IO Channel' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='0' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='1' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='2' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='4' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='8' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='4' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='16' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='5' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='32' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='6' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='64' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='7' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='128' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='8' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='256' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='9' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='512' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
									</command>
									<command class_type='switch' title='IO Channel' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='10' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='1024' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='11' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='2048' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='12' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='4096' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='13' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='8192' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='14' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='16384' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='15' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='32768' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='16' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='65536' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='17' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='131072' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='18' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='262144' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='19' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='524288' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
									</command>
									<command class_type='switch' title='IO Channel' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='20' >
											<flowline />
										</case>
										<case exp='21' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='2097152' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='22' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='4194304' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='23' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='8388608' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='24' >
											<flowline />
										</case>
										<case exp='25' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='33554432' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='26' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='67108864' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='27' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='134217728' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
									</command>
									<command class_type='switch' title='IO Channel' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='32' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194305' mask='1' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='33' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194305' mask='2' exp='Params[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='34' >
											<flowline />
										</case>
										<case exp='35' >
											<flowline />
										</case>
										<case exp='36' >
											<flowline />
										</case>
										<case exp='37' >
											<flowline />
										</case>
										<case exp='38' >
											<flowline />
										</case>
										<case exp='39' >
											<flowline />
										</case>
									</command>
								</flowline>
							</case>
							<case exp='0x81' >
								<flowline >
									<command class_type='comment' title='' comment='Get Input' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
									</command>
									<command class_type='switch' title='IO Channel' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='0' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='1' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='2' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='4' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='8' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='4' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='16' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='5' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='32' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='6' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='64' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='7' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='128' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='8' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='256' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='9' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='512' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
									</command>
									<command class_type='switch' title='IO Channel' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='10' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='1024' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='11' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='2048' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='12' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='4096' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='13' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='8192' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='14' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='16384' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='15' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='32768' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='16' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='65536' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='17' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='131072' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='18' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='262144' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='19' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='524288' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
									</command>
									<command class_type='switch' title='IO Channel' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='20' >
											<flowline />
										</case>
										<case exp='21' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='2097152' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='22' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='4194304' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='23' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='8388608' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='24' >
											<flowline />
										</case>
										<case exp='25' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='33554432' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='26' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='67108864' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='27' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194304' mask='134217728' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
									</command>
									<command class_type='switch' title='IO Channel' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='32' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194305' mask='1' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='33' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194305' mask='2' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='34' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194305' mask='4' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='35' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194305' mask='8' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='36' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194305' mask='16' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
										<case exp='37' >
											<flowline />
										</case>
										<case exp='38' >
											<flowline />
										</case>
										<case exp='39' >
											<flowline >
												<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' mode='1' port='4194305' mask='128' exp='Returns[1]' usechipref='1' />
											</flowline>
										</case>
									</command>
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 1' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Analog Commands' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Command' >
							<case >
								<flowline />
							</case>
							<case exp='0x82' >
								<flowline >
									<command class_type='comment' title='' comment='ADC 8' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
									</command>
									<command class_type='comment' title='' comment='We leverage a single ADC component to allow us to read 
any ADC channel by using C code' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='native' title='C Code' ccode='FC_CAL_ADC_Enable_1(FCV_PARAMS[0], 5, FCV_ADC_REF_TYPE, FCV_ADC_PRECHARGE);
FCL_TEMPUINT = FC_CAL_ADC_Sample_1(0);
FC_CAL_ADC_Disable_1();' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
									<command class_type='calculation' title='Copy var into 8-bit return' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Returns[1] = .TempUINT' />
									</command>
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 1' />
									</command>
								</flowline>
							</case>
							<case exp='0x83' >
								<flowline >
									<command class_type='comment' title='' comment='ADC 10' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
									</command>
									<command class_type='comment' title='' comment='We leverage a single ADC component to allow us to read 
any ADC channel by using C code' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='native' title='C Code' ccode='FC_CAL_ADC_Enable_1(FCV_PARAMS[0], 5, FCV_ADC_REF_TYPE, FCV_ADC_PRECHARGE);
FCL_TEMPUINT = FC_CAL_ADC_Sample_1(1);
FC_CAL_ADC_Disable_1();' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
									<command class_type='calculation' title='Convert 16-bit var into 2x 8-bit' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Returns[2] = .TempUINT' />
										<exp exp='Returns[1] = .TempUINT &gt;&gt; 8' />
									</command>
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 2' />
									</command>
								</flowline>
							</case>
							<case exp='0xA3' >
								<flowline >
									<command class_type='comment' title='' comment='Set ADC Ref type
0 = AREF
1 = VCC - Default
2 = N/A
3 = 1.1V' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //ADC Ref Type' />
									</command>
									<command class_type='decision' title='In range' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='(Params[0] &lt; 4) &amp;&amp; (Params[0] != 2)' swap='0' >
										<flowline >
											<command class_type='calculation' title='Assign to VREF variable' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
												<exp exp='ADC_Ref_Type = Params[0]' />
											</command>
										</flowline>
										<flowline />
									</command>
								</flowline>
							</case>
							<case exp='0xA4' >
								<flowline >
									<command class_type='comment' title='' comment='ADC 8 Average' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Count' />
										<exp exp='Params[2] = CircularBuffer1 :: GetByte () //Delay' />
										<exp exp='' />
										<exp exp='Returns[0] = Params[1] //Store Count' />
									</command>
									<command class_type='calculation' title='Init Count Variable' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.TempULONG = 0' />
									</command>
									<command class_type='comment' title='' comment='We leverage a single ADC component to allow us to read 
any ADC channel by using C code' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='native' title='C Code' ccode='FC_CAL_ADC_Enable_1(FCV_PARAMS[0], 5, FCV_ADC_REF_TYPE, FCV_ADC_PRECHARGE);
while(FCV_PARAMS[1]--)
{
  FCL_TEMPULONG += FC_CAL_ADC_Sample_1(0);
  if (FCV_PARAMS[2])
  {
    delay_us(FCV_PARAMS[2]);
  }
}
FC_CAL_ADC_Disable_1();' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
									<command class_type='calculation' title='Divide count by num samples' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.TempULONG = .TempULONG / Returns[0]' />
									</command>
									<command class_type='calculation' title='Copy var into 8-bit return' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Returns[1] = .TempULONG' />
									</command>
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 1' />
									</command>
								</flowline>
							</case>
							<case exp='0xA5' >
								<flowline >
									<command class_type='comment' title='' comment='ADC 10 Average' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Count' />
										<exp exp='Params[2] = CircularBuffer1 :: GetByte () //Delay' />
										<exp exp='' />
										<exp exp='Returns[0] = Params[1] //Store Count' />
									</command>
									<command class_type='calculation' title='Init Count Variable' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.TempULONG = 0' />
									</command>
									<command class_type='comment' title='' comment='We leverage a single ADC component to allow us to read 
any ADC channel by using C code' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='native' title='C Code' ccode='FC_CAL_ADC_Enable_1(FCV_PARAMS[0], 5, FCV_ADC_REF_TYPE, FCV_ADC_PRECHARGE);
while(FCV_PARAMS[1]--)
{
  FCL_TEMPULONG += FC_CAL_ADC_Sample_1(1);
  if (FCV_PARAMS[2])
  {
    delay_us(FCV_PARAMS[2]);
  }
}
FC_CAL_ADC_Disable_1();' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
									<command class_type='calculation' title='Divide count by num samples' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.TempULONG = .TempULONG / Returns[0]' />
									</command>
									<command class_type='calculation' title='Convert 10-bit var into 2x 8-bit' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Returns[2] = .TempULONG' />
										<exp exp='Returns[1] = .TempULONG &gt;&gt; 8' />
									</command>
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 2' />
									</command>
								</flowline>
							</case>
							<case exp='0xA6' >
								<flowline >
									<command class_type='comment' title='' comment='Set ADC Precharge Time' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ADC_Precharge = CircularBuffer1 :: GetByte () //ADC Precharge time' />
									</command>
								</flowline>
							</case>
							<case exp='0xA7' >
								<flowline >
									<command class_type='comment' title='' comment='ADC 8 Array' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Count' />
										<exp exp='Params[2] = CircularBuffer1 :: GetByte () //Delay MSB' />
										<exp exp='Params[3] = CircularBuffer1 :: GetByte () //Delay LSB' />
										<exp exp='' />
										<exp exp='Address = (Params[2] &lt;&lt; 8) | Params[3]' />
									</command>
									<command class_type='calculation' title='Init Count Variable' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.Idx = 0' />
									</command>
									<command class_type='comment' title='' comment='We leverage a single ADC component to allow us to read 
any ADC channel by using C code' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='native' title='C Code' ccode='FC_CAL_ADC_Enable_1(FCV_PARAMS[0], 5, FCV_ADC_REF_TYPE, FCV_ADC_PRECHARGE);
while(FCL_IDX &lt; FCV_PARAMS[1])
{
  FCV_RETURNS[FCL_IDX + 1] = FC_CAL_ADC_Sample_1(0);
  if (FCV_ADDRESS)
  {
    FCI_DELAYINT_US(FCV_ADDRESS);
  }
  FCL_IDX++;
}
FC_CAL_ADC_Disable_1();' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = .idx' />
									</command>
								</flowline>
							</case>
							<case exp='0xA8' >
								<flowline >
									<command class_type='comment' title='' comment='ADC 10 Array' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Count' />
										<exp exp='Params[2] = CircularBuffer1 :: GetByte () //Delay MSB' />
										<exp exp='Params[3] = CircularBuffer1 :: GetByte () //Delay LSB' />
										<exp exp='' />
										<exp exp='Address = (Params[2] &lt;&lt; 8) | Params[3]' />
									</command>
									<command class_type='calculation' title='Init Count Variable' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.Idx = 0' />
									</command>
									<command class_type='comment' title='' comment='We leverage a single ADC component to allow us to read 
any ADC channel by using C code' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='native' title='C Code' ccode='FC_CAL_ADC_Enable_1(FCV_PARAMS[0], 5, FCV_ADC_REF_TYPE, FCV_ADC_PRECHARGE);
while(FCL_IDX &lt; FCV_PARAMS[1])
{
  FCL_TEMPUINT = FC_CAL_ADC_Sample_1(1);
  FCV_RETURNS[(FCL_IDX * 2) + 1] = FCL_TEMPUINT &gt;&gt; 8;
  FCV_RETURNS[(FCL_IDX * 2) + 2] = FCL_TEMPUINT;
  if (FCV_ADDRESS)
  {
    FCI_DELAYINT_US(FCV_ADDRESS);
  }
  FCL_IDX++;
}
FC_CAL_ADC_Disable_1();' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = .idx * 2' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='SPI Commands' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Command' >
							<case >
								<flowline />
							</case>
							<case exp='0x84' >
								<flowline >
									<command class_type='comment' title='' comment='SPI Init' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_spi2' macro='Master_Init' />
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_spi1' macro='Master_Init' />
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='0x85' >
								<flowline >
									<command class_type='comment' title='' comment='SPI Transfer' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Data' />
										<exp exp='' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_spi2' macro='Master_Byte' >
												<return exp='Returns[1]' />
												<argument exp='Params[1]' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_spi1' macro='Master_Byte' >
												<return exp='Returns[1]' />
												<argument exp='Params[1]' />
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 1' />
									</command>
								</flowline>
							</case>
							<case exp='0x86' >
								<flowline >
									<command class_type='comment' title='' comment='SPI Set Prescaler' textarea='36,-6,36,-6' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Scaler' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_spi2' macro='SetPrescaler' >
												<argument exp='Params[1]' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_spi1' macro='SetPrescaler' >
												<argument exp='Params[1]' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='0xAA' >
								<flowline >
									<command class_type='comment' title='' comment='SPI Transaction' textarea='36,-6,36,-6' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Count MSB' />
										<exp exp='Params[2] = CircularBuffer1 :: GetByte () //Count LSB' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.TempUINT = (Params[1] &lt;&lt; 8) + Params[2]' />
										<exp exp='ReturnCount = .TempUINT' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.idx = 0' />
									</command>
									<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' type='0' exp='.idx &lt; .TempUINT' >
										<flowline >
											<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
												<exp exp='Returns[.idx] = CircularBuffer1 :: GetByte () //Data Byte' />
												<exp exp='.idx = .idx + 1' />
											</command>
										</flowline>
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_spi2' macro='Master_Transaction' >
												<argument exp='Returns' />
												<argument exp='.TempUINT' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_spi1' macro='Master_Transaction' >
												<argument exp='Returns' />
												<argument exp='.TempUINT' />
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.idx = ReturnCount' />
									</command>
									<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' type='0' exp='.idx &gt; 0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
												<exp exp='Returns[.idx] = Returns[.idx - 1]' />
												<exp exp='.idx = .idx - 1' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='I2C Commands' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Command' >
							<case >
								<flowline />
							</case>
							<case exp='0x87' >
								<flowline >
									<command class_type='comment' title='' comment='I2C Init' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Baud' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c2' macro='Master_Init' />
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c1' macro='Master_Init' />
										</flowline>
									</command>
									<command class_type='switch' title='Switch' textarea='36,25,36,25' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[1]' >
										<case >
											<flowline >
												<command class_type='native' title='100KHz' ccode='i2c_hal_set_bus_timing(&amp;(i2c_context[i2c_num].hal), 100000, I2C_SCLK_APB);' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='native' title='400KHz' ccode='i2c_hal_set_bus_timing(&amp;(i2c_context[i2c_num].hal), 400000, I2C_SCLK_APB);' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='native' title='1MHz' ccode='i2c_hal_set_bus_timing(&amp;(i2c_context[i2c_num].hal), 1000000, I2C_SCLK_APB);' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
							<case exp='0x88' >
								<flowline >
									<command class_type='comment' title='' comment='I2C Start' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c2' macro='Master_Start' />
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c1' macro='Master_Start' />
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='0x89' >
								<flowline >
									<command class_type='comment' title='' comment='I2C Restart' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c2' macro='Master_Restart' />
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c1' macro='Master_Restart' />
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='0x8A' >
								<flowline >
									<command class_type='comment' title='' comment='I2C Stop' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c2' macro='Master_Stop' />
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c1' macro='Master_Stop' />
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='0x8B' >
								<flowline >
									<command class_type='comment' title='' comment='I2C Send' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Data' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c2' macro='Master_TxByte' >
												<return exp='Returns[1]' />
												<argument exp='Params[1]' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c1' macro='Master_TxByte' >
												<return exp='Returns[1]' />
												<argument exp='Params[1]' />
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 1' />
									</command>
								</flowline>
							</case>
							<case exp='0x8C' >
								<flowline >
									<command class_type='comment' title='' comment='I2C Receive' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Last Flag' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c2' macro='Master_RxByte' >
												<return exp='Returns[1]' />
												<argument exp='Params[1]' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c1' macro='Master_RxByte' >
												<return exp='Returns[1]' />
												<argument exp='Params[1]' />
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 1' />
									</command>
								</flowline>
							</case>
							<case exp='0xAB' >
								<flowline >
									<command class_type='comment' title='' comment='I2C Trans Init' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Device Address' />
										<exp exp='Params[2] = CircularBuffer1 :: GetByte () //Baud' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c2' macro='Transaction_Initialise' >
												<argument exp='Params[1]' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c1' macro='Transaction_Initialise' >
												<argument exp='Params[1]' />
											</command>
										</flowline>
									</command>
									<command class_type='switch' title='Switch' textarea='36,25,36,25' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[2]' >
										<case >
											<flowline >
												<command class_type='native' title='100KHz' ccode='i2c_hal_set_bus_timing(&amp;(i2c_context[i2c_num].hal), 100000, I2C_SCLK_APB);' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='native' title='400KHz' ccode='i2c_hal_set_bus_timing(&amp;(i2c_context[i2c_num].hal), 400000, I2C_SCLK_APB);' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='native' title='1MHz' ccode='i2c_hal_set_bus_timing(&amp;(i2c_context[i2c_num].hal), 1000000, I2C_SCLK_APB);' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
							<case exp='0xAC' >
								<flowline >
									<command class_type='comment' title='' comment='I2C Trans Rx' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //CountMSB' />
										<exp exp='Params[2] = CircularBuffer1 :: GetByte () //CountLSB' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.TempUINT = (Params[1] &lt;&lt; 8) + Params[2]' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = .TempUINT + 2' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c2' macro='Transaction_Read' >
												<return exp='.TempUINT' />
												<argument exp='Returns' />
												<argument exp='.TempUINT' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c1' macro='Transaction_Read' >
												<return exp='.TempUINT' />
												<argument exp='Returns' />
												<argument exp='.TempUINT' />
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.idx = ReturnCount - 2' />
									</command>
									<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' type='0' exp='.idx &gt; 0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
												<exp exp='Returns[.idx] = Returns[.idx - 1]' />
												<exp exp='.idx = .idx - 1' />
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Returns[ReturnCount - 1] = .TempUINT &gt;&gt; 8' />
										<exp exp='Returns[ReturnCount] = .TempUINT' />
									</command>
								</flowline>
							</case>
							<case exp='0xAD' >
								<flowline >
									<command class_type='comment' title='' comment='I2C Trans Tx' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //CountMSB' />
										<exp exp='Params[2] = CircularBuffer1 :: GetByte () //CountLSB' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='.TempUINT = (Params[1] &lt;&lt; 8) + Params[2]' />
									</command>
									<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' type='0' exp='ReturnCount &lt; (.TempUINT &amp; 0x7FFF)' >
										<flowline >
											<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
												<exp exp='Returns[ReturnCount] = CircularBuffer1 :: GetByte () //TX Data' />
												<exp exp='ReturnCount = ReturnCount + 1' />
											</command>
										</flowline>
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c2' macro='Transaction_Write' >
												<return exp='.TempUINT' />
												<argument exp='Returns' />
												<argument exp='.TempUINT' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_i2c1' macro='Transaction_Write' >
												<return exp='.TempUINT' />
												<argument exp='Returns' />
												<argument exp='.TempUINT' />
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Returns[1] = .TempUINT &gt;&gt; 8' />
										<exp exp='Returns[2] = .TempUINT' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 2' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='PWM Commands' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Command' >
							<case >
								<flowline />
							</case>
							<case exp='0x8D' >
								<flowline >
									<command class_type='comment' title='' comment='Enable' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
									</command>
									<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm1' macro='Enable' />
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm2' macro='Enable' />
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm3' macro='Enable' />
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm4' macro='Enable' />
											</flowline>
										</case>
										<case exp='4' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm5' macro='Enable' />
											</flowline>
										</case>
										<case exp='5' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm6' macro='Enable' />
											</flowline>
										</case>
										<case exp='6' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm7' macro='Enable' />
											</flowline>
										</case>
										<case exp='7' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm8' macro='Enable' />
											</flowline>
										</case>
									</command>
									<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='8' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm9' macro='Enable' />
											</flowline>
										</case>
										<case exp='9' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm10' macro='Enable' />
											</flowline>
										</case>
										<case exp='10' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm11' macro='Enable' />
											</flowline>
										</case>
										<case exp='11' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm12' macro='Enable' />
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
							<case exp='0x8E' >
								<flowline >
									<command class_type='comment' title='' comment='Disable' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
									</command>
									<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm1' macro='Disable' />
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm2' macro='Disable' />
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm3' macro='Disable' />
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm4' macro='Disable' />
											</flowline>
										</case>
										<case exp='4' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm5' macro='Disable' />
											</flowline>
										</case>
										<case exp='5' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm6' macro='Disable' />
											</flowline>
										</case>
										<case exp='6' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm7' macro='Disable' />
											</flowline>
										</case>
										<case exp='7' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm8' macro='Disable' />
											</flowline>
										</case>
									</command>
									<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='8' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm9' macro='Disable' />
											</flowline>
										</case>
										<case exp='9' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm10' macro='Disable' />
											</flowline>
										</case>
										<case exp='10' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm11' macro='Disable' />
											</flowline>
										</case>
										<case exp='11' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm12' macro='Disable' />
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
							<case exp='0x8F' >
								<flowline >
									<command class_type='comment' title='' comment='Prescaler
No point in this command atm with just 8-bit duty' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Scaler' />
										<exp exp='Params[2] = CircularBuffer1 :: GetByte () //Period' />
									</command>
									<command class_type='switch' title='Switch' textarea='36,25,36,25' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm1' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm2' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm3' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm4' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='4' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm5' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='5' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm6' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='6' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm7' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='7' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm8' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
									</command>
									<command class_type='switch' title='Switch' textarea='36,25,36,25' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='8' >
											<flowline >
												<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm9' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='9' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm10' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='10' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm11' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='11' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm12' macro='ChangePeriod' >
													<argument exp='Params[2]' />
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
							<case exp='0x90' >
								<flowline >
									<command class_type='comment' title='' comment='Duty 8' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Duty' />
									</command>
									<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm1' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm2' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm3' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm4' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='4' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm5' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='5' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm6' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='6' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm7' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='7' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm8' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
									</command>
									<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='8' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm9' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='9' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm10' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='10' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm11' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
										<case exp='11' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm12' macro='SetDuty8Bit' >
													<argument exp='Params[1]' />
												</command>
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
							<case exp='0xA9' >
								<flowline >
									<command class_type='comment' title='' comment='Set PWM Frequency' textarea='132,31,132,31' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Frequency Byte0' />
										<exp exp='Params[2] = CircularBuffer1 :: GetByte () //Frequency Byte1' />
										<exp exp='Params[3] = CircularBuffer1 :: GetByte () //Frequency Byte2' />
										<exp exp='Params[4] = CircularBuffer1 :: GetByte () //Frequency Byte3' />
									</command>
									<command class_type='native' title='C Code' ccode='convert.AsByte[0] = FCV_PARAMS[1];
convert.AsByte[1] = FCV_PARAMS[2];
convert.AsByte[2] = FCV_PARAMS[3];
convert.AsByte[3] = FCV_PARAMS[4];
FCL_TEMPULONG = convert.AsUlong;' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
									<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm1' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm2' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm3' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm4' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
										<case exp='4' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm5' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
										<case exp='5' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm6' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
										<case exp='6' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm7' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
										<case exp='7' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm8' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
									</command>
									<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' >
										<case >
											<flowline />
										</case>
										<case exp='8' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm9' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
										<case exp='9' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm10' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
										<case exp='10' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm11' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
										<case exp='11' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='cal_pwm12' macro='ChangeFrequency' >
													<argument exp='.TempULONG' />
												</command>
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='UART Commands' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Command' >
							<case >
								<flowline />
							</case>
							<case exp='0x91' >
								<flowline >
									<command class_type='comment' title='' comment='Init
' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UART2' macro='Init' />
											<command class_type='interrupt' title='Enable RX Interrupt - Catch bytes as they come in' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' enable='1' name='RXINT2' call='UART2_Receive_Interrupt_Handler' >
												<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
													<option value='0' />
													<option value='0' />
													<option value='0' />
													<option value='0' />
													<option value='0' />
													<option value='0' />
													<option value='0' />
													<option value='0' />
												</settings>
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UART1' macro='Init' />
											<command class_type='interrupt' title='Enable RX Interrupt - Catch bytes as they come in' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' enable='1' name='RXINT1' call='UART1_Receive_Interrupt_Handler' >
												<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
													<option value='0' />
													<option value='0' />
													<option value='0' />
													<option value='0' />
													<option value='0' />
													<option value='0' />
													<option value='0' />
													<option value='0' />
												</settings>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='0x92' >
								<flowline >
									<command class_type='comment' title='' comment='Send' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Data' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UART2' macro='Send' >
												<argument exp='Params[1]' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UART1' macro='Send' >
												<argument exp='Params[1]' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='0x93' >
								<flowline >
									<command class_type='comment' title='' comment='CheckRx' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UARTBuffer1' macro='GetNumberBytes' >
												<return exp='Returns[1]' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UARTBuffer' macro='GetNumberBytes' >
												<return exp='Returns[1]' />
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 1' />
									</command>
								</flowline>
							</case>
							<case exp='0x94' >
								<flowline >
									<command class_type='comment' title='' comment='Receive' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UARTBuffer1' macro='GetByte' >
												<return exp='Returns[1]' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UARTBuffer' macro='GetByte' >
												<return exp='Returns[1]' />
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Specify number of return bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 1' />
									</command>
								</flowline>
							</case>
							<case exp='0x95' >
								<flowline >
									<command class_type='comment' title='' comment='SetBaud' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Channel' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //BAUD' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Params[0]' swap='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UART2' macro='UpdateBaud' >
												<argument exp='Params[1]' />
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UART1' macro='UpdateBaud' >
												<argument exp='Params[1]' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Command' >
							<case >
								<flowline />
							</case>
							<case exp='0xA1' >
								<flowline >
									<command class_type='comment' title='' comment='Write Register' textarea='40,10,40,10' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Address MSB' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Address LSB' />
										<exp exp='Params[2] = CircularBuffer1 :: GetByte () //Data' />
									</command>
									<command class_type='calculation' title='Calculate 16-bit Address' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Address = Params[0]' />
										<exp exp='Address = Address &lt;&lt; 8' />
										<exp exp='Address = Address | Params[1]' />
									</command>
									<command class_type='native' title='C Code' ccode='volatile char* register_ptr = (char*)FCV_ADDRESS;
*register_ptr = FCV_PARAMS[2];' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
								</flowline>
							</case>
							<case exp='0xA2' >
								<flowline >
									<command class_type='comment' title='' comment='Read Register' textarea='40,10,40,10' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
									<command class_type='calculation' title='Collect Parameters for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Params[0] = CircularBuffer1 :: GetByte () //Address MSB' />
										<exp exp='Params[1] = CircularBuffer1 :: GetByte () //Address LSB' />
									</command>
									<command class_type='calculation' title='Calculate 16-bit Address' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='Address = Params[0]' />
										<exp exp='Address = Address &lt;&lt; 8' />
										<exp exp='Address = Address | Params[1]' />
									</command>
									<command class_type='native' title='C Code' ccode='volatile char* register_ptr = (char*)FCV_ADDRESS;
FCV_RETURNS[0] = *register_ptr;' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
									<command class_type='calculation' title='Return 1 bytes' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
										<exp exp='ReturnCount = 1' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Copy command code to first byte of reply' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
							<exp exp='Returns[0] = Command' />
						</command>
						<command class_type='call' title='Send reply to command' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='WLAN_ESP32' macro='SocketWrite' >
							<argument exp='Returns' />
							<argument exp='ReturnCount + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='KeepAlive' swap='0' >
							<flowline />
							<flowline >
								<command class_type='call' title='Close connection' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='WLAN_ESP32' macro='AcceptClose' />
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
									<exp exp='CommsOpen = 0' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='UART1_Receive_Interrupt_Handler' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='rx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UART1' macro='Receive' >
							<return exp='.rx' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='UARTBuffer' macro='PutByte' >
							<argument exp='.rx' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Reset Mode to 0 - Waitinfg for command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
							<exp exp='Mode = 0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='WLAN_ESP32' macro='Initialise' />
						<command class_type='comment' title='' comment='************************************************************
------------------------------------------------------------
------------------------------------------------------------
Change the icon below to match your WIFI network credentials
------------------------------------------------------------
------------------------------------------------------------
************************************************************' textarea='36,34,36,34' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
						<command class_type='call' title='Connect to wireless network - This needs to match your settings' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='WLAN_ESP32' macro='ConnectToSSID' >
							<argument exp='&quot;ubed&quot;' />
							<argument exp='&quot;*****&quot;' />
							<argument exp='20' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='WLAN_ESP32' macro='SocketOpen' >
							<return exp='Ret' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='WLAN_ESP32' macro='SocketListen' >
							<return exp='Ret' />
							<argument exp='TCP_Port' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' type='0' exp='1' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='CommsOpen = 0' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='WLAN_ESP32' macro='AcceptOpen' >
											<return exp='Ret' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Ret' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
													<exp exp='CommsOpen = 1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='1 //Ret' swap='0' >
									<flowline >
										<command class_type='call' title='Read up to 20 bytes' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='WLAN_ESP32' macro='SocketRead' >
											<return exp='Ret' />
											<argument exp='RxTempBuff' />
											<argument exp='20' />
										</command>
										<command class_type='decision' title='Have we received anything?' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Ret &gt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Initialise Index' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
													<exp exp='idx = 0' />
												</command>
												<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' type='0' exp='idx &lt; Ret' >
													<flowline >
														<command class_type='call' title='Put data into CB' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='CircularBuffer1' macro='PutByte' >
															<argument exp='RxTempBuff[idx]' />
														</command>
														<command class_type='calculation' title='Increment Index' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
															<exp exp='idx = idx + 1' />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Simple State Machine' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Mode = 0' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='First we check for an incoming &apos;:&apos; character
to signify the start of a command.

We remove any data stored in the buffer before 
the start character is received to ensure we dont
process any incorrect values.
' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
										<command class_type='decision' title='Check for start of command' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='CircularBuffer1 :: LookForValue (&quot;:&quot;,1,1,1)' swap='0' >
											<flowline >
												<command class_type='calculation' title='Jump to next state' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
													<exp exp='Mode = 1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Simple State Machine' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='Mode = 1' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='Next we check for incoming &apos;;&apos; and &apos;\n&apos; characters
to signify the end of a command, we want to be sure we
have received the command code and all parameters before
we start running the command.

This time the data is retained in the buffer to be
processed once we have received everything.' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
										<command class_type='decision' title='Check for end of command' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' exp='CircularBuffer1 :: LookForValue (&quot;;\n&quot;,2,0,1)' swap='0' >
											<flowline >
												<command class_type='call' title='Run Selected Command' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' macro='ActionCommand' />
												<command class_type='calculation' title='Jump to first state' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' >
													<exp exp='Mode = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Add ADC Call to Include ADC CAL Code' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='pot_color_cap1' macro='GetByte' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c67171df-0ad6-4b11-8361-cfe14b072847' vmin='1' vmaj='2' codename='cal_spi1' x='-138' y='21' z='0' xsz='25' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='ENABLED' data='1' />
					<value target='REF' data='1' />
					<value target='CHANNEL' data='001' />
					<value target='MOSI' data='$PORTA.12' />
					<value target='MOSIPins' data='012' />
					<value target='MISO' data='$PORTA.10' />
					<value target='MISOPins' data='013' />
					<value target='CLK' data='$PORTA.15' />
					<value target='CLKPins' data='014' />
					<value target='UseAutoCS' data='0' />
					<value target='UseCS' data='0' />
					<value target='SS' data='$PORTC.2' />
					<value target='CSPolarity' data='000' />
					<value target='SSPins' data='000' />
					<value target='AltSSPin' data='0' />
					<value target='Mode' data='000' />
					<value target='PR_SCALE' data='064' />
					<value target='CKE' data='001' />
					<value target='CKP' data='000' />
					<value target='SMP' data='001' />
					<value target='ScopeTraces' data='1' />
					<value target='ConsoleData' data='1' />
					<value target='Injector' data='000' />
					<value target='InjectorCS' data='0' />
					<value target='InjectorHandle' data='0' />
					<value target='InjectorChannel' data='0' />
					<value target='BMODE' data='6' />
					<value target='MOSI_PORT' data='$PORTA.12' />
					<value target='MOSI_TRIS' data='$PORTA.12' />
					<value target='MOSI_PIN' data='12' />
					<value target='MISO_PORT' data='$PORTA.10' />
					<value target='MISO_TRIS' data='$PORTA.10' />
					<value target='MISO_PIN' data='10' />
					<value target='SCK_PORT' data='$PORTA.15' />
					<value target='SCK_TRIS' data='$PORTA.15' />
					<value target='SCK_PIN' data='15' />
					<value target='SS_PORT' data='$PORTC.2' />
					<value target='SS_TRIS' data='$PORTC.2' />
					<value target='SS_PIN' data='2' />
					<value target='Remappable' data='1' />
					<value target='MOSIReg' data='012' />
					<value target='CLKREG' data='014' />
					<value target='MOSIRPNUM' data='1' />
					<value target='MOSIBank' data='' />
					<value target='MOSIBank2' data='' />
					<value target='CLKRPNUM' data='1' />
					<value target='CLKBank' data='' />
					<value target='MISORPREG' data='SPI1PPS' />
					<value target='MISOBank' data='' />
					<value target='SPIName' data='' />
					<value target='MISOReg' data='000' />
					<value target='SPIClock' data='' />
					<value target='MISOBank2' data='' />
					<value target='CLKBank2' data='' />
					<value target='ParentName' data='' />
					<value target='BitDelay' data='0' />
					<value target='ClockSpeed' data='240000000' />
					<value target='MasterDivider' data='1' />
					<value target='Sim' data='1' />
					<value target='CLKRPREG' data='' />
					<value target='SSRPREG' data='' />
					<value target='SSBank' data='' />
					<value target='SSBank2' data='' />
					<value target='AltSSReg' data='' />
					<value target='AltSSMask' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c34f9b8a-a915-4f75-ad0c-87f2ad670a8a' vmin='5' vmaj='1' codename='CircularBuffer1' x='0' y='-74' z='8' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='BufferSize' data='128' />
					<value target='StorageType' data='000' />
					<value target='MemType' data='000' />
					<value target='RETURN' data='000' />
					<value target='Console' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c34f9b8a-a915-4f75-ad0c-87f2ad670a8a' vmin='5' vmaj='1' codename='UARTBuffer' x='83.8564' y='-74' z='8.25' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='BufferSize' data='128' />
					<value target='StorageType' data='000' />
					<value target='MemType' data='000' />
					<value target='RETURN' data='000' />
					<value target='Console' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='f0f54e46-0848-4930-9bb6-eff9a34ed229' vmin='4' vmaj='2' codename='WLAN_ESP32' x='-125' y='-150' z='11.7476' xsz='52.521' ysz='52.521' zsz='52.521' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Verbose' data='0' />
					<value target='RemapIndex' data='22' />
					<value target='TCP_Base1::interface' data='0' />
					<value target='TCP_Base1::ConsoleData' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm1' x='-141' y='76' z='22.25' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='001' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.9' />
					<value target='RemapPin' data='020' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.9' />
					<value target='PWM_TRIS' data='$PORTA.9' />
					<value target='PWM_PIN' data='9' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='020' />
					<value target='OCRPNUM' data='1' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm2' x='-124' y='116' z='101.25' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='002' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.17' />
					<value target='RemapPin' data='019' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.17' />
					<value target='PWM_TRIS' data='$PORTA.17' />
					<value target='PWM_PIN' data='17' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='019' />
					<value target='OCRPNUM' data='2' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm3' x='-107' y='76' z='81.5' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='003' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.10' />
					<value target='RemapPin' data='021' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.10' />
					<value target='PWM_TRIS' data='$PORTA.10' />
					<value target='PWM_PIN' data='10' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='021' />
					<value target='OCRPNUM' data='3' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm4' x='-90' y='116' z='61.75' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='004' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.7' />
					<value target='RemapPin' data='024' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.7' />
					<value target='PWM_TRIS' data='$PORTA.7' />
					<value target='PWM_PIN' data='7' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='024' />
					<value target='OCRPNUM' data='4' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm5' x='-73' y='76' z='22.25' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='005' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.27' />
					<value target='RemapPin' data='010' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.27' />
					<value target='PWM_TRIS' data='$PORTA.27' />
					<value target='PWM_PIN' data='27' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='010' />
					<value target='OCRPNUM' data='5' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm6' x='-56' y='116' z='101.25' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='006' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.14' />
					<value target='RemapPin' data='011' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.14' />
					<value target='PWM_TRIS' data='$PORTA.14' />
					<value target='PWM_PIN' data='14' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='011' />
					<value target='OCRPNUM' data='6' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm7' x='-39' y='76' z='81.5' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='007' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.26' />
					<value target='RemapPin' data='009' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.26' />
					<value target='PWM_TRIS' data='$PORTA.26' />
					<value target='PWM_PIN' data='26' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='009' />
					<value target='OCRPNUM' data='7' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm8' x='-22' y='116' z='61.75' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='008' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.16' />
					<value target='RemapPin' data='018' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.16' />
					<value target='PWM_TRIS' data='$PORTA.16' />
					<value target='PWM_PIN' data='16' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='018' />
					<value target='OCRPNUM' data='8' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm9' x='-5' y='76' z='101.25' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='009' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.11' />
					<value target='RemapPin' data='022' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.11' />
					<value target='PWM_TRIS' data='$PORTA.11' />
					<value target='PWM_PIN' data='11' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='022' />
					<value target='OCRPNUM' data='9' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm10' x='12' y='116' z='81.5' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='010' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.6' />
					<value target='RemapPin' data='023' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.6' />
					<value target='PWM_TRIS' data='$PORTA.6' />
					<value target='PWM_PIN' data='6' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='023' />
					<value target='OCRPNUM' data='10' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm11' x='29' y='76' z='61.75' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='011' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.8' />
					<value target='RemapPin' data='025' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.8' />
					<value target='PWM_TRIS' data='$PORTA.8' />
					<value target='PWM_PIN' data='8' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='025' />
					<value target='OCRPNUM' data='11' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='068080a0-b949-4a7e-b370-c45430e0c9de' vmin='2' vmaj='2' codename='cal_pwm12' x='46' y='116' z='61.75' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='012' />
					<value target='HWALT' data='0' />
					<value target='PORT' data='$PORTA.5' />
					<value target='RemapPin' data='026' />
					<value target='REF' data='0' />
					<value target='PERIOD' data='255' />
					<value target='PRESCALE' data='002' />
					<value target='CLK_FREQ' data='64000000' />
					<value target='timer' data='0' />
					<value target='CLK_SPEED' data='240000000' />
					<value target='CALC_PERIOD' data='208.333328' />
					<value target='CALC_FREQ' data='4.800000' />
					<value target='CALC_FREQ2' data='4800.000000' />
					<value target='PWM_PORT' data='$PORTA.5' />
					<value target='PWM_TRIS' data='$PORTA.5' />
					<value target='PWM_PIN' data='5' />
					<value target='master_divider' data='1' />
					<value target='PWM_PRESCALE' data='4' />
					<value target='Remappable' data='1' />
					<value target='OutputReg' data='026' />
					<value target='OCRPNUM' data='12' />
					<value target='OCBank' data='' />
					<value target='AltReg' data='' />
					<value target='AltMask' data='0' />
					<value target='pwm_type' data='0' />
					<value target='PWMName' data='TIM1' />
					<value target='PWMClock' data='' />
					<value target='PWMNumber' data='1' />
					<value target='TimNumber' data='0' />
					<value target='OCABank' data='' />
					<value target='MaxPeriod' data='255' />
					<value target='AltTimerVal' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='ed3a5141-43bb-43e0-86b0-2243fd1147ca' vmin='0' vmaj='2' codename='cal_i2c1' x='77' y='29' z='3.74999' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='ENABLED' data='1' />
					<value target='REF' data='1' />
					<value target='CHANNEL' data='000' />
					<value target='Mode' data='000' />
					<value target='SDA' data='$PORTA.13' />
					<value target='SDAPins' data='011' />
					<value target='SCL' data='$PORTA.12' />
					<value target='SCLPins' data='010' />
					<value target='StopDel' data='0' />
					<value target='BAUD_LIST' data='002' />
					<value target='BAUD' data='400000' />
					<value target='SRC' data='000' />
					<value target='SMB' data='000' />
					<value target='ClockStretching' data='1' />
					<value target='BMODE' data='0' />
					<value target='SDA_PORT' data='$PORTA.13' />
					<value target='SDA_TRIS' data='$PORTA.13' />
					<value target='SDA_PIN' data='13' />
					<value target='SCL_PORT' data='$PORTA.12' />
					<value target='SCL_TRIS' data='$PORTA.12' />
					<value target='SCL_PIN' data='12' />
					<value target='MASTER' data='0' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='0' />
					<value target='InjectorChannel' data='0' />
					<value target='REMAPPABLE' data='1' />
					<value target='SDABank' data='' />
					<value target='SDABank2' data='' />
					<value target='SCLBank' data='' />
					<value target='SCLBank2' data='' />
					<value target='SDARPNUM' data='1' />
					<value target='SCLRPNUM' data='' />
					<value target='SDARPREG' data='I2C1PPS' />
					<value target='SCLRPREG' data='I2C2PPS' />
					<value target='SDAREG' data='011' />
					<value target='SCLREG' data='010' />
					<value target='Sim' data='1' />
					<value target='ParentName' data='' />
					<value target='BitDelay' data='2' />
					<value target='SDAAlts' data='000' />
					<value target='SCLAlts' data='000' />
					<value target='SDAAlt' data='0' />
					<value target='SCLAlt' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='91b64b1d-b8b2-40f1-b073-e953a91fa234' vmin='2' vmaj='2' codename='UART1' x='-60' y='20' z='3.99999' xsz='32.5521' ysz='32.5521' zsz='32.5521' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='UseUART' data='1' />
					<value target='CHANNEL' data='002' />
					<value target='UseTX' data='1' />
					<value target='TX' data='$PORTB.0' />
					<value target='OutputPins' data='006' />
					<value target='TXAlt' data='0' />
					<value target='UseRX' data='1' />
					<value target='RX' data='$PORTA.26' />
					<value target='InputPins' data='007' />
					<value target='RXAlt' data='0' />
					<value target='FLOWEN' data='000' />
					<value target='RTS' data='$PORTC.4' />
					<value target='CTS' data='$PORTC.5' />
					<value target='BAUD_LIST' data='009' />
					<value target='BAUD' data='115200' />
					<value target='DBITS' data='008' />
					<value target='RETURN' data='001' />
					<value target='ECHO' data='000' />
					<value target='INT' data='000' />
					<value target='ScopeTraces' data='1' />
					<value target='ConsoleData' data='1' />
					<value target='ConsoleFormat' data='000' />
					<value target='ConsoleColumns' data='64' />
					<value target='DataSource' data='000' />
					<value target='com_port' data='000' />
					<value target='Injector' data='' />
					<value target='InjectorHandle' data='' />
					<value target='InjectorChannel' data='0' />
					<value target='APIUseDDR' data='0' />
					<value target='APIDDRPin' data='0' />
					<value target='APIUseFC' data='' />
					<value target='APICTSPin' data='0' />
					<value target='APIRTSPin' data='' />
					<value target='APIDDRRXState' data='000' />
					<value target='REF' data='0' />
					<value target='TX_PORT' data='$PORTB.0' />
					<value target='TX_TRIS' data='$PORTB.0' />
					<value target='TX_PIN' data='0' />
					<value target='RX_PORT' data='$PORTA.26' />
					<value target='RX_TRIS' data='$PORTA.26' />
					<value target='RX_PIN' data='26' />
					<value target='CTS_PORT' data='$PORTC.5' />
					<value target='CTS_PIN' data='5' />
					<value target='CTS_TRIS' data='$PORTC.5' />
					<value target='RTS_PORT' data='$PORTC.4' />
					<value target='RTS_PIN' data='4' />
					<value target='RTS_TRIS' data='$PORTC.4' />
					<value target='REMAPPABLE' data='1' />
					<value target='OutputReg' data='006' />
					<value target='InputReg' data='' />
					<value target='TXRPNUM' data='1' />
					<value target='TXBank' data='' />
					<value target='RXRPREG' data='U2PPS' />
					<value target='RXBank' data='' />
					<value target='UARTName' data='' />
					<value target='UARTClock' data='' />
					<value target='UartNumber' data='' />
					<value target='TXBank2' data='' />
					<value target='RXBank2' data='' />
					<value target='TX_ALT' data='' />
					<value target='RX_ALT' data='' />
					<value target='BitDelay' data='8' />
					<value target='ParentName' data='panel' />
					<value target='CompName' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='pot_color_cap1' x='10' y='20' z='0' xsz='25.1419' ysz='25.1419' zsz='18.55' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='4' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='12' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c67171df-0ad6-4b11-8361-cfe14b072847' vmin='1' vmaj='2' codename='cal_spi2' x='-138' y='-22' z='0.25' xsz='25' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='ENABLED' data='1' />
					<value target='REF' data='1' />
					<value target='CHANNEL' data='002' />
					<value target='MOSI' data='$PORTA.2' />
					<value target='MOSIPins' data='015' />
					<value target='MISO' data='$PORTA.7' />
					<value target='MISOPins' data='016' />
					<value target='CLK' data='$PORTA.4' />
					<value target='CLKPins' data='017' />
					<value target='UseAutoCS' data='0' />
					<value target='UseCS' data='0' />
					<value target='SS' data='$PORTC.2' />
					<value target='CSPolarity' data='000' />
					<value target='SSPins' data='000' />
					<value target='AltSSPin' data='0' />
					<value target='Mode' data='000' />
					<value target='PR_SCALE' data='064' />
					<value target='CKE' data='001' />
					<value target='CKP' data='000' />
					<value target='SMP' data='001' />
					<value target='ScopeTraces' data='1' />
					<value target='ConsoleData' data='1' />
					<value target='Injector' data='000' />
					<value target='InjectorCS' data='0' />
					<value target='InjectorHandle' data='0' />
					<value target='InjectorChannel' data='0' />
					<value target='BMODE' data='6' />
					<value target='MOSI_PORT' data='$PORTA.2' />
					<value target='MOSI_TRIS' data='$PORTA.2' />
					<value target='MOSI_PIN' data='2' />
					<value target='MISO_PORT' data='$PORTA.7' />
					<value target='MISO_TRIS' data='$PORTA.7' />
					<value target='MISO_PIN' data='7' />
					<value target='SCK_PORT' data='$PORTA.4' />
					<value target='SCK_TRIS' data='$PORTA.4' />
					<value target='SCK_PIN' data='4' />
					<value target='SS_PORT' data='$PORTC.2' />
					<value target='SS_TRIS' data='$PORTC.2' />
					<value target='SS_PIN' data='2' />
					<value target='Remappable' data='1' />
					<value target='MOSIReg' data='015' />
					<value target='CLKREG' data='017' />
					<value target='MOSIRPNUM' data='1' />
					<value target='MOSIBank' data='' />
					<value target='MOSIBank2' data='' />
					<value target='CLKRPNUM' data='1' />
					<value target='CLKBank' data='' />
					<value target='MISORPREG' data='SPI2PPS' />
					<value target='MISOBank' data='' />
					<value target='SPIName' data='' />
					<value target='MISOReg' data='000' />
					<value target='SPIClock' data='' />
					<value target='MISOBank2' data='' />
					<value target='CLKBank2' data='' />
					<value target='ParentName' data='' />
					<value target='BitDelay' data='0' />
					<value target='ClockSpeed' data='240000000' />
					<value target='MasterDivider' data='1' />
					<value target='Sim' data='1' />
					<value target='CLKRPREG' data='' />
					<value target='SSRPREG' data='' />
					<value target='SSBank' data='' />
					<value target='SSBank2' data='' />
					<value target='AltSSReg' data='' />
					<value target='AltSSMask' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='91b64b1d-b8b2-40f1-b073-e953a91fa234' vmin='2' vmaj='2' codename='UART2' x='-59' y='-40' z='4.24999' xsz='32.5521' ysz='32.5521' zsz='32.5521' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='UseUART' data='1' />
					<value target='CHANNEL' data='003' />
					<value target='UseTX' data='1' />
					<value target='TX' data='$PORTB.3' />
					<value target='OutputPins' data='005' />
					<value target='TXAlt' data='0' />
					<value target='UseRX' data='1' />
					<value target='RX' data='$PORTB.0' />
					<value target='InputPins' data='004' />
					<value target='RXAlt' data='0' />
					<value target='FLOWEN' data='000' />
					<value target='RTS' data='$PORTC.4' />
					<value target='CTS' data='$PORTC.5' />
					<value target='BAUD_LIST' data='009' />
					<value target='BAUD' data='115200' />
					<value target='DBITS' data='008' />
					<value target='RETURN' data='001' />
					<value target='ECHO' data='000' />
					<value target='INT' data='000' />
					<value target='ScopeTraces' data='1' />
					<value target='ConsoleData' data='1' />
					<value target='ConsoleFormat' data='000' />
					<value target='ConsoleColumns' data='64' />
					<value target='DataSource' data='000' />
					<value target='com_port' data='000' />
					<value target='Injector' data='' />
					<value target='InjectorHandle' data='' />
					<value target='InjectorChannel' data='0' />
					<value target='APIUseDDR' data='0' />
					<value target='APIDDRPin' data='0' />
					<value target='APIUseFC' data='' />
					<value target='APICTSPin' data='0' />
					<value target='APIRTSPin' data='' />
					<value target='APIDDRRXState' data='000' />
					<value target='REF' data='0' />
					<value target='TX_PORT' data='$PORTB.3' />
					<value target='TX_TRIS' data='$PORTB.3' />
					<value target='TX_PIN' data='3' />
					<value target='RX_PORT' data='$PORTB.0' />
					<value target='RX_TRIS' data='$PORTB.0' />
					<value target='RX_PIN' data='0' />
					<value target='CTS_PORT' data='$PORTC.5' />
					<value target='CTS_PIN' data='5' />
					<value target='CTS_TRIS' data='$PORTC.5' />
					<value target='RTS_PORT' data='$PORTC.4' />
					<value target='RTS_PIN' data='4' />
					<value target='RTS_TRIS' data='$PORTC.4' />
					<value target='REMAPPABLE' data='1' />
					<value target='OutputReg' data='005' />
					<value target='InputReg' data='' />
					<value target='TXRPNUM' data='1' />
					<value target='TXBank' data='' />
					<value target='RXRPREG' data='U3PPS' />
					<value target='RXBank' data='' />
					<value target='UARTName' data='' />
					<value target='UARTClock' data='' />
					<value target='UartNumber' data='' />
					<value target='TXBank2' data='' />
					<value target='RXBank2' data='' />
					<value target='TX_ALT' data='' />
					<value target='RX_ALT' data='' />
					<value target='BitDelay' data='8' />
					<value target='ParentName' data='panel' />
					<value target='CompName' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='ed3a5141-43bb-43e0-86b0-2243fd1147ca' vmin='0' vmaj='2' codename='cal_i2c2' x='78' y='-20' z='3.99999' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='ENABLED' data='1' />
					<value target='REF' data='1' />
					<value target='CHANNEL' data='000' />
					<value target='Mode' data='000' />
					<value target='SDA' data='$PORTA.25' />
					<value target='SDAPins' data='006' />
					<value target='SCL' data='$PORTA.21' />
					<value target='SCLPins' data='027' />
					<value target='StopDel' data='0' />
					<value target='BAUD_LIST' data='002' />
					<value target='BAUD' data='400000' />
					<value target='SRC' data='000' />
					<value target='SMB' data='000' />
					<value target='ClockStretching' data='1' />
					<value target='BMODE' data='0' />
					<value target='SDA_PORT' data='$PORTA.25' />
					<value target='SDA_TRIS' data='$PORTA.25' />
					<value target='SDA_PIN' data='25' />
					<value target='SCL_PORT' data='$PORTA.21' />
					<value target='SCL_TRIS' data='$PORTA.21' />
					<value target='SCL_PIN' data='21' />
					<value target='MASTER' data='0' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='0' />
					<value target='InjectorChannel' data='0' />
					<value target='REMAPPABLE' data='1' />
					<value target='SDABank' data='' />
					<value target='SDABank2' data='' />
					<value target='SCLBank' data='' />
					<value target='SCLBank2' data='' />
					<value target='SDARPNUM' data='1' />
					<value target='SCLRPNUM' data='' />
					<value target='SDARPREG' data='I2C1PPS' />
					<value target='SCLRPREG' data='I2C2PPS' />
					<value target='SDAREG' data='006' />
					<value target='SCLREG' data='027' />
					<value target='Sim' data='1' />
					<value target='ParentName' data='' />
					<value target='BitDelay' data='2' />
					<value target='SDAAlts' data='000' />
					<value target='SCLAlts' data='000' />
					<value target='SDAAlt' data='0' />
					<value target='SCLAlt' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c34f9b8a-a915-4f75-ad0c-87f2ad670a8a' vmin='5' vmaj='1' codename='UARTBuffer1' x='143.856' y='-74' z='8' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='BufferSize' data='128' />
					<value target='StorageType' data='000' />
					<value target='MemType' data='000' />
					<value target='RETURN' data='000' />
					<value target='Console' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='32.8624' ye='34.8107' ze='576.409' xt='32.8624' yt='34.8107' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='854' dy='1859' zoom='179.272' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='0' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='10.0359' ye='7.35021' ze='109.377' xt='10.0359' yt='7.35021' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAgAUAAKEHAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ActionCommand' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAgAUAAKEHAAA' zoom='60' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='UART1_Receive_Interrupt_Handler' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAgAUAAKEHAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='UART2_Receive_Interrupt_Handler' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAgAUAAKEHAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
