Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Programmable RF Attenuator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Programmable RF Attenuator
Commits
490b9a22
Commit
490b9a22
authored
Apr 28, 2023
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: bring doxygen docs up-to-date
parent
59c7d16b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
25 deletions
+40
-25
eeprom.c
software/lib/eeprom.c
+4
-2
liboattnusb-i.h
software/lib/liboattnusb-i.h
+4
-2
liboattnusb.c
software/lib/liboattnusb.c
+5
-3
liboattnusb.h
software/lib/liboattnusb.h
+17
-15
usb-enum.c
software/lib/usb-enum.c
+5
-0
usb-enum.h
software/lib/usb-enum.h
+5
-3
No files found.
software/lib/eeprom.c
View file @
490b9a22
/*
*
/*
* SPDX-FileCopyrightText: 2023 CERN (home.cern)
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
*/
/**
* @file eeprom.c
* @brief Library part that takes care of EEPROM serial number
* @author Tomasz Włostowski
...
...
software/lib/liboattnusb-i.h
View file @
490b9a22
/*
*
/*
* SPDX-FileCopyrightText: 2023 CERN (home.cern)
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
*/
/**
* @file liboattnusb-i.h
* @brief OASIS USB Attenuator driver library internal definitions
* @author Tomasz Włostowski <tomasz.wlostowski@cern.ch>
...
...
software/lib/liboattnusb.c
View file @
490b9a22
/*
*
/*
* SPDX-FileCopyrightText: 2023 CERN (home.cern)
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
*/
/**
* @file liboattnusb.c
* @brief Library file for the
msatt
driver
* @brief Library file for the
oattnusb
driver
* @author Tomasz Włostowski
* @date October 17th 2018
*/
...
...
software/lib/liboattnusb.h
View file @
490b9a22
/*
*
/*
* SPDX-FileCopyrightText: 2023 CERN (home.cern)
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
*/
/**
* @file liboattnusb.h
* @brief OASIS USB Attenuator driver library interface
*
* This file describes the external interface to the OASIS USB Attenuator
* driver and provides the definitios for proper communication
* driver and provides the definitio
n
s for proper communication
* with the device
*
* @author Tomasz Włostowski <tomasz.wlostowski@cern.ch>
...
...
@@ -25,22 +27,22 @@ extern "C" {
* \section intro_sec Introduction
*
* To be able to use the library API, you just need to include the
*
.
liboattnusb.h header file. Linkage requires the flag
* liboattnusb.h header file. Linkage requires the flag
* `-loattnusb` and, in addition, `-lftdi1 -ludev`, as these are
* used by the basic library. To wit:
*
* gcc -o test test.c \
* -L
/acc/local/L867/drv/oattn/1.0
/lib \
* -I
/acc/local/L867/drv/oattn/1.0
/include \
* -L
<install_path>
/lib \
* -I
<install_path>
/include \
* -loattnusb -lftdi1 -ludev
*
* In case the static version of the library is preferred, a more
* contorted incantation than
the above may be required
to
* the static library
version
in a foolproof manner:
* contorted incantation than
the above may be required to link
to
* the static library in a foolproof manner:
*
* gcc -o test test.c \
* -L
/acc/local/L867/drv/oattn/1.0
/lib \
* -I
/acc/local/L867/drv/oattn/1.0
/include \
* -L
<install_path>
/lib \
* -I
<install_path>
/include \
* -lftdi1 -ludev \
* -Wl,--push-state,-static \
* -loattnusb \
...
...
@@ -64,7 +66,7 @@ enum oattnusb_value_enum {
};
/**
* @brief Open a
msatt
device by LUN (not implemented)
* @brief Open a device by LUN (not implemented)
*
* A board is selected by lun, and a handle is returned for further
* reference to it.
...
...
@@ -76,7 +78,7 @@ enum oattnusb_value_enum {
int
oattnusb_open
(
int
lun
);
/**
* @brief Open a
msatt
device
* @brief Open a device
*
* Open OASIS USB attenuator with given serial number.
*
...
...
@@ -121,15 +123,15 @@ enum oattnusb_value_enum oattnusb_get_relay(int fd, int channel);
int
oattnusb_set_relay
(
int
fd
,
int
channel
,
enum
oattnusb_value_enum
val
);
/**
* @brief Gets the number of channels
(2 or 4)
* @brief Gets the number of channels
*
* @param fd Device handle identifying board
*
* @return
-1 on fail, 2 for MSATTN2 and 4 for MSATTN4
* @return
OATTNUSB_NUM_CHANNELS
*/
int
oattnusb_get_nchannels
(
int
fd
);
/* lib
msatt
version string */
/* lib
oattnusb
version string */
extern
const
char
*
const
liboattnusb_version_s
;
#ifdef __cplusplus
}
...
...
software/lib/usb-enum.c
View file @
490b9a22
...
...
@@ -4,6 +4,11 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
/**
* @file usb-enum.c
* @brief OASIS USB Attenuator driver library interface
*/
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
...
...
software/lib/usb-enum.h
View file @
490b9a22
/*
*
/*
* SPDX-FileCopyrightText: 2023 CERN (home.cern)
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
*/
/**
* @file usb-enum.h
* @brief OASIS USB Attenuator driver library interface
*
* This file describes the external interface to the OASIS USB Attenuator
* driver and provides the definitios for proper communication
* driver and provides the definitio
n
s for proper communication
* with the device
*
* @author David Cobas <dcobas AT cern.ch>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment