<?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中的主题 Re: MQX SPI Driver</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-Driver/m-p/688979#M17445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Louie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A single callback function for CS handling may be registered per SPI device. The callback function registration is performed by the IO_IOCTL_SPI_SET_CS_CALLBACK_IOCTL command. The parameter of the command is SPI_CS_CALLBACK_STRUCT which contains a pointer to the callback function and a pointer to the arbitrary context data for the callback function.&lt;/P&gt;&lt;P&gt;SPI driver then calls the function any time when a change of the CS signals state is necessary. Besides the context data, the function is also passed a desired state of the CS signals. The callback function is then responsible for changing the state of the CS by any method (e.g., using LWGPIO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct or helpful button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2017 08:49:55 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2017-08-03T08:49:55Z</dc:date>
    <item>
      <title>MQX SPI Driver</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-Driver/m-p/688978#M17444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello - does anyone have experience using the MQX SPI driver where Chip Select toggling is required? &amp;nbsp;I'm just wondering how this is accomplished (if possible) maybe using ioctl? &amp;nbsp;I need to have the ability to switch between toggling and not, as I have two devices on the bus - one requires toggle and the other not. &amp;nbsp;I'm able to do it with PE (SPI2_SelectConfiguration), but I need to use only MQX SPI driver.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using K70 with CW10.6, MQX 4.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Louie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 23:16:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-Driver/m-p/688978#M17444</guid>
      <dc:creator>louiemoye</dc:creator>
      <dc:date>2017-07-31T23:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: MQX SPI Driver</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-Driver/m-p/688979#M17445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Louie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A single callback function for CS handling may be registered per SPI device. The callback function registration is performed by the IO_IOCTL_SPI_SET_CS_CALLBACK_IOCTL command. The parameter of the command is SPI_CS_CALLBACK_STRUCT which contains a pointer to the callback function and a pointer to the arbitrary context data for the callback function.&lt;/P&gt;&lt;P&gt;SPI driver then calls the function any time when a change of the CS signals state is necessary. Besides the context data, the function is also passed a desired state of the CS signals. The callback function is then responsible for changing the state of the CS by any method (e.g., using LWGPIO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct or helpful button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 08:49:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-Driver/m-p/688979#M17445</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-08-03T08:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: MQX SPI Driver</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-Driver/m-p/688980#M17446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Daniel. &amp;nbsp;I have started down the path of registering the callback. I wasn't sure if there was a way to have hardware do the toggling/strobing since the SPI port can be configured to handle the /CS line, but apparently it's required in software. &amp;nbsp;I will look into controlling the /CS line manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 15:48:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-Driver/m-p/688980#M17446</guid>
      <dc:creator>louiemoye</dc:creator>
      <dc:date>2017-08-03T15:48:26Z</dc:date>
    </item>
  </channel>
</rss>

