Socket Configuration#

This section provides a reference for the socket configuration API functions.

These functions enable various socket-related configurations, including ciphers used for secure communication.

Modules#

sl_si91x_socket_config_t

sl_si91x_socket_type_length_value_t

SiWx91x Socket Ciphers

SiWx91x Socket Extended Ciphers

Functions#

sl_status_t
sl_si91x_config_socket(sl_si91x_socket_config_t socket_config)

Configures SiWx91x specific socket settings.

void
sl_si91x_set_socket_cipherlist(uint32_t cipher_list)

Sets the list of ciphers to be used when creating sockets.

void
sl_si91x_set_extended_socket_cipherlist(uint32_t extended_cipher_list)

Sets the list of extended ciphers to be used when creating sockets.

Function Documentation#

sl_si91x_config_socket#

sl_status_t sl_si91x_config_socket (sl_si91x_socket_config_t socket_config)

Configures SiWx91x specific socket settings.

Parameters
[in]socket_config

Socket configuration of type sl_si91x_socket_config_t.

This function sets up the socket configuration specific to the SiWx91x. It must be called before invoking sl_si91x_socket_async. The configuration includes setting parameters such as socket type, protocol, and other options specific to the SiWx91x series.

  • Pre-conditions:

    • Ensure that the necessary initialization for the SiWx91x module has been completed.

    • This API is called before calling sl_si91x_socket_async.

Returns


Definition at line 161 of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_utility.h

sl_si91x_set_socket_cipherlist#

void sl_si91x_set_socket_cipherlist (uint32_t cipher_list)

Sets the list of ciphers to be used when creating sockets.

Parameters
[in]cipher_list

A bitmap of the selected ciphers from SiWx91x Socket Ciphers.

This function allows you to specify the ciphers that should be used when creating sockets for secure communication.


Definition at line 271 of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_utility.h

sl_si91x_set_extended_socket_cipherlist#

void sl_si91x_set_extended_socket_cipherlist (uint32_t extended_cipher_list)

Sets the list of extended ciphers to be used when creating sockets.

Parameters
[in]extended_cipher_list

A bitmap of the selected extended ciphers from SiWx91x Socket Extended Ciphers.

This function allows you to specify the extended ciphers that should be used when creating sockets for secure communication.


Definition at line 280 of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_utility.h