<?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>topic Re: Is it possible to read the value of a lwevent? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Is-it-possible-to-read-the-value-of-a-lwevent/m-p/218182#M5636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, reading value of any synchronization object (e.g. lwevent) is not task-safe and handling with those objects should be done only through blocking / setting functions.&lt;/P&gt;&lt;P&gt;To fulfill your request, I reply that if you want to read value of lwevent, use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
LWEVENT_STRUCT some_event;

/* some initialization code here, out of scope */

_mqx_uint lwe_val = some_event.VALUE;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&amp;nbsp;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by JuroV on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-05&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;10:17 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2009 15:16:46 GMT</pubDate>
    <dc:creator>JuroV</dc:creator>
    <dc:date>2009-10-05T15:16:46Z</dc:date>
    <item>
      <title>Is it possible to read the value of a lwevent?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Is-it-possible-to-read-the-value-of-a-lwevent/m-p/218181#M5635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If yes,&amp;nbsp; how? and would I need extra protection to avoid accessing the value of the event at the same time by different tasks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2009 06:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Is-it-possible-to-read-the-value-of-a-lwevent/m-p/218181#M5635</guid>
      <dc:creator>JaimeR</dc:creator>
      <dc:date>2009-09-26T06:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to read the value of a lwevent?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Is-it-possible-to-read-the-value-of-a-lwevent/m-p/218182#M5636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, reading value of any synchronization object (e.g. lwevent) is not task-safe and handling with those objects should be done only through blocking / setting functions.&lt;/P&gt;&lt;P&gt;To fulfill your request, I reply that if you want to read value of lwevent, use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
LWEVENT_STRUCT some_event;

/* some initialization code here, out of scope */

_mqx_uint lwe_val = some_event.VALUE;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&amp;nbsp;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by JuroV on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-05&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;10:17 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 15:16:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Is-it-possible-to-read-the-value-of-a-lwevent/m-p/218182#M5636</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2009-10-05T15:16:46Z</dc:date>
    </item>
  </channel>
</rss>

