TTK4155 Ping-pong project
|
Go to the source code of this file.
Functions | |
int | CAN_init (uint16_t mode) |
uint8_t | CAN_loopback (uint8_t data) |
void | CAN_transfer (uint8_t data) |
void | CAN_receive (int8_t *receive_array) |
int CAN_init | ( | uint16_t | mode | ) |
uint8_t CAN_loopback | ( | uint8_t | data | ) |
SET ARBRITARY VALUES FOR ID AND DATA LENGTH
< Load data into TX0 buffer
WAIT FOR RX BUFFER 0 INTERUPT
SET ARBRITARY VALUES FOR ID AND DATA LENGTH
< Load data into TX0 buffer
WAIT FOR RX BUFFER 0 INTERUPT
void CAN_receive | ( | int8_t * | receive_array | ) |
void CAN_transfer | ( | uint8_t | data | ) |
Send message on can bus.
data | Data to send on bus |