<?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: KSDK-1.1 SAI documentation error in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/KSDK-1-1-SAI-documentation-error/m-p/364993#M2805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right, we will modify the documents in 1.2 GA release, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2015 05:12:14 GMT</pubDate>
    <dc:creator>likong</dc:creator>
    <dc:date>2015-01-26T05:12:14Z</dc:date>
    <item>
      <title>KSDK-1.1 SAI documentation error</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/KSDK-1-1-SAI-documentation-error/m-p/364992#M2804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the KSDK v-1.1 API Reference Manual Rev. 0 (file:///C:/Freescale/KSDK_1.1.0/doc/Kinetis%20SDK%20v.1.1%20API%20Reference%20Manual/group__sai__driver.html)&lt;/P&gt;&lt;P&gt;the steps to use SAI is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;1. Initialize the SAI module by calling the SAI_DRV_TxInit() function.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;2. Configure the audio data features of SAI by calling the SAI_DRV_TxConfigDataFormat() function.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;3. Send/receive data by calling the SAI_DRV_SendData() or the SAI_DRV_ReceiveData() functions.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;4. Start Tx or Rx by calling the SAI_DRV_TxStartModule() or the SAI_DRV_RxStartModule() function.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;5. Shut down the SAI module by calling the SAI_DRV_TxDeinit() function.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;But when I investigate the source (KSDK_1.1.0\platform\sai\fsl_sai_driver.c)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Send/Receive_Data looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*FUNCTION**********************************************************************&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; * Function Name : SAI_DRV_SendData&lt;/P&gt;&lt;P&gt; * Description&amp;nbsp;&amp;nbsp; : The function would tell sai driver to start send a period of&lt;/P&gt;&lt;P&gt; * data to sai tx fifo.&lt;/P&gt;&lt;P&gt; *END**************************************************************************/&lt;/P&gt;&lt;P&gt;uint32_t SAI_DRV_SendData(uint32_t instance, uint8_t *addr, uint32_t len)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sai_state_ids[instance][0]-&amp;gt;len = len;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sai_state_ids[instance][0]-&amp;gt;address= addr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAI_DRV_TxStartModule(instance);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return len;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*FUNCTION**********************************************************************&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; * Function Name : SAI_DRV_ReceiveData&lt;/P&gt;&lt;P&gt; * Description&amp;nbsp;&amp;nbsp; : The function would tell sai driver to start receive a period of&lt;/P&gt;&lt;P&gt; * data from sai rx fifo.&lt;/P&gt;&lt;P&gt; *END**************************************************************************/&lt;/P&gt;&lt;P&gt;uint32_t SAI_DRV_ReceiveData(uint32_t instance, uint8_t *addr, uint32_t len)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sai_state_ids[instance][1]-&amp;gt;len = len;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sai_state_ids[instance][1]-&amp;gt;address= addr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAI_DRV_RxStartModule(instance);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return len;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The #4 (SAI_DRV_TxStartModule() / SAI_DRV_RxStartModule()) is performed by SAI_DRV_SendData() / SAI_DRV_ReceiveData() and are not necessary to call again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 16:20:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/KSDK-1-1-SAI-documentation-error/m-p/364992#M2804</guid>
      <dc:creator>oaf</dc:creator>
      <dc:date>2015-01-21T16:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK-1.1 SAI documentation error</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/KSDK-1-1-SAI-documentation-error/m-p/364993#M2805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right, we will modify the documents in 1.2 GA release, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 05:12:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/KSDK-1-1-SAI-documentation-error/m-p/364993#M2805</guid>
      <dc:creator>likong</dc:creator>
      <dc:date>2015-01-26T05:12:14Z</dc:date>
    </item>
  </channel>
</rss>

