<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>bit setting, how to</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/36970/bit-setting-how-to</link><description> Hallo! 
I&amp;#39;m searching for a explanation for the code in Keil&amp;#39;s CAN.h 
(01=set; 10=reset) 
 
&amp;lt;-------------code-------------&amp;gt; 
... 
#define NEWDAT_ 0x0200 u 
#define CPUUPD_ 0x0800 u 
#define TXRQ_ 0x2000 u 
... 
#define NEWDAT_CLR (~NEWDAT_) 
#define</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: bit setting, how to</title><link>https://community.arm.com/thread/98335?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2006 09:27:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a9a7b906-c69e-449c-ba0b-214cd1906223</guid><dc:creator>Sven Jahn</dc:creator><description>&lt;p&gt;Sorry for that, i thought it is a more general matter - i use a ST10F269.&lt;br /&gt;
I did not recognize that the function of &amp;quot;11&amp;quot; on write is to leave element unchanged (which is in my case). It&amp;#39;s now clear to me.&lt;br /&gt;
&lt;br /&gt;
Thanks for the hint and explanation of &lt;b&gt;u&lt;/b&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bit setting, how to</title><link>https://community.arm.com/thread/87834?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2006 09:14:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3132ac3e-0ccf-47eb-b8b1-665f1076a771</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;i&gt;Ok, you didn&amp;#39;t say what device you are using&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
why would he, it is much more fun to have us guessing.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bit setting, how to</title><link>https://community.arm.com/thread/46542?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2006 09:07:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bf2591dd-61ef-4dff-957b-8d359c104801</guid><dc:creator>Chris Wunderlich</dc:creator><description>&lt;p&gt;Ok, you didn&amp;#39;t say what device you are using. For example if you are referring to an Infineon device then you have two bits to control the field as you stated but you missed that &lt;b&gt;11b&lt;/b&gt; means &lt;i&gt;leave the element unchanged&lt;/i&gt;.  The &lt;b&gt;u&lt;/b&gt; is for the compiler to treat the value as &lt;i&gt;unsigned&lt;/i&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>