![]() |
Dataflow Runtime API
3.0.3.0
|
Functions | |
| void | GPIO_InitDigitalIn (const GpioModuleAddress moduleAddress, const GpioPinMask pinMask, const GpioInterruptMode interruptMode) |
| Initializes the GPIO pin according to the specified parameters. More... | |
| void | GPIO_InitDigitalOut (const GpioModuleAddress moduleAddress, const GpioPinMask pinMask, const bool initialValue) |
| Initializes the GPIO pin according to the specified parameters. More... | |
| void | GPIO_Write (const GpioModuleAddress moduleAddress, const GpioPinMask pinMask, const bool value) |
| Set the given GPIO pin according to the specified parameters. More... | |
| bool | GPIO_Read (const GpioModuleAddress moduleAddress, const GpioPinMask pinMask) |
| Read the given GPIO pin status. More... | |
| enum GpioInterruptMode |
| enum GpioModuleAddress |
General-purpose I/Os (GPIO) peripheral module.
The general-purpose interface combines four general-purpose input/output (GPIO) modules. Each GPIO module provides 32 dedicated general-purpose pins with input and output capabilities; thus, the generalpurpose interface supports up to 128 (4 × 32) pins. Enumeration of the available GPIO modules
| Enumerator | |
|---|---|
| GpioModuleAddress_Gpio0 | |
| GpioModuleAddress_Gpio1 | |
| GpioModuleAddress_Gpio2 | |
| GpioModuleAddress_Gpio3 | |
| enum GpioPinMask |
Enumeration of the allowed GPIO pin masks.
| void GPIO_InitDigitalIn | ( | const GpioModuleAddress | moduleAddress, |
| const GpioPinMask | pinMask, | ||
| const GpioInterruptMode | interruptMode | ||
| ) |
Initializes the GPIO pin according to the specified parameters.
| moduleAddress | base address of the GPIO module |
| pinMask | pin number (0 to 31) |
| interruptMode | selects the interrupt mode (disabled, rising edge, falling edge, both edges) |
| void GPIO_InitDigitalOut | ( | const GpioModuleAddress | moduleAddress, |
| const GpioPinMask | pinMask, | ||
| const bool | initialValue | ||
| ) |
Initializes the GPIO pin according to the specified parameters.
| moduleAddress | base address of the GPIO module |
| pinMask | pin number (0 to 31) |
| initialValue | true for logic high, false for logic low |
| bool GPIO_Read | ( | const GpioModuleAddress | moduleAddress, |
| const GpioPinMask | pinMask | ||
| ) |
Read the given GPIO pin status.
| moduleAddress | - base address of the GPIO module |
| pinMask | - pin number (0 to 31) |
| void GPIO_Write | ( | const GpioModuleAddress | moduleAddress, |
| const GpioPinMask | pinMask, | ||
| const bool | value | ||
| ) |
Set the given GPIO pin according to the specified parameters.
| moduleAddress | base address of the GPIO module |
| pinMask | pin number (0 to 31) |
| value | true for logic high, false for logic low |