lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
AxiVersion.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/signal.h>
#include <sys/fcntl.h>

Classes

struct  AxiVersion
 struct AxiVersion - Represents AXI version data. More...
 

Macros

#define AVER_Get   0x1200
 Commands for AXI version operations.
 

Functions

static ssize_t axiVersionGet (int32_t fd, struct AxiVersion *aVer)
 axiVersionGet - Reads the AXI version information.
 

Macro Definition Documentation

◆ AVER_Get

#define AVER_Get   0x1200

Commands for AXI version operations.


Company : SLAC National Accelerator Laboratory

Description:

Defines an interface for accessing AXI version information in kernel space.

This file is part of the aes_stream_drivers package. It is subject to the license terms in the LICENSE.txt file found in the top-level directory of this distribution and at: https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. No part of the aes_stream_drivers package, including this file, may be copied, modified, propagated, or distributed except according to the terms

contained in the LICENSE.txt file.

Function Documentation

◆ axiVersionGet()

static ssize_t axiVersionGet ( int32_t  fd,
struct AxiVersion *  aVer 
)
inlinestatic

axiVersionGet - Reads the AXI version information.

@fd: File descriptor for the device. @aVer: Pointer to AxiVersion structure to fill with data.

This function invokes an IOCTL call to read the AXI version information from the hardware and fills the provided AxiVersion structure with the data read.

Return: The number of bytes read on success or an error code on failure.