Network Profiles#
Functions#
Store a network profile for a given interface.
Retrieve a stored network profile for a given interface.
Delete a stored network profile for a given interface.
Function Documentation#
sl_net_set_profile#
sl_status_t sl_net_set_profile (sl_net_interface_t interface, sl_net_profile_id_t id, const sl_net_profile_t * profile)
Store a network profile for a given interface.
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_net_interface_t | [in] | interface | Interface identified by sl_net_interface_t |
sl_net_profile_id_t | [in] | id | Profile storage index / identifier of type sl_net_profile_id_t |
const sl_net_profile_t * | [in] | profile | Pointer to profile data of type sl_net_profile_t |
Pre-conditions:
sl_net_init should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
sl_net_get_profile#
sl_status_t sl_net_get_profile (sl_net_interface_t interface, sl_net_profile_id_t id, sl_net_profile_t * profile)
Retrieve a stored network profile for a given interface.
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_net_interface_t | [in] | interface | Interface identified by sl_net_interface_t |
sl_net_profile_id_t | [in] | id | Profile storage index / identifier of type sl_net_profile_id_t |
sl_net_profile_t * | [out] | profile | Pointer to sl_net_profile_t object that stores data. |
Pre-conditions:
sl_net_init should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
sl_net_delete_profile#
sl_status_t sl_net_delete_profile (sl_net_interface_t interface, sl_net_profile_id_t id)
Delete a stored network profile for a given interface.
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_net_interface_t | [in] | interface | Interface identified by sl_net_interface_t |
sl_net_profile_id_t | [in] | id | Profile storage index / identifier of type sl_net_profile_id_t |
Pre-conditions:
sl_net_init should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.