SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
Managing the filters is performed by calling the regular sl_WlanSet and sl_WlanGet APIs. The available operations contain:
To manage several filters simultaneously, the SimpleLink Wi-Fi device receives a bit field of the filters that the operation should take on. This bit field contains up to 128 bits. The following macro can be used to set the correct bit for a filter ID:
SL_WLAN_SETBIT8 (BitField.FilterIdMask, FilterId);
For example, to set the operation on filter 1 and filter 35, the macro should be called twice:
SL_WLAN_SETBIT8 (FilterIdMask, 1);
SL_WLAN_SETBIT8 (FilterIdMask, 35);
If the filter is not defined or created, the SimpleLink Wi-Fi device ignores its bit on the bit field mask. Therefore, operations can be performed with a bit field of all 1s.
TI highly recommends updating the Rx filters while the sockets are closed.