|
Defines |
#define | true 1 |
#define | false 0 |
#define | NULL (void *) 0 |
#define | DATA_LENGTH 8 |
#define | FASE_JUMP 2 |
#define | FASE_PROP 2 |
#define | FASE_SEG1 3 |
#define | FASE_SEG2 2 |
#define | BRP 3 |
Typedefs |
typedef unsigned char | bool |
typedef unsigned char | byte |
typedef unsigned int | word |
Enumerations |
enum | CAN_STATUS_RX {
CAN_STATUS_ERROR = 0b10000000,
CAN_STATUS_RXINVALIDMSG = 0b01000000,
CAN_STATUS_RXOVERFLOW = 0b00010000,
CAN_STATUS_RXOVERFLOWALL = 0b00001000,
CAN_STATUS_RXOVERFLOW0 = 0b00000100,
CAN_STATUS_RXOVERFLOW1 = 0b00000010
} |
Functions |
void | myCANInitialize (word mask, word filter1, word filter2) |
bool | myCANSendMessage (word id, byte *data, byte length) |
bool | myCANSendMessage0 (word id, byte *data, byte length) |
bool | myCANSendMessage1 (word id, byte *data, byte length) |
bool | myCANSendMessage2 (word id, byte *data, byte length) |
bool | myCANReceiveMessage (word *id, byte *data, byte *length, enum CAN_STATUS_RX *warnings) |
bool | myCANReceiveMessage0 (word *id, byte *data, byte *length, enum CAN_STATUS_RX *status) |
bool | myCANReceiveMessage1 (word *id, byte *data, byte *length, enum CAN_STATUS_RX *status) |