#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <errno.h>#include <ngc/core/ngcppInt.h>#include <ngc/core/ngcppCom.h>Macros | |
| #define | ngclcuCOM_RDADDR 501 /* read register */ |
| #define | ngclcuCOM_WRADDR 502 /* write register */ |
| #define | ngclcuCOM_RDPCI 503 /* read PCI register */ |
| #define | ngclcuCOM_WRPCI 504 /* write PCI register */ |
Functions | |
| int | ngcppGetStatus (ngcpp_link_t lnk, int *status, char *erms) |
| int | ngcppGetConfig (ngcpp_link_t lnk, ngcpp_cfg_t *config, char *erms) |
| int | ngcppGetRecvStat (ngcpp_link_t lnk, int *err, int *stat, char *erms) |
| int | ngcppGetErrPort (ngcpp_link_t lnk, int *errPort, char *erms) |
| int | ngcppGetDataPort (ngcpp_link_t lnk, int *dataPort, char *erms) |
| int | ngcppGetRev (ngcpp_link_t lnk, int *rev1, int *rev2, char *erms) |
| int | ngcppLcuRdAddr (ngcpp_link_t lnk, unsigned int addr, unsigned int *value, char *erms) |
| int | ngcppLcuWrAddr (ngcpp_link_t lnk, unsigned int addr, unsigned int value, char *erms) |
| int | ngcppLcuRdPci (ngcpp_link_t lnk, unsigned int addr, unsigned int *value, char *erms) |
| int | ngcppLcuWrPci (ngcpp_link_t lnk, unsigned int addr, unsigned int value, char *erms) |
Variables | |
| ngcpp_cmd_t | ngcppCommand |
| ngcpp_rep_t | ngcppReply |
| #define ngclcuCOM_RDADDR 501 /* read register */ |
| #define ngclcuCOM_RDPCI 503 /* read PCI register */ |
| #define ngclcuCOM_WRADDR 502 /* write register */ |
| #define ngclcuCOM_WRPCI 504 /* write PCI register */ |
| int ngcppGetConfig | ( | ngcpp_link_t | link, |
| ngcpp_cfg_t * | config, | ||
| char * | erms ) |
Receive the current configuration from the ngcpp command interpreter.
| int ngcppGetDataPort | ( | ngcpp_link_t | link, |
| int * | dataPort, | ||
| char * | erms ) |
Retrieve the port number of the data server.
| int ngcppGetErrPort | ( | ngcpp_link_t | link, |
| int * | errPort, | ||
| char * | erms ) |
Retrieve the port number of the error-stack server.
| int ngcppGetRecvStat | ( | ngcpp_link_t | link, |
| int * | err, | ||
| int * | stat, | ||
| char * | erms ) |
Get errno and status of the receiver devices.
| int ngcppGetRev | ( | ngcpp_link_t | link, |
| int * | rev1, | ||
| int * | rev2, | ||
| char * | erms ) |
Receive pre-processor revision
| int ngcppGetStatus | ( | ngcpp_link_t | link, |
| int * | status, | ||
| char * | erms ) |
Receive the current status from the ngcpp command interpreter.
| int ngcppLcuRdAddr | ( | ngcpp_link_t | link, |
| unsigned int | addr, | ||
| unsigned int * | value, | ||
| char * | erms ) |
Read value from register address.
| int ngcppLcuRdPci | ( | ngcpp_link_t | link, |
| unsigned int | addr, | ||
| unsigned int * | value, | ||
| char * | erms ) |
Read value from PCI configuration space address.
| int ngcppLcuWrAddr | ( | ngcpp_link_t | link, |
| unsigned int | addr, | ||
| unsigned int | value, | ||
| char * | erms ) |
Write value to register address.
| int ngcppLcuWrPci | ( | ngcpp_link_t | link, |
| unsigned int | addr, | ||
| unsigned int | value, | ||
| char * | erms ) |
Write value to PCI configuration space address.
|
extern |
|
extern |