this is more or less a question about wording. I am designing an API and need to figure out whether or not the namespace name used is correct or needs to be refactored.
The namespace is called GPIO and inside this namespace are modules to configure a pin. That means, there're routines for configuring a PWM and an ADC on pins in this namespace. Also things like using the pin for I2C or SPI are grouped.
As I am only a hobbyist when it comes to electrical engineering, I am worried that the name of the namespace is confusing, misleading, or plainly wrong - because I gathered those routines/modules under the name of GPIO.
I have always thought that GPIO just means that a pin has possibly many features that can be configured. But when you lookup wikipedia or almost all other sources on the web, then a GPIO seems to be limited to only digital io capabilities and maybe configure a pull up or pull down resistor.
So, what exactly does the term GPIO mean? Is it really limited to digital IO?
Is it correct to say: I configure this GPIO as a PWM. I configure that GPIO as a timer.
Or is it wrong?