WF_GetMultiCastFilter Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
WF_GetMultiCastFilter Function
C
void WF_GetMultiCastFilter(
    UINT8 multicastFilterId, 
    UINT8 multicastAddress[6]
);
Description

Gets the current state of the specified Multicast Filter. 

Normally would call SendGetParamMsg, but this GetParam returns all 6 address filters + 2 more bytes for a total of 48 bytes plus header. So, doing this msg manually to not require a large stack allocation to hold all the data. 

Exact format of returned message is:

[0] -- always mgmt response (2) 
[1] -- always WF_GET_PARAM_SUBTYPE (16) 
[2] -- result (1 if successful) 
[3] -- mac state (not used) 
[4] -- data length (length of response data starting at index 6) 
[5] -- not used 
[6-11] -- Compare Address 0 address 
[12] -- Compare Address 0 group 
[13] -- Compare Address 0 type 
[14-19] -- Compare Address 1 address 
[20] -- Compare Address 1 group 
[21] -- Compare Address 1 type 
[22-27] -- Compare Address 2 address 
[28] -- Compare Address 2 group 
[29] -- Compare Address 2 type 
[30-35] -- Compare Address 3 address 
[36] -- Compare Address 3 group 
[37] -- Compare Address 3 type 
[38-43] -- Compare Address 4 address 
[44] -- Compare Address 4 group 
[45] -- Compare Address 4 type 
[46-51] -- Compare Address 5 address 
[52] -- Compare Address 5 group 
[53] -- Compare Address 5 type 
Preconditions

MACInit must be called first.

Parameters
Parameters 
Description 
multicastFilterId 
WF_MULTICAST_FILTER_1 or WF_MULTICAST_FILTER_2 
multicastAddress 
6-byte address 
Returns

None.

Remarks

None.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.