13.6.3.3.3 Function port_pin_set_output_level()

Sets the state of a port pin that is configured as an output.

void port_pin_set_output_level( const uint8_t gpio_pin, const bool level)

Sets the current output level of a port pin to a given logic level.

Table 13-13. Parameters
Data directionParameter nameDescription

[in]

gpio_pin

Index of the GPIO pin to write to

[in]

level

Logical level to set the given pin to