Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
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
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Software
Commits
225f4c62
Commit
225f4c62
authored
May 14, 2014
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: use generic header from ../kernel
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
3e42958c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
67 deletions
+2
-67
fmc-adc-100m14b4cha.c
lib/fmc-adc-100m14b4cha.c
+1
-0
fmc-adc-100m14b4cha.h
lib/fmc-adc-100m14b4cha.h
+0
-66
Makefile
libtools/Makefile
+1
-1
No files found.
lib/fmc-adc-100m14b4cha.c
View file @
225f4c62
...
...
@@ -23,6 +23,7 @@
#include <sys/time.h>
#include <linux/zio-user.h>
#include <fmc-adc-100m14b4cha.h>
#include "fmcadc-lib.h"
#include "fmcadc-lib-int.h"
...
...
lib/fmc-adc-100m14b4cha.h
deleted
100644 → 0
View file @
3e42958c
/*
* The ADC library for the specific card
*
* Copyright (C) 2014 CERN (www.cern.ch)
* Author: Federico Vaga <federico.vaga@cern.ch>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2 as published by the Free Software Foundation or, at your
* option, any later version.
*/
#ifndef FMCA_ADC_100MA4B4CHA_H_
#define FMCA_ADC_100MA4B4CHA_H_
#define FA_UTC_CLOCK_NS 8
/*
* Trigger Extended Attribute Enumeration
*/
enum
fa_trig_ext_attributes
{
/*
* The trigger extended attribute order is the same in the declaration
* and in the zio_control, so we can always use enumeration. But, the
* enumeration must start with 0 followed by only consecutive value.
*
* NOTE: this values are temporary copied from the adc driver, so
* do not change this enum
*/
ZFAT_ATTR_EXT
=
0
,
ZFAT_ATTR_POL
,
ZFAT_ATTR_INT_CHAN
,
ZFAT_ATTR_INT_THRES
,
ZFAT_ATTR_DELAY
,
};
/*
* Device Extended Attribute Enumeration
*/
enum
fa_dev_ext_attributes
{
/*
* NOTE: At the moment the only extended attributes we have in
* the device hierarchy are in the cset level, so we can safely
* start from index 0
* NOTE: this values are temporary copied from the adc driver, so
* do not change this enum
*/
ZFAD_ATTR_DECI
=
0
,
ZFAD_ATTR_CH0_OFFSET
,
ZFAD_ATTR_CH1_OFFSET
,
ZFAD_ATTR_CH2_OFFSET
,
ZFAD_ATTR_CH3_OFFSET
,
ZFAD_ATTR_CH0_VREF
,
ZFAD_ATTR_CH1_VREF
,
ZFAD_ATTR_CH2_VREF
,
ZFAD_ATTR_CH3_VREF
,
ZFAD_ATTR_CH0_50TERM
,
ZFAD_ATTR_CH1_50TERM
,
ZFAD_ATTR_CH2_50TERM
,
ZFAD_ATTR_CH3_50TERM
,
ZFAD_ATTR_ACQ_START_S
,
ZFAD_ATTR_ACQ_START_C
,
ZFAD_ATTR_ACQ_START_F
,
};
#endif
/* FMCA_ADC_100MA4B4CHA_H_ */
libtools/Makefile
View file @
225f4c62
...
...
@@ -3,7 +3,7 @@ DESTDIR ?= /usr/local
LIBADC
=
../lib/
ZIO
?=
../zio
CFLAGS
=
-Wall
-g
-ggdb
-I
$(LIBADC)
-I
$(ZIO)
/include
$(EXTRACFLAGS)
CFLAGS
=
-Wall
-g
-ggdb
-I
$(LIBADC)
-I
$(ZIO)
/include
-I
../kernel
$(EXTRACFLAGS)
LDFLAGS
=
-L
$(LIBADC)
-lfmcadc
-lpthread
-lrt
DEMOS
:=
fald-simple-acq fald-acq fald-trg-cfg
...
...
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