ms1553_link ms1553_terminal
API Reference Manual  /  4 Model-to-Model Interfaces  / 

ms1553_snoop

Description
typedef void (*ms1553_link_snoop_t)(lang_void *user_data,
                                    conf_object_t *clock,
                                    ms1553_phase_t phase,
                                    int length,
                                    attr_value_t *data);

SIM_INTERFACE(ms1553_snoop) {
        conf_object_t *(*attach)(conf_object_t *NOTNULL link,
                                 conf_object_t *clock,
                                 ms1553_link_snoop_t snoop_fun,
                                 lang_void *user_data);
};
#define MS1553_SNOOP_INTERFACE "ms1553_snoop"

This interface is implemented by MIL-STD-1553 link objects. It is used to attach snoop functions to the link. The snoop function will receive all traffic going over the link.

The interface should only be used for inspection, and never as part of the actual simulation. The snoop functions must not affect the simulation in any way.

The clock parameter tells the link on which clock to post the events that call the snoop function.

The user_data parameter is passed to the snoop function every time it is called.

The attach() function returns an already created snoop endpoint object or NULL on failure.

Execution Context
Global Context

ms1553_link ms1553_terminal