<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S32K中的主题 Re: CAN comm Bit manupulation using S32k14x EAR SDK</title>
    <link>https://community.nxp.com/t5/S32K/CAN-comm-Bit-manupulation-using-S32k14x-EAR-SDK/m-p/1780517#M29989</link>
    <description>&lt;P&gt;&lt;A href="mailto:Hi@akhilranga" target="_blank"&gt;Hi@akhilranga&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;for example: 0x89&lt;/P&gt;
&lt;P&gt;uint8_t Bit_3 = (0x89 &amp;gt;&amp;gt; 3) &amp;amp; 0x01;// read 0x89 bit3&lt;/P&gt;
&lt;P&gt;uint8_t Bit_2 = 0x89 | (0x01 &amp;lt;&amp;lt; 2);// set 0x89 bit2 to 1,10001101&lt;/P&gt;
&lt;P&gt;uint8_t Bit_2 = 0x89 &amp;amp; (~(0x01 &amp;lt;&amp;lt; 2));//set 0x89 bit2 to 0,10001001&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2023 10:44:32 GMT</pubDate>
    <dc:creator>Senlent</dc:creator>
    <dc:date>2023-12-27T10:44:32Z</dc:date>
    <item>
      <title>CAN comm Bit manupulation using S32k14x EAR SDK</title>
      <link>https://community.nxp.com/t5/S32K/CAN-comm-Bit-manupulation-using-S32k14x-EAR-SDK/m-p/1780305#M29963</link>
      <description>&lt;DIV&gt;Hi there,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Using the following syntax i could able to observe and monitor the CAN frame and it's Byte information.&lt;/DIV&gt;&lt;DIV&gt;I have build this CAN code using the S32k14x EAR SDK.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;can_message_t StdTxMsg23 = {
            	  .cs = 0U,
            	  .id = TX_MSG_ID_23,
             .data[0] = ExtRxMsg12.data[0],
		     .data[1] = ExtRxMsg12.data[1],
			 .data[2] = ExtRxMsg12.data[2],
			 .data[3] = ExtRxMsg12.data[3],
			 .data[4] = ExtRxMsg12.data[4],
			 .data[5] = ExtRxMsg12.data[5],
			 .data[6] = ExtRxMsg12.data[6],
			 .data[7] = ExtRxMsg12.data[7],
              .length = 8U
            	        };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i would also like to monitor and manupulate at bit level in each of these bytes. So, can you please help me with syntax or something through which i can enable this manupulation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Ex : CAN FRAME&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID: 0x301&lt;/P&gt;&lt;P&gt;Length: 8 Bytes&lt;/P&gt;&lt;P&gt;DATA : 0xFF 0x00 0x35 0x55 0x00 0xFF 0x89 0xCD&lt;/P&gt;&lt;P&gt;Byte 6 from the above frame is 0x89 when converted to binary it is 1000 1001 .&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, in this frame i want to check whether the Bit 3 is 1 or 0 in this case it is 1 and if i want to change the Bit 2 to 1 or 0. How can i do this part. Please help me how can i do this level of monitoring and manupulation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 06:31:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-comm-Bit-manupulation-using-S32k14x-EAR-SDK/m-p/1780305#M29963</guid>
      <dc:creator>akhilranga</dc:creator>
      <dc:date>2023-12-27T06:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: CAN comm Bit manupulation using S32k14x EAR SDK</title>
      <link>https://community.nxp.com/t5/S32K/CAN-comm-Bit-manupulation-using-S32k14x-EAR-SDK/m-p/1780517#M29989</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@akhilranga" target="_blank"&gt;Hi@akhilranga&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;for example: 0x89&lt;/P&gt;
&lt;P&gt;uint8_t Bit_3 = (0x89 &amp;gt;&amp;gt; 3) &amp;amp; 0x01;// read 0x89 bit3&lt;/P&gt;
&lt;P&gt;uint8_t Bit_2 = 0x89 | (0x01 &amp;lt;&amp;lt; 2);// set 0x89 bit2 to 1,10001101&lt;/P&gt;
&lt;P&gt;uint8_t Bit_2 = 0x89 &amp;amp; (~(0x01 &amp;lt;&amp;lt; 2));//set 0x89 bit2 to 0,10001001&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 10:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-comm-Bit-manupulation-using-S32k14x-EAR-SDK/m-p/1780517#M29989</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2023-12-27T10:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: CAN comm Bit manupulation using S32k14x EAR SDK</title>
      <link>https://community.nxp.com/t5/S32K/CAN-comm-Bit-manupulation-using-S32k14x-EAR-SDK/m-p/1780530#M29992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the 0x89 is not an ID of the frame and it is not static value. It is the value of a varying (hexadeceimal)&amp;nbsp; Byte 6&amp;nbsp; of the&amp;nbsp;CAN Frame with ID 301.&amp;nbsp; &amp;nbsp;S0, and if i try to manupulate the bit inside that byte 6 (0x89) then the value of that also changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my Example&amp;nbsp;&lt;/P&gt;&lt;P&gt;ExtRxMsg12.data[6] = 0x89 . So, my question was how can i manupulate the bit values in the ExtRxMsg12.data[6] which is mapped to the 0x301 ID can frame's Byte 6 indicator.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 11:34:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-comm-Bit-manupulation-using-S32k14x-EAR-SDK/m-p/1780530#M29992</guid>
      <dc:creator>akhilranga</dc:creator>
      <dc:date>2023-12-27T11:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: CAN comm Bit manupulation using S32k14x EAR SDK</title>
      <link>https://community.nxp.com/t5/S32K/CAN-comm-Bit-manupulation-using-S32k14x-EAR-SDK/m-p/1780751#M30004</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@akhilranga" target="_blank"&gt;Hi@akhilranga&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I don't quiet understand your question, there is no difference between my last reply.&lt;/P&gt;
&lt;P&gt;.data[6] = (ExtRxMsg12.data[6] &amp;gt;&amp;gt; 3) &amp;amp; 0x01;// read 0x89 bit3&lt;/P&gt;
&lt;P&gt;.data[6] = ExtRxMsg12.data[6] | (0x01 &amp;lt;&amp;lt; 2);// set 0x89 bit2 to 1,10001101&lt;/P&gt;
&lt;P&gt;.data[6] = ExtRxMsg12.data[6] &amp;amp; (~(0x01 &amp;lt;&amp;lt; 2));//set 0x89 bit2 to 0,10001001&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 05:43:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-comm-Bit-manupulation-using-S32k14x-EAR-SDK/m-p/1780751#M30004</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2023-12-28T05:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: CAN comm Bit manupulation using S32k14x EAR SDK</title>
      <link>https://community.nxp.com/t5/S32K/CAN-comm-Bit-manupulation-using-S32k14x-EAR-SDK/m-p/1780764#M30006</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if i couldn't able to communicate my issue properly.&lt;/P&gt;&lt;P&gt;But the recent reply where you replaced the 0x89 with&amp;nbsp;&lt;SPAN&gt;ExtRxMsg12.data[6]. This makes more sense to me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What i was saying in the earlier message was that we can't use 0x89 as a Byte 6 indicator because it will be varrying and i thought it should be inidated with a proper Byte 6 assigned indicator which is ExtRxMsg12.data6. So with your latest reply i got the answer what i am looking for. So, i will try this approach and get back to you if i require any further support&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 06:17:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-comm-Bit-manupulation-using-S32k14x-EAR-SDK/m-p/1780764#M30006</guid>
      <dc:creator>akhilranga</dc:creator>
      <dc:date>2023-12-28T06:17:27Z</dc:date>
    </item>
  </channel>
</rss>

