![]() |
Doxygen Documentation |
|||||
Package: |
DUTIL |
|||||
Version: |
V0-2-5 |
Marked: |
(not marked) |
|||
Constituent: |
start |
Tag: |
rad750 |
|||
#include "DUTIL/start.h"
#include "LCB_cfg_p.h"
#include "PBS/MBA.h"
#include "PBS/FORK.h"
#include "PBS/TASK.h"
#include "PBS/FPA.h"
#include "LCB/LCB.h"
#include "LCB/LCB_log.h"
#include "LCB/LCB_init.h"
#include "LCB/LCB_io.h"
#include "LCB/LCB_dispatch.h"
#include "LCB/LCB_err.h"
#include "LCB/LCB_bulk.h"
#include "LCB/LCB_reg.h"
#include "LCB/LIOX.h"
#include "LCB/LIOX_init.h"
#include "LCB/LIOX_sys.h"
#include "LCB/LIOX_sync.h"
#include "LCB/LIOX_cmd.h"
#include "LCB/LIOX_addr.h"
#include "DAB/reg.h"
#include "DAB/scru.h"
#include "DAB/spdu.h"
#include "DAB/sgem.h"
#include "DAB/sebm.h"
#include "DEM/TEM_reg.h"
#include "DEM/TEM_CC_sync.h"
#include "DEM/TEM_GCCC_sync.h"
#include "DEM/TEM_GTIC_sync.h"
#include "DEM/AEM_reg.h"
#include "DEM/AEM_CC_sync.h"
#include <stdio.h>
#include <string.h>
Include dependency graph for start.c:

Defines | |
| #define | DEFAULT_DELAY 60 |
| Time (in 60ths of a second) to wait after powering on a cpt before trying to configure it (used in addTEM). | |
| #define | N_CRU_REGS 3 |
| Number of CRU registers to save and restore in useOtherDAB. | |
| #define | N_EBM_REGS 8 |
| Number of EBM registers to save and restore in useOtherDAB. | |
| #define | _printf(format, args...) |
| Provide printf-like functionality. | |
Functions | |
| void | powerOn (LIOXs slh, unsigned priMask, unsigned redMask, unsigned delay) |
| Configures the PDUs to power the required components of the LAT. | |
| int | configCRU (LIOXs slh, unsigned cptMask) |
| Configures the CRU to allow LATp C/R with the specified components and sets the LATp addresses of those cpts. | |
| int | configEBM (LIOXs slh, unsigned cptMask) |
| Configures the source and destination enables of the EBM. | |
| void | useOtherLATp (LCB lcb, LIOXs slh) |
| Invert the command and event path bits in the configuration registers of the LCB (change to the other LATp fabric). | |
| unsigned | useOtherDAB (LCB lcb, LIOXs slh) |
| Stop using the current (prim/red) LATp fabric and switch to the other, transferring over the CRU and EBM configurations in the process. | |
| unsigned | getEPUaddr (LIOXs slh) |
| Returns address to use in the event contributions. | |
| int | addTEM (LIOXs slh, unsigned temID, unsigned redPDU) |
| Power on a TEM and configure it along with the CRU and EBM. | |
| int | removeTEM (LIOXs slh, unsigned temID) |
| Power off a TEM and remove it from the CRU and EBM configurations. | |
| int | addEPU (LIOXs slh, unsigned epuID, unsigned redPDU) |
| Power on an EPU and configure it along with the CRU and EBM. | |
| int | removeEPU (LIOXs slh, unsigned epuID) |
| Power off an EPU and remove it from the CRU and EBM configurations. | |
| int | powerOn_load (LIOXs slh, unsigned temMask, unsigned delay) |
| Power on the CAL and TRK. | |
| unsigned int | createSLH (LCB lcb, LIOXs *slh) |
| Allocate memory for and initializes Synchronous LIOX handle. | |
| unsigned int | t_LCB_drainQ (LCB lcb) |
| Drains the result and event hardware FIFOs. | |
| unsigned | LCB_startup (LCB *pLCB, LCB_cfg *cfg) |
| Laundry list of LCB initializations. | |
| unsigned | LCB_promote (LIOXs slh) |
| Assert the LCB commander wire - field promotion from SLAVE to COMMANDER. | |
| unsigned | LCB_demote (LIOXs slh) |
| De-assert the LCB commander wire. | |
|
|
Value: printf ( __FUNCTION__"():%05d "format".\n" , __LINE__ , ## args); \ fflush ( stdout);
|
|
||||||||||||||||
|
Power on an EPU and configure it along with the CRU and EBM.
|
|
||||||||||||||||
|
Power on a TEM and configure it along with the CRU and EBM.
|
|
||||||||||||
|
Configures the CRU to allow LATp C/R with the specified components and sets the LATp addresses of those cpts. int configCRU(LIOXs slh, unsigned cptMask)
2) Only the TEMs, DAB and PDUs are configured by this function. 3) cptMask is laid out in the manner of the CRU command and response enable bit masks (LAT-TD-01547, figs 12 & 13). TEM0 = 0x00000001 TEM1 = 0x00000002 TEM2 = 0x00000004 : TEMe = 0x00004000 TEMf = 0x00008000 GEM = 0x00010000 AEM = 0x00020000 EBM = 0x00040000 PDU0 = 0x00080000 PDU1 = 0x00100000 SIUx = 0x01000000 SIU0 = 0x02000000 SIU1 = 0x04000000 EPU0 = 0x08000000 EPU1 = 0x10000000 EPU2 = 0x20000000 |
|
||||||||||||
|
Configures the source and destination enables of the EBM. int configEBM(LIOXs slh, unsigned cptMask)
GEM = 0x00000001 TEM0 = 0x00000002 TEM1 = 0x00000004 TEM2 = 0x00000008 : TEMe = 0x00008000 TEMf = 0x00010000 AEM = 0x00020000 SIUX = 0x00040000 SIU0 = 0x00080000 SIU1 = 0x00100000 EPU0 = 0x00200000 EPU1 = 0x00400000 EPU2 = 0x00800000 |
|
||||||||||||
|
Allocate memory for and initializes Synchronous LIOX handle.
|
|
|
Returns address to use in the event contributions.
|
|
|
De-assert the LCB commander wire.
|
|
|
Assert the LCB commander wire - field promotion from SLAVE to COMMANDER.
|
|
||||||||||||
|
Laundry list of LCB initializations.
|
Here is the call graph for this function:

|
||||||||||||||||||||
|
Configures the PDUs to power the required components of the LAT. void powerOn (LIOXs slh, unsigned priMask, unsigned redMask, unsigned delay)
2) Currently only the Primary EPU DC-DC converters are available. 3) Currently only the Primary ACD supply and converters are available. 4) priMask and redMask are laid out in the manner of the CRU command and response enable bit masks (LAT-TD-01547, figs 12 & 13). TEM0 = 0x00000001 TEM1 = 0x00000002 TEM2 = 0x00000004 : TEMe = 0x00004000 TEMf = 0x00008000 GEM = 0x00010000 AEM = 0x00020000 EBM = 0x00040000 PDU0 = 0x00080000 PDU1 = 0x00100000 SIUx = 0x01000000 SIU0 = 0x02000000 SIU1 = 0x04000000 EPU0 = 0x08000000 EPU1 = 0x10000000 EPU2 = 0x20000000 |
|
||||||||||||||||
|
Power on the CAL and TRK.
|
|
||||||||||||
|
Power off an EPU and remove it from the CRU and EBM configurations.
|
|
||||||||||||
|
Power off a TEM and remove it from the CRU and EBM configurations.
|
|
|
Drains the result and event hardware FIFOs.
|
|
||||||||||||
|
Stop using the current (prim/red) LATp fabric and switch to the other, transferring over the CRU and EBM configurations in the process.
|
Here is the call graph for this function:

|
||||||||||||
|
Invert the command and event path bits in the configuration registers of the LCB (change to the other LATp fabric).
|
1.3.3