<?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>MQX Software SolutionsのトピックIO_IOCTL_SERIAL_GET_STATS</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/IO-IOCTL-SERIAL-GET-STATS/m-p/254509#M7459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ioctl command, when used with IO_IOCTL_SERIAL_GET_STATS returns a number of uint_32 to a buffer pointed to by the supplied param_ptr. I don't see any documentation for how many uint_32 may be written, and hence how large the buffer needs to be. Currently, by checking the source code, it looks like it writes 8 words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens if this changes in the future MQX releases, perhaps by supplying 9 words? This is a recipe for disaster. Am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is there a method of getting/clearing only some of the statistics, ie just the error counts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And lastly, why is RX_NOISE_ERRORS not included in the current methods?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 15:35:54 GMT</pubDate>
    <dc:creator>billnd</dc:creator>
    <dc:date>2014-02-24T15:35:54Z</dc:date>
    <item>
      <title>IO_IOCTL_SERIAL_GET_STATS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/IO-IOCTL-SERIAL-GET-STATS/m-p/254509#M7459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ioctl command, when used with IO_IOCTL_SERIAL_GET_STATS returns a number of uint_32 to a buffer pointed to by the supplied param_ptr. I don't see any documentation for how many uint_32 may be written, and hence how large the buffer needs to be. Currently, by checking the source code, it looks like it writes 8 words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens if this changes in the future MQX releases, perhaps by supplying 9 words? This is a recipe for disaster. Am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is there a method of getting/clearing only some of the statistics, ie just the error counts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And lastly, why is RX_NOISE_ERRORS not included in the current methods?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 15:35:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/IO-IOCTL-SERIAL-GET-STATS/m-p/254509#M7459</guid>
      <dc:creator>billnd</dc:creator>
      <dc:date>2014-02-24T15:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: IO_IOCTL_SERIAL_GET_STATS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/IO-IOCTL-SERIAL-GET-STATS/m-p/254510#M7460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Hi,&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;IO_IOCTL_SERIAL_GET_STATS is used to get the statistics information of the serial port, e.g. Rx parity error, overrun, etc.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; If you want to check whether there is character received, _io_fstatus() could be used like:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; bCharRecved = _io_fstatus(uart3_file);&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I recommend you to take a look to the AN3902 “How to develop I/O Drivers for MQX” for getting a better understanding of MQX drivers.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;A href="http://cache.freescale.com/files/32bit/doc/app_note/AN3902.pdf"&gt;&lt;SPAN style="color: windowtext;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="http://cache.freescale.com/files/32bit/doc/app_note/AN3902.pdf" target="test_blank"&gt;http://cache.freescale.com/files/32bit/doc/app_note/AN3902.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Sol &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 22:39:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/IO-IOCTL-SERIAL-GET-STATS/m-p/254510#M7460</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2014-03-03T22:39:39Z</dc:date>
    </item>
  </channel>
</rss>

