/** * @file me6000_ao.h * * @brief Meilhaus ME-6000 analog output subdevice class. * @note Copyright (C) 2007 Meilhaus Electronic GmbH (support@meilhaus.de) * @author Guenter Gebhardt */ /* * Copyright (C) 2007 Meilhaus Electronic GmbH (support@meilhaus.de) * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _ME6000_AO_H_ #define _ME6000_AO_H_ #include #include "mesubdevice.h" #include "mecirc_buf.h" #include "meioctl.h" #ifdef __KERNEL__ #define ME6000_AO_MAX_SUBDEVICES 16 #define ME6000_AO_FIFO_COUNT 8192 #define ME6000_AO_BASE_FREQUENCY 33000000L #define ME6000_AO_MIN_ACQ_TICKS 0LL #define ME6000_AO_MAX_ACQ_TICKS 0LL #define ME6000_AO_MIN_CHAN_TICKS 66LL #define ME6000_AO_MAX_CHAN_TICKS 0xFFFFFFFFLL #define ME6000_AO_MIN_RANGE -10000000 #define ME6000_AO_MAX_RANGE 9999694 #define ME6000_AO_MIN_RANGE_HIGH 0 #define ME6000_AO_MAX_RANGE_HIGH 49999237 #define ME6000_AO_MAX_DATA 0xFFFF #ifdef ME_SYNAPSE # define ME6000_AO_CIRC_BUF_SIZE_ORDER 8 // 2^n PAGES =>> Maximum value of 1MB for Synapse #else # define ME6000_AO_CIRC_BUF_SIZE_ORDER 5 // 2^n PAGES =>> 128KB #endif #define ME6000_AO_CIRC_BUF_SIZE PAGE_SIZE<