16FXlib
can4.h
Go to the documentation of this file.
1 
2 //*****************************************************************************
3 // Author : Nicolas Weber
4 // Created : 29.04.2010
5 // Revised : 07.05.2010
6 // Version : 0.1
7 // Target MCU : Fujitsu MB96300 series
8 //
9 // This program is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 3 of the License, or
12 // (at your option) any later version.
13 //
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 //
28 //*****************************************************************************
30 
31 #ifndef CAN4_H_
32 #define CAN4_H_
33 
34 #include "../inttypes.h"
35 
36 #define CAN4_MAX_PORT 31
37 #define CAN4_MAX_MSG_COUNT 31
38 
44 uint8_t can4_init(uint8_t address);
45 
52 
57 void can4_close(uint8_t port);
58 
68 uint8_t can4_send(uint8_t dest, uint8_t port, uint8_t* data, uint8_t len, uint8_t interrupt);
69 
77 uint8_t can4_getData(uint8_t port, uint8_t* data, uint8_t* source);
78 
79 #endif /* CAN4_H_ */
80 
uint8_t can4_getData(uint8_t port, uint8_t *data, uint8_t *source)
Definition: can4.c:121
uint8_t can4_open(uint8_t port)
Definition: can4.c:78
unsigned char uint8_t
Definition: inttypes.h:35
uint8_t can4_send(uint8_t dest, uint8_t port, uint8_t *data, uint8_t len, uint8_t interrupt)
Definition: can4.c:96
void can4_close(uint8_t port)
Definition: can4.c:270
uint8_t can4_init(uint8_t address)
Definition: can4.c:62