Functions | |
gpio_pin_state_t | hal_gpio_read_pin (gpio_regs_t *GPIOx, uint16_t gpio_pin) |
Read the specified input port pin. More... | |
void | hal_gpio_write_pin (gpio_regs_t *GPIOx, uint16_t gpio_pin, gpio_pin_state_t pin_state) |
Set or clear the selected data port bit. More... | |
void | hal_gpio_toggle_pin (gpio_regs_t *GPIOx, uint16_t gpio_pin) |
Toggle the specified GPIO pin. More... | |
gpio_pin_state_t hal_gpio_read_pin | ( | gpio_regs_t * | GPIOx, |
uint16_t | gpio_pin | ||
) |
Read the specified input port pin.
[in] | GPIOx | Where x can be (0, 1) to select the GPIO peripheral port |
[in] | gpio_pin | Specifies the port bit to be read. This parameter can be a one of the following values: |
GPIO_PIN_RESET | GPIO pin low level. |
GPIO_PIN_SET | GPIO pin high level. |
void hal_gpio_toggle_pin | ( | gpio_regs_t * | GPIOx, |
uint16_t | gpio_pin | ||
) |
Toggle the specified GPIO pin.
[in] | GPIOx | Where x can be (0, 1) to select the GPIO peripheral port |
[in] | gpio_pin | Specifies the pin to be toggled. This parameter can be a combiantion of the following values: |
void hal_gpio_write_pin | ( | gpio_regs_t * | GPIOx, |
uint16_t | gpio_pin, | ||
gpio_pin_state_t | pin_state | ||
) |
Set or clear the selected data port bit.
[in] | GPIOx | Where x can be (0, 1) to select the GPIO peripheral port |
[in] | gpio_pin | Specifies the port bit to be written. This parameter can be a combiantion of the following values: |
[in] | pin_state | Specifies the value to be written to the selected bit. This parameter can be one of the GPIO_PinState enum values:
|