Pin - smartel99/NilaiTFO GitHub Wiki
File: defines/pin.h
The Pin
structure is a simple structure that represents a physical GPIO pin on the STM32F405.
It contains the following members:
GPIO_TypeDef* port
A pointer to the port used by the pin.
uint16_t pin
The number of the pin on the GPIO port.
bool operator==(const Pin& other) const
A method that allows direct comparison between two Pin
objects.
Pin a = {GPIOA, 1};
Pin b = {GPIOB, 2};
if(a == b)
{
LOG_ERROR("'a' can't be 'b'!");
}