<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Get the Drive mode for an output pin</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87991/get-the-drive-mode-for-an-output-pin</link><description>Hi 
 I need to read the Drive mode of how an output pin has been configured.... 
 
 I see that there is an API to read pin&amp;#39;s Pullup, Direction, Sense, etc configuration... but there is no API to get an Output&amp;#39;s Drive mode 
 
 Here is the API I wrote if</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Aug 2022 14:32:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87991/get-the-drive-mode-for-an-output-pin" /><item><title>RE: Get the Drive mode for an output pin</title><link>https://devzone.nordicsemi.com/thread/380423?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 14:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab104c55-b353-4c80-8fe1-8d0cc96cb0c2</guid><dc:creator>jcondon</dc:creator><description>&lt;p&gt;I was responding to the poster&amp;#39;s comment that there is no method in the API to get/set a pin&amp;#39;s output drive mode independently -- which is why they had to write it themselves.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the Drive mode for an output pin</title><link>https://devzone.nordicsemi.com/thread/380264?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 06:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56fc207e-061c-4c53-9a45-9f0eb061b346</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;DevZone is for support questions and in some cases bug reports.&lt;br /&gt;If you have feedback on other matters, please use our &lt;a href="https://www.nordicsemi.com/About-us/Contact-Us"&gt;other contact points&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For your statement:&lt;/p&gt;
[quote user="jcondon"]finish writing their GPIO driver code.[/quote]
&lt;p&gt;I am not sue that I understand the exact issue you are pointing to.&lt;br /&gt;If it is directly related to this case, could you explain in more detail what is missing?&lt;/p&gt;
&lt;p&gt;Or if it is not related to this case, please create a &lt;a href="https://devzone.nordicsemi.com/support/add"&gt;new ticket&lt;/a&gt; here on DevZone to help us keep our forum tidy.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the Drive mode for an output pin</title><link>https://devzone.nordicsemi.com/thread/380214?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 18:58:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d67667de-a37e-4cb3-9b52-c41bd67d645f</guid><dc:creator>jcondon</dc:creator><description>&lt;p&gt;I am so confused on why Nordic decided not to finish writing their GPIO driver code. Seems like a fairly basic task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the Drive mode for an output pin</title><link>https://devzone.nordicsemi.com/thread/368247?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 09:17:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad610355-96f7-4122-a842-d4da40c2f66e</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Ray&lt;/p&gt;
&lt;p&gt;As we build the nRF Connect SDK on Zephyr, the drive state for the GPIO is set in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/index.html"&gt;devicetree&lt;/a&gt;. &lt;br /&gt;It should be possible to get the drive state from the devicetree by using &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/gpio.html#c.GPIO_DT_SPEC_GET"&gt;GPIO_DT_SPEC_GET&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;See attached file for how to get the drive state from a modified blinky sample.&lt;/p&gt;
&lt;p&gt;Is this what you were looking for?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/gpio_5F00_get_5F00_state_5F00_sample.zip"&gt;devzone.nordicsemi.com/.../gpio_5F00_get_5F00_state_5F00_sample.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>