| 1 | /*-----------------------------------------------------------------------------
|
|---|
| 2 | icanif.h -- Interface to ICANOS/2
|
|---|
| 3 |
|
|---|
| 4 | Copyright (c) 1994 JANZ Computer AG
|
|---|
| 5 | All Rights Reserved
|
|---|
| 6 |
|
|---|
| 7 | Created 94/10/11 by Soenke Hansen
|
|---|
| 8 | Version 1.6 of 96/10/31
|
|---|
| 9 |
|
|---|
| 10 | Timer 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.
|
|---|
| 12 | Requests to the timer management, the CAN controller and the acceptance
|
|---|
| 13 | filter are issued via function calls.
|
|---|
| 14 |
|
|---|
| 15 | -----------------------------------------------------------------------------*/
|
|---|
| 16 |
|
|---|
| 17 | #ifndef icanif_DEFINED
|
|---|
| 18 | #define icanif_DEFINED
|
|---|
| 19 |
|
|---|
| 20 | #ifdef __cplusplus
|
|---|
| 21 | extern "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 */
|
|---|
| 34 | extern void init_ican _PARAMS((void));
|
|---|
| 35 |
|
|---|
| 36 | /* Multiplex CAN messages from ICANOS in upwards queue */
|
|---|
| 37 | extern void mux_ican _PARAMS((struct message *));
|
|---|
| 38 |
|
|---|
| 39 | /* Multiplex timer messages from ICANOS in upwards queue */
|
|---|
| 40 | extern void mux_ican_tim _PARAMS((struct message *));
|
|---|
| 41 |
|
|---|
| 42 | /* User receives next message from ICANOS */
|
|---|
| 43 | extern 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
|
|---|
| 54 | extern "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 */
|
|---|
| 66 | extern void set_prio_boundaries(WORD_t,WORD_t);
|
|---|
| 67 |
|
|---|
| 68 | /* Initialize the multiplexer */
|
|---|
| 69 | extern void init_ican _PARAMS((void));
|
|---|
| 70 |
|
|---|
| 71 | /* Multiplex messages from ICANOS in upwards queue for CAN-msgs */
|
|---|
| 72 | extern void mux_ican _PARAMS((struct message *));
|
|---|
| 73 |
|
|---|
| 74 | /* Multiplex messages from ICANOS in upwards queue for timer-msgs */
|
|---|
| 75 | extern void mux_ican_tim _PARAMS((struct message *));
|
|---|
| 76 |
|
|---|
| 77 | /* User receives next message from ICANOS */
|
|---|
| 78 | extern struct message *recv_ican _PARAMS((void));
|
|---|
| 79 |
|
|---|
| 80 | #ifdef __cplusplus
|
|---|
| 81 | }
|
|---|
| 82 | #endif
|
|---|
| 83 |
|
|---|
| 84 | #endif /* !icanif_DEFINED */
|
|---|