vscphlp_doLevel2Filter

int vscphlp_doLevel2Filter( const vscpEvent *pEvent, 
                            const vscpEventFilter *pFilter )

Parameters

pEvent

Pointer to event that should be filtered.

pFilter

Filter/mask to use for the filtering.

Return Value

Return true (non-zero) if the event is accepted by the filter.

Description

Check VSCP filter condition.

Example

if ( vscphlp_doLevel2Filter( pEvent, &filter ) ) {
    printf( "Event pass:  vscphlp_doLevel2Filter\n");
}
else {
   printf( "Event does NOT pass:  vscphlp_doLevel2Filter\n");
}

Very Simple Control Protocol
This document is licensed under Creative Commons BY 4.0 and can be freely copied, redistributed, remixed, transformed, built upon as long as you give credits to the author((s).

results matching ""

    No results matching ""