16FXlib
|
Modules | |
Transfer Level Access Configuration (can4.h) | |
Functions | |
uint8_t | can4_init (uint8_t address) |
uint8_t | can4_open (uint8_t port) |
void | can4_close (uint8_t port) |
uint8_t | can4_send (uint8_t dest, uint8_t port, uint8_t *data, uint8_t len, uint8_t interrupt) |
uint8_t | can4_getData (uint8_t port, uint8_t *data, uint8_t *source) |
Macros | |
#define | CAN4_MAX_PORT 31 |
#define | CAN4_MAX_MSG_COUNT 31 |
void can4_close | ( | uint8_t | port | ) |
Sends a message over the CAN controller to the destination. Automatically splits the messages.
dest | Destination of the message (0 - CAN3_MAX_ADDRESS) |
port | Port to send the message to |
data | Pointer to byte data array |
len | length of the data (1 - 512) |
interrupt |
Checks if data was received and in case returns the data
port | Port to be checked |
data | Array to save data to (max 512 Byte). If msg is longer than 8 Byte, data size of data array has to be multiple of 8!!! |
source | pointer to save the source of this message (1 Byte) |