SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
Echo.h
Go to the documentation of this file.
1
13
#ifndef __ECU_ECHO_H__
14
#define __ECU_ECHO_H__
15
16
#include "stdint.h"
17
#include "stdlib.h"
18
28
namespace
Echo
{
29
37
void
echo
(uint32_t delay,
const
uint32_t address, uint8_t buf[8]);
38
53
void
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);
54
58
void
setup
();
59
60
}
// namespace Echo
61
62
#endif
// __ECU_ECHO_H__
Echo
This Module can be used to echo a CAN message over a network of two ECUs.
Definition
Echo.h:28
Echo::setup
void setup()
Initialize on receiving ECU to echo messages.
Echo::echo
void 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.
libraries
Echo
Echo.h
Generated by
1.9.8