/* Retrieves the state of a port pin that is configured as an output. 
Reads the current logical output level of a port pin and returns the current level as a Boolean value. */
bool port_pin_get_output_level(const uint8_t gpio_pin)
/* Retrieves the state of a port pin that is configured as an output. 
Reads the current logical output level of a port pin and returns the current level as a Boolean value. */
bool port_pin_get_output_level(const uint8_t gpio_pin)
{
	PortGroup *const port_base = port_get_group_from_gpio_pin(gpio_pin);
	uint32_t pin_mask  = (1UL << (gpio_pin % 32));
	return (port_base->OUT.reg & pin_mask);
}