usbmsg_filter
Prev | 4.6. msg.h | Next

## Name

usbmsg_filter — Adds a message class filter to a handler.

## Synopsis

``extern int usbmsg_filter`(usbmsg_handler_t handler, void* pw, usbmsg_class_t msgclass, int enable);`

## Arguments

`handler` pointer to message handler as used when registering handler.
`pw` private word as passed when registering handler.
`msgclass` message class to apply filter to.
`enable` 0 to disable filter and 1 to enable.

## Description

Adds a message class filter to a handler. Used to enable a handler to only recive messages it wants to process.

Prev | Up | Next
usbmsg_deregister_handler | Home | usbmsg_filterall