Function sc_tdc_is_event¶
Defined in File scTDC.h
Function Documentation¶
-
int sc_tdc_is_event(const enum sc_event_type_index type, const void *event, const unsigned event_len_bytes)¶
Check type of event data.
When reading events via sc_tdc_pipe_read2(), this function can be used to test whether event is of a particular special type or not.
Returns non-zero value if event is of the type specified in the first argument, otherwise returns zero.
- Deprecated:
prefer the USER_CALLBACKS pipe type
See also
sc_pipe_open2() with USER_CALLBACKS from enum sc_pipe_type_t (defined in scTDC_types.h) as a replacement to the sc_tdc_pipe_XYZ() functions.
- Parameters
type – [in] Event type for comparison.
event – [in] Event under testing.
event_len_bytes – [in] Length of event in bytes.
- Returns
int Result of comparison.