![]() |
Doxygen Documentation |
|||||
Package: |
GTEM |
|||||
Version: |
V1-3-4 |
Marked: |
(not marked) |
|||
Constituent: |
gtem |
Tag: |
sun-gcc |
|||
#include <string.h>
#include "gt_p.h"
#include "gTEM_p.h"
Functions | |
| void | setCmdHeaderTEM (gtemHandle gt, cmdHeaderLATp *ch, unsigned short type) |
| initializes a command header structure for a TEM | |
| void | setLocalAD (gtemHandle gt, unsigned short func, unsigned short reg, localLATpAD *ad) |
| initializes a local access descriptor structure for a TEM | |
| void | packPayloadTEM (gtemHandle gt, unsigned int cmdHeader, unsigned int localAD, unsigned int value, unsigned int *payload) |
| Packs the cmdHeader, localLATpAD and value into the 64-bit payload. | |
| int | __temCmdLoad (gtemHandle gt, unsigned short temAddr, unsigned short type, unsigned short func, unsigned short reg, unsigned int value) |
| Generic routine for sending response-less commands. | |
| int | gTEMcmd (gtemHandle gt, unsigned short temAddr, unsigned short opcode) |
| Sends a dataless command to the TEM address. | |
| int | gTEMload (gtemHandle gt, unsigned short temAddr, unsigned short reg, unsigned int value) |
| Loads a register with value. | |
| int | __temCmdReadN (gtemHandle gt, unsigned short temAddr, unsigned short type, unsigned short reg, unsigned short nItems, unsigned int *val) |
| Reads a register returing value in val. | |
| int | __temCmdRead (gtemHandle gt, unsigned short temAddr, unsigned short type, unsigned short reg, unsigned int *val) |
| Reads a register returing value in val. | |
| int | gTEMread (gtemHandle gt, unsigned short temAddr, unsigned short reg, unsigned int *val) |
| Reads a register returing value in val. | |
| int | gTEMlam (gtemHandle gt, unsigned short temAddr) |
| Sends the "Look At Me" message to the TEM. | |
| int | setCellHeaderParity (gtemHandle gt, unsigned short p) |
| p determines if the LATp CellHeader Parity is inverted | |
| int | getCellHeaderParity (gtemHandle gt, unsigned short *p) |
| Returns the current LATp cell header parity setting in p. | |
| int | setCellBodyParity (gtemHandle gt, unsigned short p) |
| p determines if the LATp Cell Body Parity is inverted | |
| int | getCellBodyParity (gtemHandle gt, unsigned short *p) |
| Returns the current LATp cell body parity setting in p. | |
| int | setCmdStrParityTEM (gtemHandle gt, unsigned short p) |
| p determines if the TEM command string parity is inverted | |
| int | getCmdStrParityTEM (gtemHandle gt, unsigned short *p) |
| Returns the current TEM command string parity. | |
| int | setAccessDescParityTEM (gtemHandle gt, unsigned short p) |
| p determines if the TEM access descriptor parity is inverted | |
| int | getAccessDescParityTEM (gtemHandle gt, unsigned short *p) |
| Returns the current TEM access descriptor parity. | |
| int | setCmdPayloadParityTEM (gtemHandle gt, unsigned short p) |
| p determines if the TEM command payload parity is inverted | |
| int | getCmdPayloadParityTEM (gtemHandle gt, unsigned short *p) |
| Returns current TEM command payload parity. | |
|
||||||||||||||||||||||||||||
|
Generic routine for sending response-less commands.
For dataless commands reg is interpreted as the "opcode" of the dataless command and value is ignored. For load commands reg is the TEM register to load with value. |
|
||||||||||||||||||||||||
|
Reads a register returing value in val.
The following error codes are returned when LATp errors occur:
|
|
||||||||||||||||||||||||||||
|
Reads a register returing value in val.
For most cases nItems is 1, indicating a simple 32-bit register read. For the GTIC ADCS register, however, nItems will be 3 for reading 3 32-bit words from the register. At the most nItems can be 4, if nItems is greater than 4 return GERR_BAD_PARAM. The following error codes are returned when LATp errors occur:
|
|
||||||||||||
|
Returns the current TEM access descriptor parity.
|
|
||||||||||||
|
Returns the current LATp cell body parity setting in p.
|
|
||||||||||||
|
Returns the current LATp cell header parity setting in p.
|
|
||||||||||||
|
Returns current TEM command payload parity.
|
|
||||||||||||
|
Returns the current TEM command string parity.
|
|
||||||||||||||||
|
Sends a dataless command to the TEM address.
|
|
||||||||||||
|
Sends the "Look At Me" message to the TEM.
|
|
||||||||||||||||||||
|
Loads a register with value.
|
|
||||||||||||||||||||
|
Reads a register returing value in val.
|
|
||||||||||||||||||||||||
|
Packs the cmdHeader, localLATpAD and value into the 64-bit payload.
|
|
||||||||||||
|
p determines if the TEM access descriptor parity is inverted
|
|
||||||||||||
|
p determines if the LATp Cell Body Parity is inverted
|
|
||||||||||||
|
p determines if the LATp CellHeader Parity is inverted
|
|
||||||||||||||||
|
initializes a command header structure for a TEM
|
|
||||||||||||
|
p determines if the TEM command payload parity is inverted
|
|
||||||||||||
|
p determines if the TEM command string parity is inverted
|
|
||||||||||||||||||||
|
initializes a local access descriptor structure for a TEM
|
1.3.3