GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCBD / V1-4-2
Constituent: lcbd     Tag: rad750
#include "LCBD/LCBD_evt.h"
#include "LCBD/LCBD_msgs.h"
#include "LCBD/LCBC.h"
#include "LCBD/LCB.h"
#include "LCBD/LCB_cr.h"
#include "LCBD_p.h"
#include "PBS/INT.ih"
Include dependency graph for LCBD_evt.c:
Data Structures | |
struct | _LCBD_evt_err_maps |
Maps to take an event transfer/receive error/status value, into a standard message code. More... | |
Defines | |
#define | _DUMP_EVT(_title, _evt, _cnt) |
Debugging macro to dump the first _cnt words of the event message. | |
Typedefs | |
typedef _LCBD_evt_err_maps | LCBD_evt_err_maps |
Typedef for struct _LCBD_evt_err_maps. | |
Functions | |
static __inline void | lcbd_stats_evt_proto_xct_add (LCBD_stats_evt_proto_xct *xct, unsigned int nwrds) |
Increments the event protocol transaction record statistics. | |
unsigned int | LCBD_evt_cb_set (LCBD lcb, unsigned int proto, LCBD_evt_cb cb, void *prm) |
Sets the event data callback routine and parameter for the specified LATp protocol. | |
LCBD_evt_cbp | LCBD_evt_cbp_get (LCBD lcb, unsigned int proto) |
Retrieves the event data callback routine and parameter for the specified LATp protocol. | |
unsigned int | LCBD_evt_conds_set (LCBD lcb, unsigned int conditions) |
Sets the interrupt conditions for the EVENT FIFO and EVENT ring buffer. | |
unsigned int | LCBD_evt_err_cb_set (LCBD lcb, LCBD_evt_err_cb cb, void *prm) |
Establish callback for event transport errors. | |
LCBD_evt_err_cbp | LCBD_evt_err_cbp_get (LCBD lcb) |
Returns the callback routine for the event transport error handler plus its parameter. | |
unsigned int | LCBD_evt_enable (LCBD lcb, int enable) |
Enables/Disables the flow of events into the LCB. | |
unsigned int | LCBD_evt_handler_create (LCBD lcb, int priority) |
Creates the event que handler service task. | |
unsigned int | LCBD_evt_que_install (LCBD lcb, FORK_que *que) |
Installs queue from fcb as the ISR -> task message queue for event traffic. | |
FORK_que * | LCBD_evt_que_get (LCBD lcb, int que_id) |
Returns a pointer to the event FORK que. This allows outside code to schedule work that is serialized with the event taking. | |
LCBD_evt_que_state | LCBD_evt_tickle (LCBD lcb) |
Callable version of the LCBD ISR. | |
unsigned int | LCBD_evt_rcv_err_map (unsigned int err) |
Maps a receive error to a standard LCB message code. | |
unsigned int | LCBD_evt_xfr_err_map (unsigned int err) |
Maps a event transfer error code to a standard LCB message code. | |
unsigned int | LCBD_evt_free (LCBD lcb, LCBD_evt *evt) |
Frees the a LCBD_evt. | |
unsigned int | LCBD_evt_rng_free (LCBD lcb, LCBD_evt *from, LCBD_evt *to) |
Frees the LCBD_evts from to to exclusively, i.e. excludes the memory associated with to Frees theLCBD_evt. | |
FORK_cb_status | lcbd_evt_handler (FORK_cb_prm parameter, FORK_msg_hdr *fork_msg) |
The main LCBD descriptor dispatching routine for event traffic. | |
Variables | |
static const LCBD_evt_err_maps | LCBD_Evt_Err_Maps |
Realization of LCB event error to message code mapping arrays. |
JJRussell -- russell@slac.stanford.edu
CVS $Id
|
Debugging macro to dump the first _cnt words of the event message. This macro active iff the symbol LCBD_DEBUG is defined |
|
Sets the event data callback routine and parameter for the specified LATp protocol.
|
|
Retrieves the event data callback routine and parameter for the specified LATp protocol.
|
|
Sets the interrupt conditions for the EVENT FIFO and EVENT ring buffer.
new = LCBD_EVT_CONDS_COMPOSE (LCBD_M_EVT_COND_50_FULL, LCBD_M_EVT_COND_25_FULL); prv = LCBD_evt_cond_set (lcb, new); // Do somethings, then restore prv = LCBD_evt_cond_set (lcb, prv); |
|
Enables/Disables the flow of events into the LCB.
|
|
Establish callback for event transport errors.
|
|
Returns the callback routine for the event transport error handler plus its parameter.
|
|
Frees the a LCBD_evt.
|
|
The main LCBD descriptor dispatching routine for event traffic.
|
|
Creates the event que handler service task.
|
|
Returns a pointer to the event FORK que. This allows outside code to schedule work that is serialized with the event taking.
|
|
Installs queue from fcb as the ISR -> task message queue for event traffic.
|
|
Maps a receive error to a standard LCB message code.
|
|
Frees the LCBD_evts from to to exclusively, i.e. excludes the memory associated with to Frees theLCBD_evt.
|
|
Callable version of the LCBD ISR.
|
|
Maps a event transfer error code to a standard LCB message code.
|
|
Increments the event protocol transaction record statistics.
|
|
Initial value: { { 0, LCBD_EOPCIMA, LCBD_EOPCIPE, LCBD_EOPCITA, LCBD_EOUND4, LCBD_EOBUFEMP, LCBD_EOUND6, LCBD_ROQEMPTY, }, { 0, LCBD_EIUND1, LCBD_EIDPERR, LCBD_EITRUNC, } }
|