source: trunk/Cosy/incl/icanif.h@ 18233

Last change on this file since 18233 was 731, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 2.0 KB
Line 
1/*-----------------------------------------------------------------------------
2icanif.h -- Interface to ICANOS/2
3
4Copyright (c) 1994 JANZ Computer AG
5All Rights Reserved
6
7Created 94/10/11 by Soenke Hansen
8Version 1.6 of 96/10/31
9
10Timer and CAN controller indications, and received CAN messages are multiplexed
11"upwards" into a queue which as to be read with recv_ican() by the user.
12Requests to the timer management, the CAN controller and the acceptance
13filter are issued via function calls.
14
15-----------------------------------------------------------------------------*/
16
17#ifndef icanif_DEFINED
18#define icanif_DEFINED
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include "icanconf.h"
25#include "defs.h"
26#include "mican.h"
27#include "msg.h"
28#include "bcan.h"
29#include "afil.h"
30#include "timer.h"
31
32
33/* Initialize the multiplexer */
34extern void init_ican _PARAMS((void));
35
36/* Multiplex CAN messages from ICANOS in upwards queue */
37extern void mux_ican _PARAMS((struct message *));
38
39/* Multiplex timer messages from ICANOS in upwards queue */
40extern void mux_ican_tim _PARAMS((struct message *));
41
42/* User receives next message from ICANOS */
43extern struct message *recv_ican _PARAMS((void));
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* !icanif_DEFINED */
50#ifndef icanif_DEFINED
51#define icanif_DEFINED
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
57#include "icanconf.h"
58#include "defs.h"
59#include "mican.h"
60#include "msg.h"
61#include "bcan.h"
62#include "afil.h"
63#include "timer.h"
64
65/* Set Priority Boundaries */
66extern void set_prio_boundaries(WORD_t,WORD_t);
67
68/* Initialize the multiplexer */
69extern void init_ican _PARAMS((void));
70
71/* Multiplex messages from ICANOS in upwards queue for CAN-msgs */
72extern void mux_ican _PARAMS((struct message *));
73
74/* Multiplex messages from ICANOS in upwards queue for timer-msgs */
75extern void mux_ican_tim _PARAMS((struct message *));
76
77/* User receives next message from ICANOS */
78extern struct message *recv_ican _PARAMS((void));
79
80#ifdef __cplusplus
81}
82#endif
83
84#endif /* !icanif_DEFINED */
Note: See TracBrowser for help on using the repository browser.