drivers/ecos_lpc2138_sja1000/sja1000.h
author frdupin
Wed, 07 Feb 2007 12:27:05 +0100
changeset 88 b6e0b91d073a
parent 0 4472ee7c6c3e
permissions -rw-r--r--
pointer bogue for *(d->iam_a_slave)
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
/*
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     2
This file is part of CanFestival, a library implementing CanOpen Stack.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     3
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     4
 Author: Christian Fortin (canfestival@canopencanada.ca)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     5
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     6
See COPYING file for copyrights details.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     7
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     8
This library is free software; you can redistribute it and/or
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     9
modify it under the terms of the GNU Lesser General Public
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    10
License as published by the Free Software Foundation; either
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    11
version 2.1 of the License, or (at your option) any later version.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
This library is distributed in the hope that it will be useful,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
but WITHOUT ANY WARRANTY; without even the implied warranty of
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    16
Lesser General Public License for more details.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    17
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    18
You should have received a copy of the GNU Lesser General Public
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    19
License along with this library; if not, write to the Free Software
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    21
*/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    23
#if !defined(_SJA1000_H_)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
#define _SJA1000_H_
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
#define MOD 0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    27
#define RM 0 /* RM 1=reset 0 = normal */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    28
#define bustiming0 6
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    29
#define OCMODE1 1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    30
#define OCMODE0 0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    31
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    32
#define SJW1 7
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    33
#define SJW0 6
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    34
#define BRP5 5
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    35
#define BRP4 4
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    36
#define BRP3 3
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    37
#define BRP2 2
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    38
#define BRP1 1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    39
#define BRP0 0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    40
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    41
#define CDO 3 /* 1=clear data overun status bit */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    42
#define SAM 7
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    43
#define TSEG22 6
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    44
#define TSEG21 5
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    45
#define TSEG20 4
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    46
#define TSEG13 3
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    47
#define TSEG12 2
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    48
#define TSEG11 1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    49
#define TSEG10 0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    50
#define OCTP1 7
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    51
#define OCTN1 6
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    52
#define OCPOL1 5
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    53
#define OCTP0 4
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    54
#define OCTN0 3
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    55
#define OCPOL0 2
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    56
#define OCMODE1 1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    57
#define OCMODE0 0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    58
#define clockdivider 31
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    59
#define CANmode 7 /* 1= PELICAN */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    60
#define CBP 6 /* 1= bypass comparator */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    61
#define RXINTEN 5 /* 1= receive interrupt from tx */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    62
#define clockoff 3 /* 1= disabled */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    63
#define CD2 2
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    64
#define CD1 1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    65
#define CD0 0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    66
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    67
#define AFM 3 /* AFM 1=single 0=dual acceptance filter */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    68
#define STM 2 /* STM 1=self test 0= norma */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    69
#define IER 4
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    70
#define bustiming1 7
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    71
#define outputcontrol 8
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    72
#define TXIDENTIFIER1 17
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    73
#define TXIDENTIFIER2 18
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    74
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    75
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    76
#endif