write
- |
-cntlr: structure pointer to the GPIO controller at the core layer.
-local: GPIO port number, which is of the uint16_t type.
-val: input level value, which is of the uint16_t type.
- |
-–
- |
-HDF_STATUS
- |
-Writes the level of a GPIO pin.
- |
-
-read
- |
-cntlr: structure pointer to the GPIO controller at the core layer.
-local: GPIO port number, which is of the uint16_t type.
- |
-val: pointer to the output level value, which is of the uint16_t type.
- |
-HDF_STATUS
- |
-Reads the level of a GPIO pin.
- |
-
-setDir
- |
-cntlr: structure pointer to the GPIO controller at the core layer.
-local: GPIO port number, which is of the uint16_t type.
-dir: input pin direction, which is of the uint16_t type.
- |
-–
- |
-HDF_STATUS
- |
-Sets the input or output direction for a GPIO pin.
- |
-
-getDir
- |
-cntlr: structure pointer to the GPIO controller at the core layer.
-local: GPIO port number, which is of the uint16_t type.
- |
-dir: pointer to the output pin direction, which is of the uint16_t type.
- |
-HDF_STATUS
- |
-Obtains the input or output direction of a GPIO pin.
- |
-
-setIrq
- |
-cntlr: structure pointer to the GPIO controller at the core layer.
-local: GPIO port number, which is of the uint16_t type.
-mode: triggering mode, which can be edge or level. The value is of the uint16_t type.
-func: function pointer to the interrupt service handler.
-arg: void pointer to the input parameters of the interrupt service handler.
- |
-–
- |
-HDF_STATUS
- |
-Sets an interrupt request (IRQ) for a GPIO pin.
- |
-
-unsetIrq
- |
-cntlr: structure pointer to the GPIO controller at the core layer.
-local: GPIO port number, which is of the uint16_t type.
- |
-–
- |
-HDF_STATUS
- |
-Cancels the GPIO interrupt settings.
- |
-
-enableIrq
- |
-cntlr: structure pointer to the GPIO controller at the core layer.
-local: GPIO port number, which is of the uint16_t type.
- |
-–
- |
-HDF_STATUS
- |
-Enables an interrupt for a GPIO pin.
- |
-
-disableIrq
- |
-cntlr: structure pointer to the GPIO controller at the core layer.
-local: GPIO port number, which is of the uint16_t type.
- |
-–
- |
-HDF_STATUS
- |
-Disables an interrupt for a GPIO pin.
- |
-
-
-