![]() |
Doxygen Documentation |
|||||
Package: |
GAEM |
|||||
Version: |
V2-1-2 |
Marked: |
(not marked) |
|||
Constituent: |
gaem |
Tag: |
sun-gcc |
|||
#include <string.h>
#include "ga_p.h"
#include "gAEM_p.h"
#include "GAEM/gAEM.h"
Functions | |
| void | setCmdHeaderAEM (gaemHandle ga, cmdHeaderLATp *ch, unsigned short type, unsigned short bcast, unsigned short inst, unsigned short ext) |
| initializes a command header structure for a AEM | |
| void | setAEMlocalAD (gaemHandle ga, unsigned short func, unsigned short reg, localLATpAD *ad) |
| initializes a local access descriptor structure for a AEM | |
| void | packPayloadAEM (gaemHandle ga, unsigned int cmdHeader, unsigned int localAD, unsigned int value, unsigned int *payload) |
| Packs the cmdHeader, localLATpAD and value into the 64-bit payload. | |
| int | __aemCmdLoad (gaemHandle ga, unsigned short func, unsigned short reg, unsigned int value) |
| Generic routine for sending response-less commands. | |
| int | gAEMcmd (gaemHandle ga, unsigned short opcode) |
| Sends a dataless command to the AEM. | |
| int | gAEMload (gaemHandle ga, unsigned short reg, unsigned int value) |
| Loads a register with value. | |
| int | __aemCmdRead (gaemHandle ga, unsigned short reg, unsigned int *val) |
| Reads a register returing value in val. | |
| int | gAEMread (gaemHandle ga, unsigned short reg, unsigned int *val) |
| Reads a register returing value in val. | |
| int | gAEMlam (gaemHandle ga) |
| Sends the "Look At Me" message to the AEM. | |
| int | setCmdStrParityAEM (gaemHandle ga, unsigned short p) |
| p determines if the AEM command string parity is inverted | |
| int | getCmdStrParityAEM (gaemHandle ga, unsigned short *p) |
| Returns current AEM command string parity. | |
| int | setAccessDescParityAEM (gaemHandle ga, unsigned short p) |
| Sets the current AEM access descriptor parity. | |
| int | getAccessDescParityAEM (gaemHandle ga, unsigned short *p) |
| Returns current AEM access descriptor parity. | |
| int | setCmdPayloadParityAEM (gaemHandle ga, unsigned short p) |
| p determines if the AEM command payload parity is inverted | |
| int | getCmdPayloadParityAEM (gaemHandle ga, unsigned short *p) |
| Returns the current AEM command payload parity. | |
| int | gAEM_SetAddr (gaemHandle ga, unsigned short aemAddr) |
| Sets system wide AEM LATp address. | |
| int | gAEM_GetAddr (gaemHandle ga, unsigned short *aemAddr) |
| Gets system wide AEM LATp address. | |
|
||||||||||||||||||||
|
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 AEM register to load with value. |
|
||||||||||||||||
|
Reads a register returing value in val.
The following error codes are returned when LATp errors occur:
|
|
||||||||||||
|
Gets system wide AEM LATp address.
|
|
||||||||||||
|
Sets system wide AEM LATp address.
|
|
||||||||||||
|
Sends a dataless command to the AEM.
|
|
|
Sends the "Look At Me" message to the AEM.
|
|
||||||||||||||||
|
Loads a register with value.
|
|
||||||||||||||||
|
Reads a register returing value in val.
|
|
||||||||||||
|
Returns current AEM access descriptor parity.
|
|
||||||||||||
|
Returns the current AEM command payload parity.
|
|
||||||||||||
|
Returns current AEM command string parity.
|
|
||||||||||||||||||||||||
|
Packs the cmdHeader, localLATpAD and value into the 64-bit payload.
|
|
||||||||||||
|
Sets the current AEM access descriptor parity.
|
|
||||||||||||||||||||
|
initializes a local access descriptor structure for a AEM
|
|
||||||||||||||||||||||||||||
|
initializes a command header structure for a AEM
|
|
||||||||||||
|
p determines if the AEM command payload parity is inverted
|
|
||||||||||||
|
p determines if the AEM command string parity is inverted
|
1.3.3