ChimeraTK-DeviceAccess 03.25.00
Loading...
Searching...
No Matches
llrfdrv_io_compat.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Deutsches Elektronen-Synchrotron DESY, MSK, ChimeraTK Project <chimeratk-support@desy.de>
2// SPDX-License-Identifier: LGPL-3.0-or-later
3#pragma once
4
5/*
6 * Put an extern "C" declaration when compiling with C++. Like this the structs
7 * can be used from the included header files. Having this declatation in the
8 * header saves extern "C" declaration in all C++ files using this header (avoid
9 * code duplication and frogetting the declaration).
10 */
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#define LLRFDRV_IOC '0'
16#define LLRFDRV_PHYSICAL_SLOT _IOWR(LLRFDRV_IOC, 20, int)
17#define LLRFDRV_DRIVER_VERSION _IOWR(LLRFDRV_IOC, 21, int)
18#define LLRFDRV_FIRMWARE_VERSION _IOWR(LLRFDRV_IOC, 22, int)
19
20#define LLRFDRV_IOC_MAXNR 22
21#define LLRFDRV_IOC_MINNR 20
22
23#ifdef __cplusplus
24} /* closing the extern "C" { */
25#endif