General-Purpose Input-Output#

Modules#

sl_gpio_t

Typedefs#

typedef void(*
sl_gpio_irq_callback_t)(uint32_t flag)

GPIO interrupt callback function pointer.

Functions#

STATIC __INLINE sl_status_t
sl_status_t
sl_gpio_driver_configure_interrupt(sl_gpio_t *gpio, uint32_t int_no, sl_gpio_interrupt_flag_t flags, sl_gpio_irq_callback_t gpio_callback, uint32_t *avl_intr_no)

Configure the GPIO pin interrupt.

sl_status_t
sl_gpio_driver_set_pin_mode(sl_gpio_t *gpio, sl_gpio_mode_t mode, uint32_t output_value)

Set the pin mode for a GPIO pin.

sl_status_t
sl_gpio_driver_get_pin_mode(sl_gpio_t *gpio, sl_gpio_mode_t *mode)

Get the GPIO pin status.

sl_status_t
sl_status_t
STATIC __INLINE sl_status_t
sl_gpio_driver_set_pin(sl_gpio_t *gpio)

Set a single pin in GPIO configuration register to 1.

STATIC __INLINE sl_status_t
sl_gpio_driver_clear_pin(sl_gpio_t *gpio)

Set a single pin in GPIO configuration register to 0.

STATIC __INLINE sl_status_t
sl_gpio_driver_toggle_pin(sl_gpio_t *gpio)

Toggle a single pin in GPIO port register.

STATIC __INLINE sl_status_t
sl_gpio_driver_get_pin(sl_gpio_t *gpio, uint8_t *pin_value)

Read the pad value for a single pin in a GPIO port.

STATIC __INLINE sl_status_t
sl_gpio_driver_set_port(sl_gpio_port_t port, uint32_t pins)

Set bits GPIO data out register to 1.

STATIC __INLINE sl_status_t
sl_gpio_driver_clear_port(sl_gpio_port_t port, uint32_t pins)

Set bits in configuration register for a port to 0.

STATIC __INLINE sl_status_t
sl_gpio_driver_get_port_output(sl_gpio_port_t port, uint32_t *port_value)

Get the current setting for a GPIO configuration register.

STATIC __INLINE uint8_t

Get the current setting for a pin in a GPIO configuration register.

STATIC __INLINE sl_status_t
sl_gpio_driver_set_port_output_value(sl_gpio_port_t port, uint32_t val, uint32_t mask)
STATIC __INLINE sl_status_t
sl_gpio_driver_set_slew_rate(sl_gpio_port_t port, uint32_t slewrate, uint32_t slewrate_alt)
STATIC __INLINE uint32_t
sl_gpio_driver_get_port_input(sl_gpio_port_t port)
STATIC __INLINE sl_status_t
sl_gpio_driver_toggle_port_output(sl_gpio_port_t port, uint32_t pins)
STATIC __INLINE sl_status_t
STATIC __INLINE sl_status_t
STATIC __INLINE sl_status_t
STATIC __INLINE uint32_t
STATIC __INLINE uint32_t
STATIC __INLINE uint32_t
sl_status_t
sl_si91x_gpio_driver_set_pin_direction(uint8_t port, uint8_t pin, sl_si91x_gpio_direction_t direction)

Set the direction for a GPIO pin.

uint8_t
sl_si91x_gpio_driver_get_pin_direction(uint8_t port, uint8_t pin)

Get the direction GPIO.

sl_status_t

Enable the receiver bit in the PAD configuration register.

sl_status_t

Disable the receiver bit in the PAD configuration register.

sl_status_t

Select the pad(0 to 21).

sl_status_t
sl_si91x_gpio_driver_select_pad_driver_strength(uint8_t gpio_num, sl_si91x_gpio_driver_strength_select_t strength)

Select drive strength of a GPIO pin.

sl_status_t
sl_si91x_gpio_driver_select_pad_driver_disable_state(uint8_t gpio_num, sl_si91x_gpio_driver_disable_state_t disable_state)

Select the Driver disabled state control.

sl_status_t
sl_si91x_gpio_driver_select_group_interrupt_and_or(uint8_t port, sl_si91x_group_interrupt_t group_interrupt, sl_si91x_gpio_and_or_t and_or)

Select AND/OR of the group interrupt.

sl_status_t
sl_si91x_gpio_driver_clear_group_interrupt(sl_si91x_group_interrupt_t group_interrupt)

Clear the group interrupt status.

uint32_t
sl_si91x_gpio_driver_get_group_interrupt_status(uint8_t port, sl_si91x_group_interrupt_t group_interrupt)

Get the group interrupt status.

sl_status_t
sl_si91x_gpio_driver_select_group_interrupt_wakeup(uint8_t port, sl_si91x_group_interrupt_t group_interrupt, sl_si91x_gpio_wakeup_t flags)

Configure the group interrupt wake up the interrupt.

sl_status_t
sl_si91x_gpio_driver_configure_group_interrupt(sl_si91x_gpio_group_interrupt_config_t *configuration, sl_gpio_irq_callback_t gpio_callback)

Configure the MCU HP group interrupts.

uint8_t
sl_si91x_gpio_driver_get_group_interrupt_polarity(sl_si91x_group_interrupt_t group_interrupt, uint8_t port, uint8_t pin)

Get the polarity of group interrupt.

sl_status_t
sl_si91x_gpio_driver_set_group_interrupt_polarity(sl_si91x_group_interrupt_t group_interrupt, uint8_t port, uint8_t pin, sl_si91x_gpio_polarity_t polarity)

Configure the polarity of group interrupt.

uint8_t
sl_si91x_gpio_driver_get_group_interrupt_level_edge(uint8_t port, sl_si91x_group_interrupt_t group_interrupt)

Get the level/edge event of group interrupt.

sl_status_t
sl_si91x_gpio_driver_set_group_interrupt_level_edge(uint8_t port, sl_si91x_group_interrupt_t group_interrupt, sl_si91x_gpio_level_edge_t level_edge)

Set the level/edge event of group interrupt.

sl_status_t
sl_si91x_gpio_driver_unmask_group_interrupt(uint8_t port, sl_si91x_group_interrupt_t group_interrupt)

Unmask the group interrupts.

sl_status_t
sl_si91x_gpio_driver_mask_group_interrupt(uint8_t port, sl_si91x_group_interrupt_t group_interrupt)

Mask the group interrupts.

sl_status_t
sl_si91x_gpio_driver_disable_clock(sl_si91x_gpio_select_clock_t clock)

Disable HP/ULP GPIO clock.

sl_status_t
sl_si91x_gpio_driver_enable_clock(sl_si91x_gpio_select_clock_t clock)

Enable HP/ULP GPIO clock.

sl_status_t
sl_si91x_gpio_driver_enable_group_interrupt(sl_si91x_group_interrupt_t group_interrupt, uint8_t port, uint8_t pin)

Enable the group interrupts.

sl_status_t
sl_si91x_gpio_driver_disable_group_interrupt(sl_si91x_group_interrupt_t group_interrupt, uint8_t port, uint8_t pin)

Disable the group interrupts.

sl_status_t
sl_si91x_gpio_driver_select_ulp_pad_slew_rate(uint8_t gpio_num, sl_si91x_gpio_slew_rate_t slew_rate)

Select the slew rate.

sl_status_t
sl_si91x_gpio_driver_select_ulp_pad_driver_strength(uint8_t gpio_num, sl_si91x_gpio_driver_strength_select_t strength)

Select the drive strength.

sl_status_t
sl_si91x_gpio_driver_select_ulp_pad_driver_disable_state(uint8_t gpio_num, sl_si91x_gpio_driver_disable_state_t disable_state)

Select the driver-disabled state control.

sl_status_t

Disable the receiver bit for ULP.

sl_status_t

Enable the receiver bit for ULP.

sl_status_t
sl_si91x_gpio_driver_configure_ulp_pin_interrupt(uint8_t int_no, sl_si91x_gpio_interrupt_config_flag_t flags, sl_si91x_gpio_pin_ulp_t pin, sl_gpio_irq_callback_t gpio_callback)

Configure the MCU ULP GPIO pin interrupt.

sl_status_t
sl_si91x_gpio_driver_set_uulp_npss_pin_mux(uint8_t pin, sl_si91x_uulp_npss_mode_t mode)

Set the NPSS GPIO pin MUX(mode).

sl_status_t
sl_si91x_gpio_driver_select_uulp_npss_receiver(uint8_t pin, sl_si91x_gpio_receiver_t receiver)

Enable/disable NPSS GPIO receiver.

sl_status_t
sl_si91x_gpio_driver_set_uulp_npss_direction(uint8_t pin, sl_si91x_gpio_direction_t direction)

Set the direction of the NPSS GPIO.

uint8_t

Get the direction of the NPSS GPIO.

sl_status_t
sl_si91x_gpio_driver_set_uulp_npss_pin_value(uint8_t pin, sl_si91x_gpio_pin_value_t pin_value)

Control the NPSS GPIO pin value.

uint8_t

Get the NPSS GPIO pin value.

sl_status_t
sl_si91x_gpio_driver_select_uulp_npss_polarity(uint8_t pin, sl_si91x_gpio_polarity_t polarity)

Select the NPSS GPIO polarity.

sl_status_t

Set the UULP NPSS GPIO to wake up interrupt.

sl_status_t

Clear the UULP NPSS GPIO to wake up interrupt.

sl_status_t

Mask the NPSS GPIO interrupt.

sl_status_t

Unmask the NPSS GPIO interrupt.

sl_status_t
sl_si91x_gpio_driver_clear_uulp_interrupt(uint8_t npssgpio_interrupt)

Clear the NPSS GPIO interrupt.

uint8_t

Get the NPSS GPIO interrupt status.

uint32_t

Get the ULP GPIO interrupt status.

sl_status_t

Clear one or more pending ULP GPIO interrupts.

sl_status_t
sl_si91x_gpio_driver_clear_ulp_group_interrupt(sl_si91x_group_interrupt_t group_interrupt)

Clear the ULP group interrupt.

sl_status_t
sl_si91x_gpio_driver_configure_uulp_interrupt(sl_si91x_gpio_interrupt_config_flag_t flags, uint8_t npssgpio_interrupt, sl_gpio_irq_callback_t gpio_callback)

Configure the UULP GPIO pin interrupt.

sl_status_t
sl_si91x_gpio_driver_configure_ulp_group_interrupt(sl_si91x_gpio_group_interrupt_config_t *configuration, sl_gpio_irq_callback_t gpio_callback)

Configure ULP GPIO group interrupts.

sl_status_t

Toggle the UULP pin.

sl_status_t

Indicate UULP GPIO PAD configuration.

sl_si91x_gpio_version_t

Get the release, SQA, and development version numbers of the GPIO peripheral.

Macros#

#define
#define
#define
#define
#define
#define
#define
#define
#define
#define

Typedef Documentation#

sl_gpio_irq_callback_t#

typedef void(* sl_gpio_irq_callback_t) (uint32_t flag) )(uint32_t flag)

GPIO interrupt callback function pointer.


Definition at line 83 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

Function Documentation#

sl_gpio_driver_clear_interrupts#

STATIC __INLINE sl_status_t sl_gpio_driver_clear_interrupts (uint32_t flags)
Parameters
N/Aflags

Definition at line 107 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_configure_interrupt#

sl_status_t sl_gpio_driver_configure_interrupt (sl_gpio_t * gpio, uint32_t int_no, sl_gpio_interrupt_flag_t flags, sl_gpio_irq_callback_t gpio_callback, uint32_t * avl_intr_no)

Configure the GPIO pin interrupt.

Parameters
[in]gpio

- Pointer to the structure of type sl_gpio_t

[in]int_no

- The interrupt number to trigger.

[in]flags

- Interrupt configuration flags

[in]gpio_callback

- IRQ function pointer

[out]avl_intr_no

- Pointer to the available interrupt number. SL_GPIO_INTERRUPT_UNAVAILABLE (0xFF) no available interrupt

Returns

  • The following values are returned:

    • SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

  • SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

  • SL_STATUS _OK (0X000) - Success


Definition at line 140 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_set_pin_mode#

sl_status_t sl_gpio_driver_set_pin_mode (sl_gpio_t * gpio, sl_gpio_mode_t mode, uint32_t output_value)

Set the pin mode for a GPIO pin.

Parameters
[in]gpio

- Pointer to the structure of type sl_gpio_t

[in]mode

- The desired pin mode.

[in]output_value

- A value to set for the pin in the GPIO register. The GPIO setting is important for some input mode configurations.

Returns

  • The following values are returned:

    • SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

  • SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

  • SL_STATUS _OK (0X000) - Success


Definition at line 170 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_get_pin_mode#

sl_status_t sl_gpio_driver_get_pin_mode (sl_gpio_t * gpio, sl_gpio_mode_t * mode)

Get the GPIO pin status.

Parameters
[in]gpio

- Pointer to the structure of type sl_gpio_t

[in]mode

- The desired pin mode.

Returns

  • The following values are returned:

    • SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

  • SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

  • SL_STATUS _OK (0X000) - Success


Definition at line 199 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_init#

sl_status_t sl_gpio_driver_init (void )
Parameters
N/A

Definition at line 208 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_deinit#

sl_status_t sl_gpio_driver_deinit (void )
Parameters
N/A

Definition at line 217 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_set_pin#

STATIC __INLINE sl_status_t sl_gpio_driver_set_pin (sl_gpio_t * gpio)

Set a single pin in GPIO configuration register to 1.

Parameters
[in]gpio

- Pointer to the structure of type sl_gpio_t

Returns

  • The following values are returned:

    • SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

  • SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

  • SL_STATUS _OK (0X000) - Success


Definition at line 249 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_clear_pin#

STATIC __INLINE sl_status_t sl_gpio_driver_clear_pin (sl_gpio_t * gpio)

Set a single pin in GPIO configuration register to 0.

Parameters
[in]gpio

- Pointer to the structure of type sl_gpio_t

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

    • SL_STATUS _OK (0X000) - Success


Definition at line 312 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_toggle_pin#

STATIC __INLINE sl_status_t sl_gpio_driver_toggle_pin (sl_gpio_t * gpio)

Toggle a single pin in GPIO port register.

Parameters
[in]gpio

- Pointer to the structure of type sl_gpio_t

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

    • SL_STATUS _OK (0X000) - Success


Definition at line 375 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_get_pin#

STATIC __INLINE sl_status_t sl_gpio_driver_get_pin (sl_gpio_t * gpio, uint8_t * pin_value)

Read the pad value for a single pin in a GPIO port.

Parameters
[in]gpio

- Pointer to the structure of type sl_gpio_t

N/Apin_value

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

    • SL_STATUS _OK (0X000) - Success


Definition at line 438 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_set_port#

STATIC __INLINE sl_status_t sl_gpio_driver_set_port (sl_gpio_port_t port, uint32_t pins)

Set bits GPIO data out register to 1.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]pins

- The GPIO pins in a port are set to 1's.

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 502 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_clear_port#

STATIC __INLINE sl_status_t sl_gpio_driver_clear_port (sl_gpio_port_t port, uint32_t pins)

Set bits in configuration register for a port to 0.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]pins

- The GPIO pins in a port to clear.

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 544 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_get_port_output#

STATIC __INLINE sl_status_t sl_gpio_driver_get_port_output (sl_gpio_port_t port, uint32_t * port_value)

Get the current setting for a GPIO configuration register.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

N/Aport_value

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 585 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_get_pin_output#

STATIC __INLINE uint8_t sl_gpio_driver_get_pin_output (sl_gpio_t * gpio)

Get the current setting for a pin in a GPIO configuration register.

Parameters
[in]gpio

- Pointer to the structure of type sl_gpio_t

Returns

  • The GPIO pin value '0' - Output

    • '1' - Input


Definition at line 623 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_set_port_output_value#

STATIC __INLINE sl_status_t sl_gpio_driver_set_port_output_value (sl_gpio_port_t port, uint32_t val, uint32_t mask)
Parameters
N/Aport
N/Aval
N/Amask

Definition at line 687 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_set_slew_rate#

STATIC __INLINE sl_status_t sl_gpio_driver_set_slew_rate (sl_gpio_port_t port, uint32_t slewrate, uint32_t slewrate_alt)
Parameters
N/Aport
N/Aslewrate
N/Aslewrate_alt

Definition at line 718 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_get_port_input#

STATIC __INLINE uint32_t sl_gpio_driver_get_port_input (sl_gpio_port_t port)
Parameters
N/Aport

Definition at line 752 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_toggle_port_output#

STATIC __INLINE sl_status_t sl_gpio_driver_toggle_port_output (sl_gpio_port_t port, uint32_t pins)
Parameters
N/Aport
N/Apins

Definition at line 793 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_enable_interrupts#

STATIC __INLINE sl_status_t sl_gpio_driver_enable_interrupts (uint32_t flags)
Parameters
N/Aflags

Definition at line 823 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_disable_interrupts#

STATIC __INLINE sl_status_t sl_gpio_driver_disable_interrupts (uint32_t flags)
Parameters
N/Aflags

Definition at line 848 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_set_interrupts#

STATIC __INLINE sl_status_t sl_gpio_driver_set_interrupts (uint32_t flags)
Parameters
N/Aflags

Definition at line 873 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_get_pending_interrupts#

STATIC __INLINE uint32_t sl_gpio_driver_get_pending_interrupts (void )
Parameters
N/A

Definition at line 895 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_get_enabled_interrupts#

STATIC __INLINE uint32_t sl_gpio_driver_get_enabled_interrupts (void )
Parameters
N/A

Definition at line 918 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_gpio_driver_get_enabled_pending_interrupts#

STATIC __INLINE uint32_t sl_gpio_driver_get_enabled_pending_interrupts (void )
Parameters
N/A

Definition at line 941 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

sl_si91x_gpio_driver_set_pin_direction#

sl_status_t sl_si91x_gpio_driver_set_pin_direction (uint8_t port, uint8_t pin, sl_si91x_gpio_direction_t direction)

Set the direction for a GPIO pin.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]pin

- The pin number on the port. HP instance has total 57 GPIO pins. Port 0, 1, 2 has 16 pins each. Port 3 has 9 pins. ULP instance has total 12 pins.

[in]direction

- pin direction of type sl_si91x_gpio_direction_t '0' - Output

  • '1' - Input

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 81 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_get_pin_direction#

uint8_t sl_si91x_gpio_driver_get_pin_direction (uint8_t port, uint8_t pin)

Get the direction GPIO.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]pin

- The pin number on the port. HP instance has total 57 GPIO pins. Port 0, 1, 2 has 16 pins each. Port 3 has 9 pins. ULP instance has total 12 pins.

Returns

  • Returns the direction of the pin. '0' - Output

    • '1' - Input


Definition at line 112 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_enable_pad_receiver#

sl_status_t sl_si91x_gpio_driver_enable_pad_receiver (uint8_t gpio_num)

Enable the receiver bit in the PAD configuration register.

Parameters
[in]gpio_num

- GPIO number to be use.

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 129 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_disable_pad_receiver#

sl_status_t sl_si91x_gpio_driver_disable_pad_receiver (uint8_t gpio_num)

Disable the receiver bit in the PAD configuration register.

Parameters
[in]gpio_num

- GPIO number to be use.

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 146 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_enable_pad_selection#

sl_status_t sl_si91x_gpio_driver_enable_pad_selection (uint8_t gpio_padnum)

Select the pad(0 to 21).

Parameters
[in]gpio_padnum

- PAD number to be use

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 161 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_select_pad_driver_strength#

sl_status_t sl_si91x_gpio_driver_select_pad_driver_strength (uint8_t gpio_num, sl_si91x_gpio_driver_strength_select_t strength)

Select drive strength of a GPIO pin.

Parameters
[in]gpio_num

- GPIO number to be use

[in]strength

- Drive strength selector(E1,E2) of type sl_si91x_gpio_driver_strength_select_t possible values are 0, for two_milli_amps (E1=0,E2=0)

  • 1, for four_milli_amps (E1=0,E2=1)

  • 2, for eight_milli_amps (E1=1,E2=0)

  • 3, for twelve_milli_amps(E1=1,E2=1)

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 190 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_select_pad_driver_disable_state#

sl_status_t sl_si91x_gpio_driver_select_pad_driver_disable_state (uint8_t gpio_num, sl_si91x_gpio_driver_disable_state_t disable_state)

Select the Driver disabled state control.

Parameters
[in]gpio_num

- GPIO number to be use

[in]disable_state

- driver disable state of type sl_si91x_gpio_driver_disable_state_t possible values are 0, for HiZ (P1=0,P2=0)

  • 1, for Pull-up (P1=0,P2=1)

  • 2, for Pull-down (P1=1,P2=0)

  • 3, for Repeater (P1=1,P2=1)

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 220 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_select_group_interrupt_and_or#

sl_status_t sl_si91x_gpio_driver_select_group_interrupt_and_or (uint8_t port, sl_si91x_group_interrupt_t group_interrupt, sl_si91x_gpio_and_or_t and_or)

Select AND/OR of the group interrupt.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]group_interrupt

- Group interrupt number of type sl_si91x_group_interrupt_t

[in]and_or

- AND/OR of GPIO group interrupts of type sl_si91x_gpio_and_or_t '0' - AND

  • '1' - OR

If multiple interrupts on same port (or) different are to be generated, then use this API. Example: Consider port 0: pin 2,3 and port 3: pin 1,2 for interrupt generation. Choose OR, any of the selected pin is fine for group interrupt generation Choose AND, all the selected pins are necessary for group interrupt generation

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 273 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_clear_group_interrupt#

sl_status_t sl_si91x_gpio_driver_clear_group_interrupt (sl_si91x_group_interrupt_t group_interrupt)

Clear the group interrupt status.

Parameters
[in]group_interrupt

- Group interrupt number of type sl_si91x_group_interrupt_t

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 300 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_get_group_interrupt_status#

uint32_t sl_si91x_gpio_driver_get_group_interrupt_status (uint8_t port, sl_si91x_group_interrupt_t group_interrupt)

Get the group interrupt status.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]group_interrupt

- Group interrupt number of type sl_si91x_group_interrupt_t

Returns

  • returns the group interrupt status register 1, when interrupt is enabled

    • 0, when interrupt is disabled


Definition at line 333 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_select_group_interrupt_wakeup#

sl_status_t sl_si91x_gpio_driver_select_group_interrupt_wakeup (uint8_t port, sl_si91x_group_interrupt_t group_interrupt, sl_si91x_gpio_wakeup_t flags)

Configure the group interrupt wake up the interrupt.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]group_interrupt

- Group interrupt number of type sl_si91x_group_interrupt_t

[in]flags

- GPIO group interrupt wake up flag of type sl_si91x_gpio_wakeup_t '1' - enable

  • '0' - disable

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 355 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_configure_group_interrupt#

sl_status_t sl_si91x_gpio_driver_configure_group_interrupt (sl_si91x_gpio_group_interrupt_config_t * configuration, sl_gpio_irq_callback_t gpio_callback, gpio_callback)

Configure the MCU HP group interrupts.

Parameters
[in]configuration

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]gpio_callback

- configuration pointer to sl_si91x_gpio_group_interrupt_config_t structure

[in]gpio_callback

- IRQ function pointer

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

    • SL_STATUS _OK (0X000) - Success


Definition at line 384 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_get_group_interrupt_polarity#

uint8_t sl_si91x_gpio_driver_get_group_interrupt_polarity (sl_si91x_group_interrupt_t group_interrupt, uint8_t port, uint8_t pin)

Get the polarity of group interrupt.

Parameters
[in]group_interrupt

- GPIO group interrupt number of type sl_si91x_group_interrupt_t

[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]pin

- The pin number on the port. HP instance has total 57 GPIO pins. Port 0, 1, 2 has 16 pins each. Port 3 has 9 pins. ULP instance has total 12 pins.

Returns

  • returns group interrupt polarity 1, when GPIO pin status is '1'

    • 0, when GPIO pin status is '0'


Definition at line 422 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_set_group_interrupt_polarity#

sl_status_t sl_si91x_gpio_driver_set_group_interrupt_polarity (sl_si91x_group_interrupt_t group_interrupt, uint8_t port, uint8_t pin, sl_si91x_gpio_polarity_t polarity)

Configure the polarity of group interrupt.

Parameters
[in]group_interrupt

- GPIO group interrupt number of type sl_si91x_group_interrupt_t

[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]pin

- The pin number on the port. HP instance has total 57 GPIO pins. Port 0, 1, 2 has 16 pins each. Port 3 has 9 pins. ULP instance has total 12 pins.

[in]polarity

- polarity of GPIO group interrupt of type sl_si91x_gpio_polarity_t 1, group interrupt gets generated when GPIO pin status is '1'

  • 0, group interrupt gets generated when GPIO pin status is '0'

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 468 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_get_group_interrupt_level_edge#

uint8_t sl_si91x_gpio_driver_get_group_interrupt_level_edge (uint8_t port, sl_si91x_group_interrupt_t group_interrupt)

Get the level/edge event of group interrupt.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]group_interrupt

- GPIO group interrupt number of type sl_si91x_group_interrupt_t

Returns

  • returns group interrupt level_edge 1, for Edge

    • 0, for Level


Definition at line 504 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_set_group_interrupt_level_edge#

sl_status_t sl_si91x_gpio_driver_set_group_interrupt_level_edge (uint8_t port, sl_si91x_group_interrupt_t group_interrupt, sl_si91x_gpio_level_edge_t level_edge)

Set the level/edge event of group interrupt.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]group_interrupt

- GPIO group interrupt number of type sl_si91x_group_interrupt_t

[in]level_edge

- GPIO level edge group interrupt of type sl_si91x_gpio_level_edge_t 1, for Edge

  • 0, for Level

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 544 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_unmask_group_interrupt#

sl_status_t sl_si91x_gpio_driver_unmask_group_interrupt (uint8_t port, sl_si91x_group_interrupt_t group_interrupt)

Unmask the group interrupts.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]group_interrupt

- GPIO group interrupt number of type sl_si91x_group_interrupt_t

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 580 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_mask_group_interrupt#

sl_status_t sl_si91x_gpio_driver_mask_group_interrupt (uint8_t port, sl_si91x_group_interrupt_t group_interrupt)

Mask the group interrupts.

Parameters
[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]group_interrupt

- GPIO group interrupt number of type sl_si91x_group_interrupt_t

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 609 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_disable_clock#

sl_status_t sl_si91x_gpio_driver_disable_clock (sl_si91x_gpio_select_clock_t clock)

Disable HP/ULP GPIO clock.

Parameters
[in]clock

- Selects M4 clock or ULP clock of type sl_si91x_gpio_select_clock_t 0, for M4 GPIO CLK

  • 1, for ULP GPIO CLK

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 626 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_enable_clock#

sl_status_t sl_si91x_gpio_driver_enable_clock (sl_si91x_gpio_select_clock_t clock)

Enable HP/ULP GPIO clock.

Parameters
[in]clock

- Selects M4 clock or ULP clock of type sl_si91x_gpio_select_clock_t 0, for M4 GPIO CLK

  • 1, for ULP GPIO CLK

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 643 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_enable_group_interrupt#

sl_status_t sl_si91x_gpio_driver_enable_group_interrupt (sl_si91x_group_interrupt_t group_interrupt, uint8_t port, uint8_t pin)

Enable the group interrupts.

Parameters
[in]group_interrupt

- GPIO group interrupt number of type sl_si91x_group_interrupt_t

[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]pin

- The pin number on the port. HP instance has total 57 GPIO pins. Port 0, 1, 2 has 16 pins each. Port 3 has 9 pins. ULP instance has total 12 pins.

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 681 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_disable_group_interrupt#

sl_status_t sl_si91x_gpio_driver_disable_group_interrupt (sl_si91x_group_interrupt_t group_interrupt, uint8_t port, uint8_t pin)

Disable the group interrupts.

Parameters
[in]group_interrupt

- GPIO group interrupt number of type sl_si91x_group_interrupt_t

[in]port

- The port to associate with the pin. HP instance - PORT 0,1,2,3 ULP instance - PORT 4

[in]pin

- The pin number on the port. HP instance has total 57 GPIO pins. Port 0, 1, 2 has 16 pins each. Port 3 has 9 pins. ULP instance has total 12 pins.

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 733 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_select_ulp_pad_slew_rate#

sl_status_t sl_si91x_gpio_driver_select_ulp_pad_slew_rate (uint8_t gpio_num, sl_si91x_gpio_slew_rate_t slew_rate)

Select the slew rate.

Parameters
[in]gpio_num

- GPIO number to be use

[in]slew_rate

- slew rate of type sl_si91x_gpio_slew_rate_t '0' - Slow

  • '1' - Fast

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 757 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_select_ulp_pad_driver_strength#

sl_status_t sl_si91x_gpio_driver_select_ulp_pad_driver_strength (uint8_t gpio_num, sl_si91x_gpio_driver_strength_select_t strength)

Select the drive strength.

Parameters
[in]gpio_num

- GPIO number to be use

[in]strength

- Drive strength selector(E1,E2) of type sl_si91x_gpio_driver_strength_select_t 0, for two_milli_amps (E1=0,E2=0)

  • 1, for four_milli_amps (E1=0,E2=1)

  • 2, for eight_milli_amps (E1=1,E2=0)

  • 3, for twelve_milli_amps(E1=1,E2=1)

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 784 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_select_ulp_pad_driver_disable_state#

sl_status_t sl_si91x_gpio_driver_select_ulp_pad_driver_disable_state (uint8_t gpio_num, sl_si91x_gpio_driver_disable_state_t disable_state)

Select the driver-disabled state control.

Parameters
[in]gpio_num

- GPIO number to be use

[in]disable_state

- driver disable state of type sl_si91x_gpio_driver_disable_state_t 0, for HiZ (P1=0,P2=0)

  • 1, for Pull up (P1=0,P2=1)

  • 2, for Pull down (P1=1,P2=0)

  • 3, for Repeater (P1=1,P2=1)

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 812 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_disable_ulp_pad_receiver#

sl_status_t sl_si91x_gpio_driver_disable_ulp_pad_receiver (uint8_t gpio_num)

Disable the receiver bit for ULP.

Parameters
[in]gpio_num

- GPIO number to be used

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 829 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_enable_ulp_pad_receiver#

sl_status_t sl_si91x_gpio_driver_enable_ulp_pad_receiver (uint8_t gpio_num)

Enable the receiver bit for ULP.

Parameters
[in]gpio_num

- GPIO number to be used

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 844 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_configure_ulp_pin_interrupt#

sl_status_t sl_si91x_gpio_driver_configure_ulp_pin_interrupt (uint8_t int_no, sl_si91x_gpio_interrupt_config_flag_t flags, sl_si91x_gpio_pin_ulp_t pin, sl_gpio_irq_callback_t gpio_callback)

Configure the MCU ULP GPIO pin interrupt.

Parameters
[in]int_no

- The interrupt number to trigger.

[in]flags

- Interrupt configuration flags of type sl_si91x_gpio_interrupt_config_flag_t

[in]pin

- GPIO pin number

[in]gpio_callback

- IRQ function pointer

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

    • SL_STATUS _OK (0X000) - Success


Definition at line 874 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_set_uulp_npss_pin_mux#

sl_status_t sl_si91x_gpio_driver_set_uulp_npss_pin_mux (uint8_t pin, sl_si91x_uulp_npss_mode_t mode)

Set the NPSS GPIO pin MUX(mode).

Parameters
[in]pin

- NPSS GPIO pin number(0...4) of type sl_si91x_uulp_npss_mode_t

[in]mode

- NPSS GPIO MUX value

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 896 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_select_uulp_npss_receiver#

sl_status_t sl_si91x_gpio_driver_select_uulp_npss_receiver (uint8_t pin, sl_si91x_gpio_receiver_t receiver)

Enable/disable NPSS GPIO receiver.

Parameters
[in]pin

- is NPSS GPIO pin number (0...4)

[in]receiver

- is enable/disable NPSS GPIO receiver of type sl_si91x_gpio_receiver_t '1' - Enable

  • '0' - Disable

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 917 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_set_uulp_npss_direction#

sl_status_t sl_si91x_gpio_driver_set_uulp_npss_direction (uint8_t pin, sl_si91x_gpio_direction_t direction)

Set the direction of the NPSS GPIO.

Parameters
[in]pin

- is NPSS GPIO pin number (0...4)

[in]direction

- is direction value (Input / Output) of type sl_si91x_gpio_direction_t '1' - Input Direction

  • '0' - Output Direction

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 944 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_get_uulp_npss_direction#

uint8_t sl_si91x_gpio_driver_get_uulp_npss_direction (uint8_t pin)

Get the direction of the NPSS GPIO.

Parameters
[in]pin

- is NPSS GPIO pin number(0...4)

Returns

  • returns the GPIO pin direction

    • 1, Input Direction

    • 0, Output Direction


Definition at line 965 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_set_uulp_npss_pin_value#

sl_status_t sl_si91x_gpio_driver_set_uulp_npss_pin_value (uint8_t pin, sl_si91x_gpio_pin_value_t pin_value)

Control the NPSS GPIO pin value.

Parameters
[in]pin

- is NPSS GPIO pin number (0...4) of type sl_si91x_gpio_pin_value_t

[in]pin_value

- is NPSS GPIO pin value '0' - Output

  • '1' - Input

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 995 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_get_uulp_npss_pin#

uint8_t sl_si91x_gpio_driver_get_uulp_npss_pin (uint8_t pin)

Get the NPSS GPIO pin value.

Parameters
[in]pin

- is NPSS GPIO pin number (0...4)

Returns

  • returns the pin logical state of pin '0' - Output

    • '1' - Input


Definition at line 1021 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_select_uulp_npss_polarity#

sl_status_t sl_si91x_gpio_driver_select_uulp_npss_polarity (uint8_t pin, sl_si91x_gpio_polarity_t polarity)

Select the NPSS GPIO polarity.

Parameters
[in]pin

- is NPSS GPIO pin number (0...4)

[in]polarity

- GPIO polarity sl_si91x_gpio_polarity_t '1' - High

  • '0' - Low

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 1042 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_set_uulp_npss_wakeup_interrupt#

sl_status_t sl_si91x_gpio_driver_set_uulp_npss_wakeup_interrupt (uint8_t npssgpio_interrupt)

Set the UULP NPSS GPIO to wake up interrupt.

Parameters
[in]npssgpio_interrupt

- OR'ed values of the NPSS GPIO interrupts

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 1057 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_clear_uulp_npss_wakeup_interrupt#

sl_status_t sl_si91x_gpio_driver_clear_uulp_npss_wakeup_interrupt (uint8_t npssgpio_interrupt)

Clear the UULP NPSS GPIO to wake up interrupt.

Parameters
[in]npssgpio_interrupt

- OR'ed values of the NPSS GPIO interrupts

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 1072 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_mask_uulp_npss_interrupt#

sl_status_t sl_si91x_gpio_driver_mask_uulp_npss_interrupt (uint8_t npssgpio_interrupt)

Mask the NPSS GPIO interrupt.

Parameters
[in]npssgpio_interrupt

- OR'ed values of the NPSS GPIO interrupts

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 1099 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_unmask_uulp_npss_interrupt#

sl_status_t sl_si91x_gpio_driver_unmask_uulp_npss_interrupt (uint8_t npssgpio_interrupt)

Unmask the NPSS GPIO interrupt.

Parameters
[in]npssgpio_interrupt

- OR'ed values of the NPSS GPIO interrupts

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 1126 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_clear_uulp_interrupt#

sl_status_t sl_si91x_gpio_driver_clear_uulp_interrupt (uint8_t npssgpio_interrupt)

Clear the NPSS GPIO interrupt.

Parameters
[in]npssgpio_interrupt

- OR'ed values of the NPSS GPIO interrupts

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 1156 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_get_uulp_interrupt_status#

uint8_t sl_si91x_gpio_driver_get_uulp_interrupt_status (void )

Get the NPSS GPIO interrupt status.

Parameters
[in]

Returns

  • returns the UULP INTR status. 1, interrupt has been raised

    • 0, interrupt is masked or not raised


Definition at line 1185 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_get_ulp_interrupt_status#

uint32_t sl_si91x_gpio_driver_get_ulp_interrupt_status (uint32_t flags)

Get the ULP GPIO interrupt status.

Parameters
[in]flags

: ULP GPIO interrupt sources status.

Returns

  • returns the ULP INTR status. 1, interrupt has been raised

    • 0, interrupt is masked or not raised


Definition at line 1211 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_clear_ulp_interrupt#

sl_status_t sl_si91x_gpio_driver_clear_ulp_interrupt (uint32_t flags)

Clear one or more pending ULP GPIO interrupts.

Parameters
[in]flags

: ULP GPIO interrupt sources to clear.

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 1238 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_clear_ulp_group_interrupt#

sl_status_t sl_si91x_gpio_driver_clear_ulp_group_interrupt (sl_si91x_group_interrupt_t group_interrupt)

Clear the ULP group interrupt.

Parameters
[in]group_interrupt

- Group interrupt number of type sl_si91x_group_interrupt_t

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 1266 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_configure_uulp_interrupt#

sl_status_t sl_si91x_gpio_driver_configure_uulp_interrupt (sl_si91x_gpio_interrupt_config_flag_t flags, uint8_t npssgpio_interrupt, sl_gpio_irq_callback_t gpio_callback)

Configure the UULP GPIO pin interrupt.

Parameters
[in]flags

- Interrupt configuration flags of type sl_si91x_gpio_interrupt_config_flag_t

[in]npssgpio_interrupt

- NPSS GPIO input number (0 to 4)

[in]gpio_callback

- IRQ function pointer

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

    • SL_STATUS _OK (0X000) - Success


Definition at line 1298 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_configure_ulp_group_interrupt#

sl_status_t sl_si91x_gpio_driver_configure_ulp_group_interrupt (sl_si91x_gpio_group_interrupt_config_t * configuration, sl_gpio_irq_callback_t gpio_callback)

Configure ULP GPIO group interrupts.

Parameters
[in]configuration

- configuration pointer to sl_si91x_gpio_group_interrupt_config_t structure

[in]gpio_callback

- IRQ function pointer

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

    • SL_STATUS _OK (0X000) - Success


Definition at line 1326 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_toggle_uulp_npss_pin#

sl_status_t sl_si91x_gpio_driver_toggle_uulp_npss_pin (uint8_t pin)

Toggle the UULP pin.

Parameters
[in]pin

- UULP pin number to toggle

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument

    • SL_STATUS _OK (0X000) - Success


Definition at line 1351 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_set_uulp_pad_configuration#

sl_status_t sl_si91x_gpio_driver_set_uulp_pad_configuration (uulp_pad_config_t * pad_config)

Indicate UULP GPIO PAD configuration.

Parameters
[in]pad_config

: PAD configuration pointer to uulp_pad_config_t structure

Returns

  • returns status 0 if successful, else error code as follow. SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer

    • SL_STATUS _OK (0X000) - Success


Definition at line 1366 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

sl_si91x_gpio_driver_get_version#

sl_si91x_gpio_version_t sl_si91x_gpio_driver_get_version (void )

Get the release, SQA, and development version numbers of the GPIO peripheral.

Parameters
[in]

Returns

  • returns structure of type sl_si91x_gpio_version_t


Definition at line 1373 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_driver_gpio.h

Macro Definition Documentation#

GPIO_MAX_OUTPUT_VALUE#

#define GPIO_MAX_OUTPUT_VALUE
Value:
1

Definition at line 50 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

MAX_GROUP_INT#

#define MAX_GROUP_INT
Value:
2

Definition at line 51 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

GPIO_PORT_MAX_VALUE#

#define GPIO_PORT_MAX_VALUE
Value:
4

Definition at line 52 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

MAX_UULP_INT#

#define MAX_UULP_INT
Value:
5

Definition at line 53 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

ULP_MAX_MODE#

#define ULP_MAX_MODE
Value:
10

Definition at line 54 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

GPIO_MAX_INTR_VALUE#

#define GPIO_MAX_INTR_VALUE
Value:
8

Definition at line 56 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

PORTD_PIN_MAX_VALUE#

#define PORTD_PIN_MAX_VALUE
Value:
8

Definition at line 57 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

PORTE_PIN_MAX_VALUE#

#define PORTE_PIN_MAX_VALUE
Value:
11

Definition at line 58 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

MAX_ULP_INTR#

#define MAX_ULP_INTR
Value:
8

Definition at line 59 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

MAX_MODE#

#define MAX_MODE
Value:
15

Definition at line 60 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

PORT_PIN_MAX_VALUE#

#define PORT_PIN_MAX_VALUE
Value:
15

Definition at line 61 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

GPIO_FLAGS_MAX_VALUE#

#define GPIO_FLAGS_MAX_VALUE
Value:
0x0F

Definition at line 62 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

PORTA#

#define PORTA
Value:
0

Definition at line 64 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

PORTB#

#define PORTB
Value:
1

Definition at line 65 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

PORTC#

#define PORTC
Value:
2

Definition at line 66 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

PORTD#

#define PORTD
Value:
3

Definition at line 67 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h

PORTE#

#define PORTE
Value:
4

Definition at line 68 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_driver_gpio.h