GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > THS / V1-5-2
Constituent: thstest     Tag: mv2304
#include "PBS/LSU.h"
#include "PBS/WCT.h"
#include "THS/THS.h"
Include dependency graph for THS_prvdefs.h:
This graph shows which files directly or indirectly include this file:
Functions | |
unsigned int | THS_getLastPpsAbsTimeSec () |
Get the absolute time value at last PPS. | |
unsigned int | THS_cpuInit () |
Inits the TimeHackService module. | |
unsigned int | THS_cpuWait () |
Start the TimeHackService module. | |
unsigned int | THS_getLastPpsClock () |
Get the CPU clk value at last PPS. | |
void | THS_setLastPpsClock (unsigned int snapshot) |
Set the CPU clk value at last PPS. | |
void | THS_cpuIsr (unsigned int absTimeSec, int newTimetone, unsigned int snapshot) |
interrupt routine for CPU specfic time hack | |
unsigned int | THS_gemInit (int siu) |
Inits the TimeHackService module. | |
unsigned int | THS_gemWait () |
Start the TimeHackService module. | |
unsigned int | THS_gemGetTableInfo (int count, unsigned int *gemStrobe, LSU_factors *Kgem, unsigned int *flags) |
get info from hack table | |
unsigned int | THS_gemCalcClkDiff (unsigned int clk, unsigned int prevClk) |
calculate diff between clks assuming 25 bit clock | |
void | THS_gemIsr (unsigned int absTimeSec, THS_GemTableFlags flags) |
interrupt routine for gem specfic time hack | |
void | THS_gemSetTable (unsigned int absTimeSec, THS_GemTableFlags flags, unsigned int gemStrobeIn, LSU_factors Kgem) |
Set a single entry in the gem hack table. | |
void | THS_sendSlaveGemSetTableMsg (unsigned int absTime, THS_GemTableFlags flags, unsigned int gemStrobe, LSU_factors Kgem) |
send gmHack from SIU to EPU (this runs on SIU) |
|
Inits the TimeHackService module.
|
|
interrupt routine for CPU specfic time hack
CAUTION: THis routine adjusts the WUT timer module and it is very easy to kill the OS when modifying calls to WUT. |
|
Start the TimeHackService module.
THe module is called within THS.c. The sequence is: THS_cpuInit(); start up bunch of things including Sw to call THS_timeTone() every second as result of message from spacecraft Hw to cause PPS interrupt every second THS_cpuWait() (this routine waits till received first THS_cpuTimeTone() followed by PPS interrupt) |
|
calculate diff between clks assuming 25 bit clock
|
|
get info from hack table
|
|
Inits the TimeHackService module.
|
|
interrupt routine for gem specfic time hack
|
|
Set a single entry in the gem hack table.
On EPUs, this will be called as the results of a message from the SIU with this information. |
|
Start the TimeHackService module.
The sequence is: THS_gemInit(); start up bunch of things including LCB driver Sw to call THS_timeTone() every second as result of message from spacecraft Hw to cause PPS interrupt every second THS_gemWait() (this routine waits till received first THS_gemTimeTone() followed by PPS interrupt) |
|
Get the absolute time value at last PPS.
|
|
Get the CPU clk value at last PPS.
|
|
send gmHack from SIU to EPU (this runs on SIU)
|
|
Set the CPU clk value at last PPS.
|