![]() |
RTEMS 6.3
|
Functions | |
| uint32_t | alt_gpio_port_idcode_get (ALT_GPIO_PORT_t gpio_pid) |
| uint32_t | alt_gpio_port_ver_get (ALT_GPIO_PORT_t gpio_pid) |
| ALT_GPIO_PORT_t | alt_gpio_bit_to_pid (ALT_GPIO_1BIT_t pin_num) |
| ALT_GPIO_PORTBIT_t | alt_gpio_bit_to_port_pin (ALT_GPIO_1BIT_t pin_num) |
| ALT_GPIO_1BIT_t | alt_gpio_port_pin_to_bit (ALT_GPIO_PORT_t pid, uint32_t bitmask) |
These are useful utility functions for the general-purpose input & output module.
| ALT_GPIO_PORT_t alt_gpio_bit_to_pid | ( | ALT_GPIO_1BIT_t | pin_num | ) |
Extracts the GPIO port ID from the supplied GPIO Signal Index Number.
| ALT_GPIO_PORTBIT_t alt_gpio_bit_to_port_pin | ( | ALT_GPIO_1BIT_t | pin_num | ) |
Extracts the GPIO signal (pin) offset from the supplied GPIO Signal Index Number.
| uint32_t alt_gpio_port_idcode_get | ( | ALT_GPIO_PORT_t | gpio_pid | ) |
Returns the ID code of the specified GPIO module.
| gpio_pid | The GPIO port identifier. |
| uint32_t | The component code of the module, GPIO_MODULE_IDCODE. |
| ALT_GPIO_1BIT_t alt_gpio_port_pin_to_bit | ( | ALT_GPIO_PORT_t | pid, |
| uint32_t | bitmask ) |
Extracts the GPIO Signal Index Number from the supplied GPIO port ID and signal mask. If passed a bitmask composed of more than one signal, the signal number of the lowest bit in the bitmask presented is returned.
| uint32_t alt_gpio_port_ver_get | ( | ALT_GPIO_PORT_t | gpio_pid | ) |
Returns the version code of the specified GPIO module.
| gpio_pid | The GPIO port identifier. |
| uint32_t | The encoded revision number of the module. |