CARME-M4 BSP  V1.5
can_sja1000.h File Reference

SJA1000 specific declarations. More...

#include <carme.h>
+ Include dependency graph for can_sja1000.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SJA1000_MOD   0x00
 
#define SJA1000_CMR   0x01
 
#define SJA1000_SR   0x02
 
#define SJA1000_IR   0x03
 
#define SJA1000_IER   0x04
 
#define SJA1000_BTR0   0x06
 
#define SJA1000_BTR1   0x07
 
#define SJA1000_OCR   0x08
 
#define SJA1000_ALC   0x0b
 
#define SJA1000_ECC   0x0c
 
#define SJA1000_EWL   0x0d
 
#define SJA1000_RXERR   0x0e
 
#define SJA1000_TXERR   0x0f
 
#define SJA1000_RMC   0x1d
 
#define SJA1000_RBSA   0x1e
 
#define SJA1000_CDR   0x1f
 
#define SJA1000_ACR(_n_)   (0x10 +_n_)
 
#define SJA1000_AMR(_n_)   (0x14 +_n_)
 
#define SJA1000_RX_BUF(_n_)   (0x10 +_n_)
 
#define SJA1000_TX_BUF(_n_)   (0x10 +_n_)
 
#define SJA1000_MOD_SM   (1<<4)
 
#define SJA1000_MOD_AFM   (1<<3)
 
#define SJA1000_MOD_STM   (1<<2)
 
#define SJA1000_MOD_LOM   (1<<1)
 
#define SJA1000_MOD_RM   (1<<0)
 
#define SJA1000_CMR_SRR   (1<<4)
 
#define SJA1000_CMR_CDO   (1<<3)
 
#define SJA1000_CMR_RRB   (1<<2)
 
#define SJA1000_CMR_AT   (1<<1)
 
#define SJA1000_CMR_TR   (1<<0)
 
#define SJA1000_IR_BEI   (1<<7)
 
#define SJA1000_IR_ALI   (1<<6)
 
#define SJA1000_IR_EPI   (1<<5)
 
#define SJA1000_IER_BEIE   (1<<7)
 
#define SJA1000_IER_ALIE   (1<<6)
 
#define SJA1000_IER_EPIE   (1<<5)
 
#define SJA1000_IER_WUIE   (1<<4)
 
#define SJA1000_IER_DOIE   (1<<3)
 
#define SJA1000_IER_EIE   (1<<2)
 
#define SJA1000_IER_TIE   (1<<1)
 
#define SJA1000_IER_RIE   (1<<0)
 
#define SJA1000_FRAMEINFO_FF   (1<<7)
 
#define SJA1000_FRAMEINFO_RTR   (1<<6)
 
#define SJA1000_SR_BS   (1<<7)
 
#define SJA1000_SR_ES   (1<<6)
 
#define SJA1000_SR_TS   (1<<5)
 
#define SJA1000_SR_RS   (1<<4)
 
#define SJA1000_SR_TCS   (1<<3)
 
#define SJA1000_SR_TBS   (1<<2)
 
#define SJA1000_SR_DOS   (1<<1)
 
#define SJA1000_SR_RBS   (1<<0)
 
#define SJA1000_IR_WUI   (1<<4)
 
#define SJA1000_IR_DOI   (1<<3)
 
#define SJA1000_IR_EI   (1<<2)
 
#define SJA1000_IR_TI   (1<<1)
 
#define SJA1000_IR_RI   (1<<0)
 
#define SJA1000_CDR_CANMODE   (1<<7)
 
#define SJA1000_CDR_CBP   (1<<6)
 
#define SJA1000_CDR_RXINTEN   (1<<5)
 
#define SJA1000_CDR_CLOCK_OFF   (1<<3)
 

Detailed Description

SJA1000 specific declarations.

Version
1.0
Date
2007-04-13
Author
M. Muehlemann

This software can be used by students and other personal of the Bern University of Applied Sciences under the terms of the MIT license. For other persons this software is under the terms of the GNU General Public License version 2.

Copyright © 2013, Bern University of Applied Sciences. All rights reserved.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

GNU GENERAL PUBLIC LICENSE

This program 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Definition in file can_sja1000.h.