etisserant@0: /* etisserant@0: This file is part of CanFestival, a library implementing CanOpen Stack. etisserant@0: etisserant@0: Author: Christian Fortin (canfestival@canopencanada.ca) etisserant@0: etisserant@0: See COPYING file for copyrights details. etisserant@0: etisserant@0: This library is free software; you can redistribute it and/or etisserant@0: modify it under the terms of the GNU Lesser General Public etisserant@0: License as published by the Free Software Foundation; either etisserant@0: version 2.1 of the License, or (at your option) any later version. etisserant@0: etisserant@0: This library is distributed in the hope that it will be useful, etisserant@0: but WITHOUT ANY WARRANTY; without even the implied warranty of etisserant@0: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU etisserant@0: Lesser General Public License for more details. etisserant@0: etisserant@0: You should have received a copy of the GNU Lesser General Public etisserant@0: License along with this library; if not, write to the Free Software etisserant@0: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA etisserant@0: */ etisserant@0: etisserant@0: #if !defined(_SJA1000_H_) etisserant@0: #define _SJA1000_H_ etisserant@0: etisserant@0: #define MOD 0 etisserant@0: #define RM 0 /* RM 1=reset 0 = normal */ etisserant@0: #define bustiming0 6 etisserant@0: #define OCMODE1 1 etisserant@0: #define OCMODE0 0 etisserant@0: etisserant@0: #define SJW1 7 etisserant@0: #define SJW0 6 etisserant@0: #define BRP5 5 etisserant@0: #define BRP4 4 etisserant@0: #define BRP3 3 etisserant@0: #define BRP2 2 etisserant@0: #define BRP1 1 etisserant@0: #define BRP0 0 etisserant@0: etisserant@0: #define CDO 3 /* 1=clear data overun status bit */ etisserant@0: #define SAM 7 etisserant@0: #define TSEG22 6 etisserant@0: #define TSEG21 5 etisserant@0: #define TSEG20 4 etisserant@0: #define TSEG13 3 etisserant@0: #define TSEG12 2 etisserant@0: #define TSEG11 1 etisserant@0: #define TSEG10 0 etisserant@0: #define OCTP1 7 etisserant@0: #define OCTN1 6 etisserant@0: #define OCPOL1 5 etisserant@0: #define OCTP0 4 etisserant@0: #define OCTN0 3 etisserant@0: #define OCPOL0 2 etisserant@0: #define OCMODE1 1 etisserant@0: #define OCMODE0 0 etisserant@0: #define clockdivider 31 etisserant@0: #define CANmode 7 /* 1= PELICAN */ etisserant@0: #define CBP 6 /* 1= bypass comparator */ etisserant@0: #define RXINTEN 5 /* 1= receive interrupt from tx */ etisserant@0: #define clockoff 3 /* 1= disabled */ etisserant@0: #define CD2 2 etisserant@0: #define CD1 1 etisserant@0: #define CD0 0 etisserant@0: etisserant@0: #define AFM 3 /* AFM 1=single 0=dual acceptance filter */ etisserant@0: #define STM 2 /* STM 1=self test 0= norma */ etisserant@0: #define IER 4 etisserant@0: #define bustiming1 7 etisserant@0: #define outputcontrol 8 etisserant@0: #define TXIDENTIFIER1 17 etisserant@0: #define TXIDENTIFIER2 18 etisserant@0: etisserant@0: etisserant@0: #endif