#!   /usr/bin/env   python
#    coding: utf8

# Copyright CERN, 2012
# Author: Matthieu Cattin (CERN)
# Licence: GPL v2 or later.
# Website: http://www.ohwr.org
# Last modifications: 8/5/2012


# fmc-adc enhanced interrupt controller (eic) registers
FMC_ADC_EIC_REGS=['FMC-ADC EIC registers', {
        'IDR':[0x00, 'Interrupt disbale', {
                'TRIG':[0, 'Acquisition triggered', 0x1],
                'ACQ_END':[1, 'Acquisition finished', 0x1],
                'RESERVED':[2, 'Reserved', 0x3FFFFFFF]}],
        'IER':[0x04, 'Interrupt enable', {
                'TRIG':[0, 'Acquisition triggered', 0x1],
                'ACQ_END':[1, 'Acquisition finished', 0x1],
                'RESERVED':[2, 'Reserved', 0x3FFFFFFF]}],
        'IMR':[0x08, 'Interrupt enable mask', {
                'TRIG':[0, 'Acquisition triggered', 0x1],
                'ACQ_END':[1, 'Acquisition finished', 0x1],
                'RESERVED':[2, 'Reserved', 0x3FFFFFFF]}],
        'ISR':[0x0C, 'Interrupt status', {
                'TRIG':[0, 'Acquisition triggered', 0x1],
                'ACQ_END':[1, 'Acquisition finished', 0x1],
                'RESERVED':[2, 'Reserved', 0x3FFFFFFF]}]
        }]
