#!   /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_TDC_EIC_REGS=['FMC-TDC EIC registers', {
        'IDR':[0x00, 'Interrupt disable', {
                'TSTAMPS':[0, 'Reached tstamps limit', 0x1],
                'TIME':[1, 'Reached time limit', 0x1],
                'ACAM_ERR':[2, 'ACAM error occured', 0x1],
                'RESERVED':[3, 'Reserved', 0x3FFFFFFF]}],
        'IER':[0x04, 'Interrupt enable', {
                'TSTAMPS':[0, 'Reached tstamps limit', 0x1],
                'TIME':[1, 'Reached time limit', 0x1],
                'ACAM_ERR':[2, 'ACAM error occured', 0x1],
                'RESERVED':[3, 'Reserved', 0x3FFFFFFF]}],
        'IMR':[0x08, 'Interrupt enable mask', {
                'TSTAMPS':[0, 'Reached tstamps limit', 0x1],
                'TIME':[1, 'Reached time limit', 0x1],
                'ACAM_ERR':[2, 'ACAM error occured', 0x1],
                'RESERVED':[3, 'Reserved', 0x3FFFFFFF]}],
        'ISR':[0x0C, 'Interrupt status', {
                'TSTAMPS':[0, 'Reached tstamps limit', 0x1],
                'TIME':[1, 'Reached time limit', 0x1],
                'ACAM_ERR':[2, 'ACAM error occured', 0x1],
                'RESERVED':[3, 'Reserved', 0x3FFFFFFF]}]
        }]
