<?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>Gpio driver current sink capability setup</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67069/gpio-driver-current-sink-capability-setup</link><description>Hi, 
 Please, what are the settings for gpio driver in sdk15.2. for some gpio pin to be able to sink current (to act as gnd? ). In my project it is used for loadswitch enable pin, so I have to configure some gpio to be able to be high - supplying current</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Oct 2020 12:37:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67069/gpio-driver-current-sink-capability-setup" /><item><title>RE: Gpio driver current sink capability setup</title><link>https://devzone.nordicsemi.com/thread/274891?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 12:37:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:061b30bf-8160-48f0-a287-6447d0484641</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can configure the GPIO and set the the drive level using the&amp;nbsp;function&amp;nbsp;&lt;span&gt;nrf_gpio_cfg()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For high drive for both sinking and sourcing, use&amp;nbsp;NRF_GPIO_PIN_H0H1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Snippet:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;        nrf_gpio_cfg(PIN_NUMBER,
                 NRF_GPIO_PIN_DIR_OUTPUT,
                 NRF_GPIO_PIN_INPUT_DISCONNECT,
                 NRF_GPIO_PIN_NOPULL,
                 NRF_GPIO_PIN_H0H1,
                 NRF_GPIO_PIN_NOSENSE);

                 nrf_gpio_pin_write(PIN_NUMBER,0); // Set low
                 nrf_gpio_pin_write(PIN_NUMBER,1); // Set high&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>