NCP Event Filter Interface#
Component that provides the Bluetooth Network Co-Processor (NCP) Event Filter interface. This is a No-Code component if used together with NCP Interface component.
Modules#
Functions#
void
sl_ncp_evt_filter_handler(user_cmd_manage_event_filter_t *cmd)
bool
sl_ncp_evt_filter_is_filtered(uint32_t header)
Macros#
#define
SL_NCP_EVT_FILTER_ARRAY_LENGTH 8
#define
SL_NCP_EVT_FILTER_CMD_ADD_ID 0
#define
SL_NCP_EVT_FILTER_CMD_REMOVE_ID 1
#define
SL_NCP_EVT_FILTER_CMD_RESET_ID 2
#define
SL_NCP_EVT_FILTER_CMD_ADD_LEN 5
#define
SL_NCP_EVT_FILTER_CMD_REMOVE_LEN 5
#define
SL_NCP_EVT_FILTER_CMD_RESET_LEN 1
Typedef Documentation#
evt_filter_t#
typedef uint32_t evt_filter_t
Definition at line
43
of file common/ncp_evt_filter/sl_ncp_evt_filter.h
user_cmd_manage_event_filter_t#
typedef struct user_cmd_manage_event_filter user_cmd_manage_event_filter_t
Definition at line
53
of file common/ncp_evt_filter/sl_ncp_evt_filter.h
Function Documentation#
sl_ncp_evt_filter_handler#
void sl_ncp_evt_filter_handler (user_cmd_manage_event_filter_t * cmd)
Parameters
[in] | cmd | payload of manage event filter |
User command (manage_event_filter) handler. This function processes the event filter command which is in the cmd parameter and according to it adds/removes/resets the events in the event filter array.
Definition at line
63
of file common/ncp_evt_filter/sl_ncp_evt_filter.h
sl_ncp_evt_filter_is_filtered#
bool sl_ncp_evt_filter_is_filtered (uint32_t header)
Parameters
[in] | header | incoming Bluetooth stack event header |
Checks if the given event is filtered or not.
Returns
Returns true if filtered, false otherwise.
Definition at line
71
of file common/ncp_evt_filter/sl_ncp_evt_filter.h