GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LRA / V5-2-4 > lra / sun-gcc
#include <LRA_p.h>
#include <LRA/LRA_cmddefs.h>
#include <LRA/LRA_msgs.h>
Functions | |
unsigned | LRA_CONTROL (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the CONTROL telecommand. | |
unsigned | LRA_ESRSEND (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the ESRSEND telecommand. | |
unsigned | LRA_LAM (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the LAM telecommand. | |
unsigned | LRA_LAMLCB (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the LAMLCB telecommand. | |
unsigned | LRA_LATRESET (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the LATRESET telecommand. | |
unsigned | LRA_LOAD (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the LOAD telecommand. | |
unsigned | LRA_NOOP (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the NOOP telecommand. | |
unsigned | LRA_READ (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the READ telecommand. | |
unsigned | LRA_STATCLEAR (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the STATCLEAR telecommand. | |
unsigned | LRA_STATPERIOD (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the STATPERIOD telecommand. | |
unsigned | LRA_STATSEND (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the STATSEND telecommand. | |
unsigned | LRA_STATTEMS (void *prm, const struct _ITC_QueueItem *qitem, void *pkt, unsigned len) |
Process the STATTEMS telecommand. |
$Id: LRA_cmnd.c,v 1.9 2011/03/28 16:06:29 saxton Exp $
unsigned LRA_CONTROL | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the CONTROL telecommand.
This routine is called whenever a CONTROL telecommand arrives. It calls the control operation routine.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer | |
len | Packet length (not used) |
LRA_SUCCESS | The operation was successful | |
LRA_INVCMPT | Invalid component number | |
LRA_INVCNTRL | Invalid control operation | |
LRA_INVTEM | Invalid TEM number | |
LRA_INVCC | Invalid cable controller number | |
LRA_INVRC | Invalid readout controller number | |
LRA_INVFE | Invalid front-end number | |
LCBD_RTOERR | Operation timed out |
References _LRA_CONTROL_Prm::block, _LRA_regSpec::block, _LRA_CONTROL_Prm::cc, _LRA_regSpec::cc, _LRA_CONTROL_Prm::cmpnt, _LRA_regSpec::cmpnt, _LRA_control::crl, _LRA_CONTROL_Prm::fe, _LRA_regSpec::fe, _LRA_regSpec::fill, LRA_doCtrl(), LRA_getCtrl(), _LRA_CONTROL_Pkt::pay, _LRA_CONTROL_Prm::rc, _LRA_regSpec::rc, _LRA_CONTROL_Prm::reg, _LRA_regSpec::reg, _LRA_CONTROL_Prm::tem, and _LRA_regSpec::tem.
unsigned LRA_ESRSEND | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the ESRSEND telecommand.
This routine is called whenever an ESRSEND telecommand arrives. It reads the error and status registers and sends the data to the SSR.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer (not used) | |
len | Packet length (not used) |
LRA_SUCCESS | The registers were read and sent successfully | |
LRA_NOTINIT | LRA not initialized | |
ITC_SENDNID | Destination node not reachable | |
ITC_SENDPRX | Proxy task for destination node not started | |
ITC_SENDQID | Destination queue not available | |
ITC_SENDTID | Destination task not started |
References LRA_doSendEsr().
unsigned LRA_LAM | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the LAM telecommand.
This routine is called whenever a LAM telecommand arrives. It calls the look-at-me routine.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer | |
len | Packet length (not used) |
LRA_SUCCESS | The operation was successful | |
LRA_INVCMPT | Invalid component number | |
LRA_INVTEM | Invalid TEM number | |
LCBD_RTOERR | Operation timed out |
References _LRA_LAM_Prm::cmpnt, _LRA_control::crl, LRA_doLam(), LRA_getCtrl(), _LRA_LAM_Pkt::pay, and _LRA_LAM_Prm::tem.
unsigned LRA_LAMLCB | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the LAMLCB telecommand.
This routine is called whenever a LAMLCB telecommand arrives. It calls the look-at-me LCB routine.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer | |
len | Packet length (not used) |
LRA_SUCCESS | The operation was successful | |
LRA_INVCMPT | Invalid component number | |
LCBD_RTOERR | Operation timed out |
References _LRA_LAMLCB_Prm::cmpnt, _LRA_control::crl, LRA_doLamLcb(), LRA_getCtrl(), _LRA_LAMLCB_Prm::mask, _LRA_LAMLCB_Pkt::pay, and _LRA_LAMLCB_Prm::value.
unsigned LRA_LATRESET | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the LATRESET telecommand.
This routine is called whenever a LATRESET telecommand arrives. It performs a LAT reset operation.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer (not used) | |
len | Packet length (not used) |
LRA_SUCCESS | The reset was successful | |
LCBD_RTOERR | Operation timed out |
References LRA_latReset().
unsigned LRA_LOAD | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the LOAD telecommand.
This routine is called whenever a LOAD telecommand arrives. It calls the register load routine.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer | |
len | Packet length (not used) |
LRA_SUCCESS | The registers were loaded successfully | |
LRA_INVCMPT | Invalid component number | |
LRA_INVREG | Invalid register number | |
LRA_INVBLOCK | Invalid register block number | |
LRA_INVTEM | Invalid TEM number | |
LRA_INVCC | Invalid cable controller number | |
LRA_INVRC | Invalid readout controller number | |
LRA_INVFE | Invalid front-end number | |
LCBD_RTOERR | Operation timed out |
References _LRA_LOAD_Prm::block, _LRA_regSpec::block, _LRA_LOAD_Prm::cc, _LRA_regSpec::cc, _LRA_LOAD_Prm::cmpnt, _LRA_regSpec::cmpnt, _LRA_control::crl, _LRA_LOAD_Prm::fe, _LRA_regSpec::fe, _LRA_regSpec::fill, LRA_doLoad(), LRA_getCtrl(), _LRA_LOAD_Pkt::pay, _LRA_LOAD_Prm::rc, _LRA_regSpec::rc, _LRA_LOAD_Prm::reg, _LRA_regSpec::reg, _LRA_LOAD_Prm::tem, _LRA_regSpec::tem, _LRA_LOAD_Prm::valhi, and _LRA_LOAD_Prm::vallo.
unsigned LRA_NOOP | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the NOOP telecommand.
This routine is called whenever a NOOP telecommand arrives. It just returns success.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer (not used) | |
len | Packet length (not used) |
LRA_SUCCESS | Always |
unsigned LRA_READ | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the READ telecommand.
This routine is called whenever a READ telecommand arrives. It calls the register read routine and sends back the register data.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer | |
len | Packet length (not used) |
LRA_SUCCESS | The read and send were successful | |
LRA_INVCMPT | Invalid component number | |
LRA_INVREG | Invalid register number | |
LRA_INVBLOCK | Invalid register block number | |
LRA_INVTEM | Invalid TEM number | |
LRA_INVCC | Invalid cable controller number | |
LRA_INVRC | Invalid readout controller number | |
LRA_INVFE | Invalid front-end number | |
LCBD_RTOERR | Operation timed out | |
ITC_SENDNID | Destination node not reachable | |
ITC_SENDPRX | Proxy task for destination node not started | |
ITC_SENDQID | Destination queue not available |
References _LRA_READ_Prm::block, _LRA_regSpec::block, _LRA_READ_Prm::cc, _LRA_regSpec::cc, _LRA_READ_Prm::cmpnt, _LRA_regSpec::cmpnt, _LRA_READ_Prm::dest, _LRA_READ_Prm::fe, _LRA_regSpec::fe, _LRA_regSpec::fill, LRA_doSend(), _LRA_READ_Pkt::pay, _LRA_READ_Prm::rc, _LRA_regSpec::rc, _LRA_READ_Prm::reg, _LRA_regSpec::reg, _LRA_READ_Prm::tem, and _LRA_regSpec::tem.
unsigned LRA_STATCLEAR | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the STATCLEAR telecommand.
This routine is called whenever a STATCLEAR telecommand arrives. It clears the statistics data.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer (not used) | |
len | Packet length (not used) |
LRA_SUCCESS | The statistics were cleared successfully | |
LRA_NOTINIT | LRA not initialized |
References LRA_clearStats().
unsigned LRA_STATPERIOD | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the STATPERIOD telecommand.
This routine is called whenever a STATPERIOD telecommand arrives. It sets the value of the statistics update period.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer (not used) | |
len | Packet length (not used) |
LRA_SUCCESS | Success | |
LRA_NOTINIT | LRA not initialized |
References LRA_setStatsPeriod(), _LRA_STATPERIOD_Pkt::pay, and _LRA_STATPERIOD_Prm::period.
unsigned LRA_STATSEND | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the STATSEND telecommand.
This routine is called whenever a STATSEND telecommand arrives. It sends the current statistics data to the SSR.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer (not used) | |
len | Packet length (not used) |
LRA_SUCCESS | The statistics were sent successfully | |
LRA_NOTINIT | LRA not initialized | |
ITC_SENDNID | Destination node not reachable | |
ITC_SENDPRX | Proxy task for destination node not started | |
ITC_SENDQID | Destination queue not available | |
ITC_SENDTID | Destination task not started |
References LRA_doSendStats().
unsigned LRA_STATTEMS | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pkt, | |||
unsigned | len | |||
) |
Process the STATTEMS telecommand.
This routine is called whenever a STATTEMS telecommand arrives. It sets the value of the EBM statistics TEMs mask.
prm | User context parameter (not used) | |
qitem | Queue item (not used) | |
pkt | Packet pointer (not used) | |
len | Packet length (not used) |
LRA_SUCCESS | Success | |
LRA_NOTINIT | LRA not initialized |
References LRA_setTemMask(), _LRA_STATTEMS_Pkt::pay, and _LRA_STATTEMS_Prm::temmask.