SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
Mirror Namespace Reference

Check and modify pin values over USB serial How to use - connect with a terminal that can both send and receive values compile and upload a binary with both debug and ascii mode enabled. More...

Functions

void setup (void)
 Setup a listener for going into mirror mode, dependent on which ECU is compiled.
 
void enterMirrorMode (void)
 Manually enter mirror mode, only returning when a set command is received.
 
void exitMirrorMode (void)
 Manually exit mirror mode.
 

Detailed Description

Check and modify pin values over USB serial How to use - connect with a terminal that can both send and receive values compile and upload a binary with both debug and ascii mode enabled.

Example Term https://www.der-hammer.info/pages/terminal.html

First send the decimal value '90' or whatever is defined in SerialCommand.def to enter Mirror mode.

Commands (all in decimal): byte != 255: print out this pin's value Sending a single number that is not 255 will return that corresponding pin's value if it exists

byte == 255 : Enter set pin mode Wait for subsequent bytes to set a pin value. The next byte received is the pin to set. The next four bytes (little endian) is the integer to set that pin to.

Note
If not all four bytes are received then those bytes are zeroed

This modules is only used for testing

Function Documentation

◆ exitMirrorMode()

void Mirror::exitMirrorMode ( void  )

Manually exit mirror mode.

Should be called by an external interrupt