nico@207: nico@207:
nico@207:#include <can.h>
#include <objdictdef.h>
nico@207: Go to the source code of this file.
Data Structures | |
struct | t_pointerStack |
struct | canBusTime |
struct | canBusFilterInit |
struct | canBusInit |
Defines | |
#define | MAX_STACK_MSG_RCV 5 |
#define | NB_LINE_CAN 1 |
#define | CANOPEN_LINE_NUMBER_USED CAN0 |
Functions | |
char | canAddIdToFilter (UNS16 adrCAN, UNS8 nFilter, UNS16 id) |
char | canChangeFilter (UNS16 adrCAN, canBusFilterInit fi) |
char | canEnable (UNS16 adrCAN) |
char | canInit (UNS16 adrCAN, canBusInit bi) |
char | canInitClock (UNS16 adrCAN, canBusTime clk) |
char | canInit1Filter (UNS16 adrCAN, UNS8 nFilter, UNS16 ar, UNS16 mr) |
char | canInitFilter (UNS16 adrCAN, canBusFilterInit fi) |
char | canInitMode (UNS16 adrCAN) |
char | canInitModeQ (UNS16 adrCAN) |
char | canMsgTransmit (UNS16 adrCAN, Message msg) |
char | canSetInterrupt (UNS16 adrCAN) |
char | canSleepMode (UNS16 adrCAN) |
char | canSleepModeQ (UNS16 adrCAN) |
char | canSleepWupMode (UNS16 adrCAN) |
char | canTestInitMode (UNS16 adrCAN) |
char | canTestSleepMode (UNS16 adrCAN) |
Variables | |
volatile Message | stackMsgRcv [NB_LINE_CAN][MAX_STACK_MSG_RCV] |
Message | msgRcv |
volatile t_pointerStack | ptrMsgRcv [NB_LINE_CAN] |
canBusInit | bi |
#define CANOPEN_LINE_NUMBER_USED CAN0 | nico@207:
nico@207: nico@207:
nico@207: Definition at line 53 of file candriver.h. nico@207:
#define MAX_STACK_MSG_RCV 5 | nico@207:
nico@207: nico@207:
nico@207: Definition at line 38 of file candriver.h. nico@207:
#define NB_LINE_CAN 1 | nico@207:
nico@207: nico@207:
nico@207: Definition at line 46 of file candriver.h. nico@207:
nico@207:
char canAddIdToFilter | nico@207:( | nico@207:UNS16 | nico@207:adrCAN, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:nFilter, | nico@207:|
nico@207: | nico@207: | UNS16 | nico@207:id | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 210 of file canOpenDriver.c. nico@207:
nico@207: References CANIDAR0, CANIDAR2, CANIDAR4, CANIDAR6, canTestInitMode(), IO_PORTS_16, IO_PORTS_8, MSG_WAR, and UNS8. nico@207:
char canChangeFilter | nico@207:( | nico@207:UNS16 | nico@207:adrCAN, | nico@207:|
nico@207: | nico@207: | canBusFilterInit | nico@207:fi | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 250 of file canOpenDriver.c. nico@207:
nico@207: References canInitFilter(), canInitMode(), canInitModeQ(), canSetInterrupt(), canSleepMode(), canSleepModeQ(), and canTestInitMode(). nico@207:
char canEnable | nico@207:( | nico@207:UNS16 | nico@207:adrCAN | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 266 of file canOpenDriver.c. nico@207:
nico@207: References CANCTL1, and IO_PORTS_8. nico@207:
char canInit | nico@207:( | nico@207:UNS16 | nico@207:adrCAN, | nico@207:|
nico@207: | nico@207: | canBusInit | nico@207:bi | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 277 of file canOpenDriver.c. nico@207:
nico@207: References CANCTL0, CANCTL1, canBusInit::cane, canEnable(), canInitClock(), canInitFilter(), canInitMode(), canInitModeQ(), canSetInterrupt(), canSleepMode(), canSleepModeQ(), canTestInitMode(), canBusInit::clk, canBusInit::cswai, canBusInit::fi, IO_PORTS_8, canBusInit::listen, canBusInit::loopb, canBusInit::time, and canBusInit::wupm. nico@207:
char canInit1Filter | nico@207:( | nico@207:UNS16 | nico@207:adrCAN, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:nFilter, | nico@207:|
nico@207: | nico@207: | UNS16 | nico@207:ar, | nico@207:|
nico@207: | nico@207: | UNS16 | nico@207:mr | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 335 of file canOpenDriver.c. nico@207:
nico@207: References CANIDAR0, CANIDAR2, CANIDAR4, CANIDAR6, canTestInitMode(), IO_PORTS_8, MSG_WAR, and UNS8. nico@207:
char canInitClock | nico@207:( | nico@207:UNS16 | nico@207:adrCAN, | nico@207:|
nico@207: | nico@207: | canBusTime | nico@207:clk | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 313 of file canOpenDriver.c. nico@207:
nico@207: References canBusTime::brp, CANBTR0, CANBTR1, CANCTL1, canTestInitMode(), canBusTime::clksrc, IO_PORTS_8, MSG_WAR, canBusTime::samp, canBusTime::sjw, canBusTime::tseg1, and canBusTime::tseg2. nico@207:
char canInitFilter | nico@207:( | nico@207:UNS16 | nico@207:adrCAN, | nico@207:|
nico@207: | nico@207: | canBusFilterInit | nico@207:fi | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 364 of file canOpenDriver.c. nico@207:
nico@207: References CANIDAC, canBusFilterInit::canidar0, CANIDAR0, canBusFilterInit::canidar1, CANIDAR1, canBusFilterInit::canidar2, CANIDAR2, canBusFilterInit::canidar3, CANIDAR3, canBusFilterInit::canidar4, CANIDAR4, canBusFilterInit::canidar5, CANIDAR5, canBusFilterInit::canidar6, CANIDAR6, canBusFilterInit::canidar7, CANIDAR7, canBusFilterInit::canidmr0, CANIDMR0, canBusFilterInit::canidmr1, CANIDMR1, canBusFilterInit::canidmr2, CANIDMR2, canBusFilterInit::canidmr3, CANIDMR3, canBusFilterInit::canidmr4, CANIDMR4, canBusFilterInit::canidmr5, CANIDMR5, canBusFilterInit::canidmr6, CANIDMR6, canBusFilterInit::canidmr7, CANIDMR7, canTestInitMode(), canBusFilterInit::idam, IO_PORTS_8, and MSG_WAR. nico@207:
char canInitMode | nico@207:( | nico@207:UNS16 | nico@207:adrCAN | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 392 of file canOpenDriver.c. nico@207:
nico@207: References CANCTL0, canTestInitMode(), and IO_PORTS_8. nico@207:
char canInitModeQ | nico@207:( | nico@207:UNS16 | nico@207:adrCAN | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 401 of file canOpenDriver.c. nico@207:
nico@207: References CANCTL0, canTestInitMode(), and IO_PORTS_8. nico@207:
char canMsgTransmit | nico@207:( | nico@207:UNS16 | nico@207:adrCAN, | nico@207:|
nico@207: | nico@207: | Message | nico@207:msg | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 410 of file canOpenDriver.c. nico@207:
nico@207: References CANTBSEL, CANTFLG, CANTRSDTA, CANTRSID, CANTRSLEN, CANTRSPRI, Message::cob_id, Message::data, IO_PORTS_8, Message::len, MSG_WAR, Message::rtr, UNS8, and SHORT_CAN::w. nico@207:
char canSetInterrupt | nico@207:( | nico@207:UNS16 | nico@207:adrCAN | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 445 of file canOpenDriver.c. nico@207:
nico@207: References CANRIER, CANTIER, and IO_PORTS_8. nico@207:
char canSleepMode | nico@207:( | nico@207:UNS16 | nico@207:adrCAN | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 452 of file canOpenDriver.c. nico@207:
nico@207: References CANCTL0, canTestSleepMode(), and IO_PORTS_8. nico@207:
char canSleepModeQ | nico@207:( | nico@207:UNS16 | nico@207:adrCAN | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 466 of file canOpenDriver.c. nico@207:
nico@207: References CANCTL0, canTestInitMode(), canTestSleepMode(), IO_PORTS_8, and MSG_WAR. nico@207:
char canSleepWupMode | nico@207:( | nico@207:UNS16 | nico@207:adrCAN | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 480 of file canOpenDriver.c. nico@207:
nico@207: References CANCTL0, canTestInitMode(), canTestSleepMode(), IO_PORTS_8, and MSG_WAR. nico@207:
char canTestInitMode | nico@207:( | nico@207:UNS16 | nico@207:adrCAN | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 493 of file canOpenDriver.c. nico@207:
nico@207: References CANCTL1, and IO_PORTS_8. nico@207:
char canTestSleepMode | nico@207:( | nico@207:UNS16 | nico@207:adrCAN | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 499 of file canOpenDriver.c. nico@207:
nico@207: References CANCTL1, and IO_PORTS_8. nico@207:
nico@207:
canBusInit bi | nico@207:
nico@207: nico@207:
nico@207: nico@207:
volatile t_pointerStack ptrMsgRcv[NB_LINE_CAN] | nico@207:
nico@207: nico@207:
volatile Message stackMsgRcv[NB_LINE_CAN][MAX_STACK_MSG_RCV] | nico@207:
nico@207: nico@207:
nico@207: