Convenience class used to provide a Port and Pin for later ID.
More...
#include <nrf_gpio.hpp>
template<uint8_t TPort, uint8_t TPin>
class nRFPinID< TPort, TPin >
Convenience class used to provide a Port and Pin for later ID.
Example usage can be found in nrf_i2c.hpp. The nRFi2cMaster class is templated off of two pins: SCL pin and SDA. Using the nRFPinID class, we do not need intermediary GPIO objects. The I2C class can get the port and pin numbers directly. These numbers are used to configure the device and pins.
- Template Parameters
-
| TPort | the GPIO Bank. |
| TPin | the pin within the selected GPIO bank. |
◆ pin()
template<uint8_t TPort, uint8_t TPin>
◆ port()
template<uint8_t TPort, uint8_t TPin>
The documentation for this class was generated from the following file: