ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcppComStat.c File Reference
#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
 

Detailed Description

Macro Definition Documentation

◆ ngclcuCOM_RDADDR

#define ngclcuCOM_RDADDR   501 /* read register */

◆ ngclcuCOM_RDPCI

#define ngclcuCOM_RDPCI   503 /* read PCI register */

◆ ngclcuCOM_WRADDR

#define ngclcuCOM_WRADDR   502 /* write register */

◆ ngclcuCOM_WRPCI

#define ngclcuCOM_WRPCI   504 /* write PCI register */

Function Documentation

◆ ngcppGetConfig()

int ngcppGetConfig ( ngcpp_link_t link,
ngcpp_cfg_t * config,
char * erms )

Receive the current configuration from the ngcpp command interpreter.

◆ ngcppGetDataPort()

int ngcppGetDataPort ( ngcpp_link_t link,
int * dataPort,
char * erms )

Retrieve the port number of the data server.

◆ ngcppGetErrPort()

int ngcppGetErrPort ( ngcpp_link_t link,
int * errPort,
char * erms )

Retrieve the port number of the error-stack server.

◆ ngcppGetRecvStat()

int ngcppGetRecvStat ( ngcpp_link_t link,
int * err,
int * stat,
char * erms )

Get errno and status of the receiver devices.

◆ ngcppGetRev()

int ngcppGetRev ( ngcpp_link_t link,
int * rev1,
int * rev2,
char * erms )

Receive pre-processor revision

◆ ngcppGetStatus()

int ngcppGetStatus ( ngcpp_link_t link,
int * status,
char * erms )

Receive the current status from the ngcpp command interpreter.

◆ ngcppLcuRdAddr()

int ngcppLcuRdAddr ( ngcpp_link_t link,
unsigned int addr,
unsigned int * value,
char * erms )

Read value from register address.

◆ ngcppLcuRdPci()

int ngcppLcuRdPci ( ngcpp_link_t link,
unsigned int addr,
unsigned int * value,
char * erms )

Read value from PCI configuration space address.

◆ ngcppLcuWrAddr()

int ngcppLcuWrAddr ( ngcpp_link_t link,
unsigned int addr,
unsigned int value,
char * erms )

Write value to register address.

◆ ngcppLcuWrPci()

int ngcppLcuWrPci ( ngcpp_link_t link,
unsigned int addr,
unsigned int value,
char * erms )

Write value to PCI configuration space address.

Variable Documentation

◆ ngcppCommand

ngcpp_cmd_t ngcppCommand
extern

◆ ngcppReply

ngcpp_rep_t ngcppReply
extern