<root>
<file schema='103' />
<macros >
<macro >
<flowline name='LSM_read' description='' statediag='0' >
<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
<local name='data' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
<array size='1' />
</local>
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='I2CAddress = 0xD5' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
<return exp='ret_byte' />
<argument exp='I2CAddress' />
</command>
<command class_type='calculation' title='Register' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='.data[0] = 15' />
<exp exp='' />
<exp exp='' />
</command>
<command class_type='call' title='First write to the required register' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
<argument exp='.Data' />
<argument exp='1' />
</command>
<command class_type='call' title='Now the data can be read' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Read' >
<argument exp='.Data' />
<argument exp='1' />
</command>
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='adress_strg = ToString$(.data[0])' />
<exp exp='adress_strg = adress_strg + &quot;,&quot;' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='I2CAddress = 0xd7' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
<return exp='ret_byte' />
<argument exp='I2CAddress' />
</command>
<command class_type='calculation' title='Register' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='.data[0] = 15' />
</command>
<command class_type='call' title='First write to the required register' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
<argument exp='.Data' />
<argument exp='1' />
</command>
<command class_type='call' title='Now the data can be read' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Read' >
<argument exp='.Data' />
<argument exp='1' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='adress_strg = adress_strg + ToString$(.data[0])' />
<exp exp='adress_strg = adress_strg + &quot;,&quot;' />
</command>
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='I2CAddress = 0x39' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
<return exp='ret_byte' />
<argument exp='I2CAddress' />
</command>
<command class_type='calculation' title='Register' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='.data[0] = 15' />
</command>
<command class_type='call' title='First write to the required register' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
<argument exp='.Data' />
<argument exp='1' />
</command>
<command class_type='call' title='Now the data can be read' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Read' >
<argument exp='.Data' />
<argument exp='1' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='adress_strg = adress_strg + ToString$(.data[0])' />
<exp exp='adress_strg = adress_strg + &quot;,&quot;' />
</command>
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='I2CAddress = 0x3D' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
<return exp='ret_byte' />
<argument exp='I2CAddress' />
</command>
<command class_type='calculation' title='Register' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='.data[0] = 15' />
</command>
<command class_type='call' title='First write to the required register' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
<argument exp='.Data' />
<argument exp='1' />
</command>
<command class_type='call' title='Now the data can be read' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Read' >
<argument exp='.Data' />
<argument exp='1' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
<exp exp='adress_strg = adress_strg + ToString$(.data[0])' />
<exp exp='adress_strg = adress_strg + &quot;,&quot;' />
</command>
</flowline>
</macro>
</macros>
<variables >
<variable public='0' >
<def class_type='variable' name='I2CAddress' type='u8' 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='adress_strg' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
<array size='20' />
</def>
</variable>
</variables>
</root>
