46 #ifndef CAN_LIBRARY_AVR_ 47 #define CAN_LIBRARY_AVR_ 79 #include "loaderconfiguration.h" 81 #include "canlibraryconfiguration.h" 82 #ifndef _CANLIBRARYCONFIGURATION_H_ 83 #error You need to #include the "configuration.h" file to set port and speed options. 87 #define CAN_BUFFEREMPTY -1 97 #ifdef FILTER_CAN_DEBUG 98 #define MTYPESYNCEMER 0x0080 99 #define NODE_ADDRESS_MASK 0x007F 123 #define NB_TX_MOB (NB_MOB - NB_RX_MOB) 126 #error You will need at least 1 object buffer to be able to transmit messages. 129 #error This version of canlib does not support more than 8 MOBs. 132 #define FIRST_TX_MOB NB_RX_MOB 228 void can_enableTransciever();
229 void can_disableTransciever();
232 #endif //CAN_LIBRARY_AVR_ This file contains the prototypes and the macros of the low level functions (drivers) of: ...
Definition: can_library.h:108
int8_t can_hasFreeTxBuffer()
Check if there are ant free transmitting MOBs.
Definition: can_library.c:68
uint8_t length
Definition: can_library.h:112
void can_close()
Disable driver & hardware.
Definition: can_library.c:153
uint8_t can_sendMessage(canMessage *m)
Sends a can message.
Definition: can_library.c:170
uint8_t can_getRxBufferLength()
Returns the number of messages in the buffer.
Definition: can_library.c:26
uint8_t data[8]
Definition: can_library.h:113
uint8_t can_init()
Initialize the bus and activate hardware.
Definition: can_library.c:91
uint32_t mesid
Definition: can_library.h:110
uint32_t cantime
Definition: can_library.h:109
int8_t can_getMessage(canMessage *m)
Gets a can message from the reception buffer.
Definition: can_library.c:202
uint8_t rtr
Definition: can_library.h:111