<root>
<file schema='103' />
<macros >
<macro >
<flowline name='file_write_block' description='' statediag='0' >
<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='count_buffer_a = 0' />
</command>
<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='5' >
<flowline >
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='count_filebuffer = 0' />
</command>
<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='sample_flag &gt; 0' swap='0' >
<flowline >
<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='get_IMU_data' />
</flowline>
<flowline />
</command>
<command class_type='loop' title='2 bytes writen' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='256' >
<flowline >
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='TypeConversions1' macro='SetInt' >
<argument exp='0' />
<argument exp='Buffer_ab[set_write][count_buffer_a]' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='TypeConversions1' macro='GetByte' >
<return exp='temp_data_byte' />
<argument exp='0' />
</command>
<command class_type='call' title='Write to FC File Buffer' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='FileSD1' macro='WriteByteToBuffer' >
<argument exp='count_filebuffer' />
<argument exp='temp_data_byte' />
</command>
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='count_filebuffer = count_filebuffer + 1' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='TypeConversions1' macro='GetByte' >
<return exp='temp_data_byte' />
<argument exp='1' />
</command>
<command class_type='call' title='Write to FC File Buffer' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='FileSD1' macro='WriteByteToBuffer' >
<argument exp='count_filebuffer' />
<argument exp='temp_data_byte' />
</command>
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='count_filebuffer = count_filebuffer + 1' />
</command>
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='count_buffer_a = count_buffer_a + 1' />
</command>
</flowline>
</command>
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='count_block = count_block + 1' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='FileSD1' macro='WriteFileSector' />
<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='sample_flag &gt; 0' swap='0' >
<flowline >
<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='get_IMU_data' />
</flowline>
<flowline />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='FileSD1' macro='MoveToNextFileSector' >
<return exp='ret_byte' />
<argument exp='1' />
</command>
<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='sample_flag &gt; 0' swap='0' >
<flowline >
<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='get_IMU_data' />
</flowline>
<flowline />
</command>
</flowline>
</command>
</flowline>
</macro>
</macros>
<variables >
<variable public='0' >
<def class_type='variable' name='count_filebuffer' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
</variable>
<variable public='0' >
<def class_type='variable' name='count_block' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
</variable>
<variable public='0' >
<def class_type='variable' name='count_buffer_a' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
</variable>
<variable public='0' >
<def class_type='variable' name='sample_flag' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
</variable>
<variable public='0' >
<def class_type='variable' name='ret_byte' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
</variable>
<variable public='0' >
<def class_type='variable' name='Buffer_ab' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' >
<array size='2' />
<array size='2800' />
</def>
</variable>
<variable public='0' >
<def class_type='variable' name='set_write' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
</variable>
<variable public='0' >
<def class_type='variable' name='temp_data_byte' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='65' setinit='65' />
</variable>
</variables>
</root>
