![]() |
SAE Teensy ECU
IIT SAE Microcontroller programming
|
Echo can messages with a delay. More...
#include "stdint.h"#include "stdlib.h"Go to the source code of this file.
Namespaces | |
| namespace | Echo |
| This Module can be used to echo a CAN message over a network of two ECUs. | |
Functions | |
| void | Echo::echo (uint32_t delay, const uint32_t address, uint8_t buf[8]) |
| Send a can message to the back ECU from the front to then echo the same message at a set delay. | |
| void | Echo::echo (uint32_t delay, const uint32_t address, const uint8_t buf_0=0, const uint8_t buf_1=0, const uint8_t buf_2=0, const uint8_t buf_3=0, const uint8_t buf_4=0, const uint8_t buf_5=0, const uint8_t buf_6=0, const uint8_t buf_7=0) |
| Send a can message to the back ECU from the front to then echo the same message at a set delay. | |
| void | Echo::setup () |
| Initialize on receiving ECU to echo messages. | |