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
TypeDirectionArgument NameDescription
sl_si91x_socket_config_t[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


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
TypeDirectionArgument NameDescription
uint32_t[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.


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
TypeDirectionArgument NameDescription
uint32_t[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.