SWI Interface#

The SWI Interface module provides interfaces for implementing software interrupts (SWI) within the Sidewalk SDK. These interfaces enable developers to handle asynchronous events and improve the responsiveness of their applications by leveraging platform-specific SWI mechanisms.

⚠ WARNING ⚠: SWI thread priority in RTOS must stay high enough if you don't want to miss radio event

Typedefs#

typedef void(*

SWI callback.

Functions#

sid_error_t

Init the SWI handler for protocol processing.

sid_error_t

Trigger the SWI to run.

sid_error_t
sid_pal_swi_start(sid_pal_swi_cb_t event_callback)

Start the SWI.

sid_error_t

Stop the SWI.

sid_error_t

Init the SWI handler for protocol processing.

Typedef Documentation#

sid_pal_swi_cb_t#

typedef void(* sid_pal_swi_cb_t) (void) )(void)

SWI callback.

Note

  • The callback which will be executed in SWI context


Function Documentation#

sid_pal_swi_init#

sid_error_t sid_pal_swi_init (void )

Init the SWI handler for protocol processing.

Parameters
TypeDirectionArgument NameDescription
voidN/A

Function initializes SWI for triggering events.


sid_pal_swi_trigger#

sid_error_t sid_pal_swi_trigger (void )

Trigger the SWI to run.

Parameters
TypeDirectionArgument NameDescription
voidN/A

Function triggers SWI to run.


sid_pal_swi_start#

sid_error_t sid_pal_swi_start (sid_pal_swi_cb_t event_callback)

Start the SWI.

Parameters
TypeDirectionArgument NameDescription
sid_pal_swi_cb_t[in]event_callback

Pointer to the callback function the SWI will trigger

Function triggers SWI to run.


sid_pal_swi_stop#

sid_error_t sid_pal_swi_stop (void )

Stop the SWI.

Parameters
TypeDirectionArgument NameDescription
voidN/A

Function triggers SWI to run.


sid_pal_swi_deinit#

sid_error_t sid_pal_swi_deinit (void )

Init the SWI handler for protocol processing.

Parameters
TypeDirectionArgument NameDescription
voidN/A

Function initializes SWI for triggering events.