<?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: TJA1145 Example Code ：PortSupervisor() ---Which input GPIO is it? in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1145-Example-Code-PortSupervisor-Which-input-GPIO-is-it/m-p/1366877#M12491</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;it's RXD signal.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1636046787345.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161314i84C85FADD38E0592/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1636046787345.png" alt="lukaszadrapa_0-1636046787345.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Depending on the microcontroller you have, it's necessary to read the state of RXD pin. For example, if you have MPC5xxx or S32K3 device, read corresponding GPDI register in SIUL module.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2021 17:29:17 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2021-11-04T17:29:17Z</dc:date>
    <item>
      <title>TJA1145 Example Code ：PortSupervisor() ---Which input GPIO is it?</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1145-Example-Code-PortSupervisor-Which-input-GPIO-is-it/m-p/1363796#M12454</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TJA1145 Example Code ：PortSupervisor() ---Which input GPIO is it?&lt;/P&gt;&lt;P&gt;How to implement Byte ScanPort(void) function?&lt;/P&gt;&lt;P&gt;/// Port monitoring&lt;BR /&gt;/** This function reads an input port of the microcontroller. Depending on the result 3 different&lt;BR /&gt;* mode changes are possible:&lt;BR /&gt;* - Enter Sleep Operation Mode&lt;BR /&gt;* - Enter Standby Operation Mode&lt;BR /&gt;* - Enter Normal Operation Mode&lt;BR /&gt;*&lt;BR /&gt;* \author jh&lt;BR /&gt;* \version 1.0&lt;BR /&gt;* \date 2013/06/05&lt;BR /&gt;* \return &amp;lt;b&amp;gt;StdReturn_t&amp;lt;/b&amp;gt; Function executed successfully or not&lt;BR /&gt;* possible values: E_OK, E_NOT_OK&lt;BR /&gt;*/&lt;BR /&gt;void PortSupervisor (void){&lt;BR /&gt;Byte portData = 0;&lt;/P&gt;&lt;P&gt;portData = ScanPort();&lt;BR /&gt;if((portData &amp;amp; PORTMASK_NORMAL) == 0){&lt;BR /&gt;// Normal&lt;BR /&gt;AddTaskToScheduler(CHANGE_TO_NORMAL);&lt;BR /&gt;}&lt;BR /&gt;else if((portData &amp;amp; PORTMASK_STANDBY) == 0){&lt;BR /&gt;// Standby&lt;BR /&gt;AddTaskToScheduler(CHANGE_TO_STANDBY);&lt;BR /&gt;}&lt;BR /&gt;else if((portData &amp;amp; PORTMASK_SLEEP) == 0){&lt;BR /&gt;// Sleep&lt;BR /&gt;AddTaskToScheduler(CHANGE_TO_SLEEP);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/**&lt;BR /&gt;* \brief Read GPIO port configured as input port&lt;BR /&gt;* \todo implement this function with your microcontroller specific code&lt;BR /&gt;* - Read GPIO port&lt;BR /&gt;* \return Port input value&lt;BR /&gt;*/&lt;BR /&gt;Byte ScanPort(void){&lt;BR /&gt;// Insert your microcontroller specific code here&lt;BR /&gt;// e.g. Read GPIO port and return value&lt;BR /&gt;return 1;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 09:11:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/TJA1145-Example-Code-PortSupervisor-Which-input-GPIO-is-it/m-p/1363796#M12454</guid>
      <dc:creator>fengjuntian</dc:creator>
      <dc:date>2021-10-29T09:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: TJA1145 Example Code ：PortSupervisor() ---Which input GPIO is it?</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1145-Example-Code-PortSupervisor-Which-input-GPIO-is-it/m-p/1366877#M12491</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;it's RXD signal.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1636046787345.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161314i84C85FADD38E0592/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1636046787345.png" alt="lukaszadrapa_0-1636046787345.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Depending on the microcontroller you have, it's necessary to read the state of RXD pin. For example, if you have MPC5xxx or S32K3 device, read corresponding GPDI register in SIUL module.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 17:29:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/TJA1145-Example-Code-PortSupervisor-Which-input-GPIO-is-it/m-p/1366877#M12491</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2021-11-04T17:29:17Z</dc:date>
    </item>
  </channel>
</rss>

