|
16FXlib
|
Modules | |
| Internal configurations (can3.cfg.h) | |
Functions | |
| uint8_t | can3_init (uint8_t address) |
| uint8_t | can3_send (uint8_t dest, uint16_t uid, uint8_t *data, uint8_t len, uint8_t interrupt) |
| uint8_t | can3_open (uint16_t uid) |
| uint8_t | can3_maskedOpen (uint16_t uid, uint16_t idMask) |
| uint8_t | can3_getData (uint8_t buffer, uint8_t *data, uint8_t *source, uint16_t *id) |
| void | can3_close (uint8_t buffer) |
| void | can3_setAddress (uint8_t address) |
| uint8_t | can3_getAddress (void) |
| uint8_t | can3_registerIRQHandler (IRQHandler handler) |
| uint8_t | can3_removeIRQHandler (IRQHandler handler) |
CAN3 fixed values | |
| #define | CAN3_MAX_ADDRESS 63 |
| #define | CAN3_MAX_MESSAGELENGTH 8 |
| #define | CAN3_MULTICAST 255 |
Sends a message over the CAN controller to the destination.
| dest | Destination of the message (0 - CAN3_MAX_ADDRESS) |
| uid | Used identifier for this message |
| data | Pointer to byte data array |
| len | length of the data (1 - 8) |
| interrupt |
Checks if data was received and in case returns the data
| buffer | Buffer to check |
| data | Array to save data to (max 8 Byte) |
| source | pointer to save the source of this message (1 Byte) |
| id | pointer to save received id of this message (2 Byte) |
| void can3_close | ( | uint8_t | buffer | ) |
| void can3_setAddress | ( | uint8_t | address | ) |
| uint8_t can3_getAddress | ( | void | ) |
| uint8_t can3_registerIRQHandler | ( | IRQHandler | handler | ) |
| uint8_t can3_removeIRQHandler | ( | IRQHandler | handler | ) |
| #define CAN3_MAX_ADDRESS 63 |
| #define CAN3_MAX_MESSAGELENGTH 8 |