Ucs_Return_t Ucs_Network_SetPacketFilterMode | ( | Ucs_Inst_t * | self, |
uint16_t | node_address, | ||
uint16_t | mode, | ||
Ucs_StdNodeResultCb_t | result_fptr | ||
) |
Sets the packet filter mode of an available node.
This function corresponds with the INIC function INIC.NetworkConfiguration. |
self | The instance | ||
node_address | The destination address of the node. Use the UCS_ADDR_LOCAL_NODE macro to target the local device. The following address ranges are supported:
| ||
mode | The new packet filter mode.
| ||
result_fptr | Result callback. |
Value | Description |
---|---|
UCS_RET_SUCCESS | No error |
UCS_RET_ERR_PARAM | The parameter self is NULL or result callback is not provided. |
UCS_RET_ERR_NOT_SUPPORTED | API is not supported in the current Network Supervisor Mode. |
UCS_RET_ERR_NOT_INITIALIZED | UNICENS is not initialized. |
UCS_RET_ERR_BUFFER_OVERFLOW | No message buffer available. |
UCS_RET_ERR_API_LOCKED | API is currently locked. |
UCS_RET_ERR_INVALID_SHADOW | Missing internal proxy for this node. |