Solaris Software
Loading...
Searching...
No Matches
SPP_HALGpio_t Struct Reference

GPIO struct that contains all the pointers to the GPIO functions. More...

#include <hal.h>

Data Fields

SPP_RetVal_t(*) gpioConfigInterrupt (spp_uint32_t pin, spp_uint32_t intrType, spp_uint32_t pull)
 Configure a GPIO pin as an interrupt input.
SPP_RetVal_t(*) gpioRegisterIsr (spp_uint32_t pin, void *p_isrCtx)
 Register an ISR handler for a GPIO pin.
spp_uint16_t(*) gpioRead (spp_uint32_t pin)
 Reads the logic level of a GPIO pin.
SPP_RetVal_t(*) gpioWrite (spp_uint32_t pin, spp_uint8_t level)
 Configures a GPIO as output and sets its logic level.

Detailed Description

GPIO struct that contains all the pointers to the GPIO functions.

Definition at line 128 of file hal.h.

Field Documentation

◆ gpioConfigInterrupt

SPP_RetVal_t(*) SPP_HALGpio_t::gpioConfigInterrupt(spp_uint32_t pin, spp_uint32_t intrType, spp_uint32_t pull)

Configure a GPIO pin as an interrupt input.

Parameters
[in]pinGPIO pin number.
[in]intrTypePlatform-specific interrupt trigger type.
[in]pullPull resistor: 0 = none, 1 = pull-up, 2 = pull-down.
Returns
K_SPP_OK on success.

Definition at line 139 of file hal.h.

Referenced by SPP_HAL_GPIO_configInterrupt().

◆ gpioRegisterIsr

SPP_RetVal_t(*) SPP_HALGpio_t::gpioRegisterIsr(spp_uint32_t pin, void *p_isrCtx)

Register an ISR handler for a GPIO pin.

Parameters
[in]pinGPIO pin number.
[in]p_isrCtxPointer to SPP_GpioIsrCtx_t for this pin.
Returns
K_SPP_OK on success.

Definition at line 149 of file hal.h.

Referenced by SPP_HAL_GPIO_registerIsr().

◆ gpioRead

spp_uint16_t(*) SPP_HALGpio_t::gpioRead(spp_uint32_t pin)

Reads the logic level of a GPIO pin.

Parameters
pinGPIO pin number.
Returns
Current logic level (0 or 1).

Definition at line 156 of file hal.h.

Referenced by SPP_HAL_GPIO_read().

◆ gpioWrite

SPP_RetVal_t(*) SPP_HALGpio_t::gpioWrite(spp_uint32_t pin, spp_uint8_t level)

Configures a GPIO as output and sets its logic level.

Parameters
pinGPIO pin number.
levelLogic level to set.
Returns
K_SPP_OK on success, error code otherwise.

Definition at line 164 of file hal.h.

Referenced by SPP_HAL_GPIO_write().


The documentation for this struct was generated from the following file:
  • solaris-v2/spp/hal/hal.h