/home/thomas/development/delivery-check/repo/src/pin.cpp File Reference

#include <limits.h>
#include "pin.h"
#include "net.h"
Include dependency graph for pin.cpp:

Go to the source code of this file.

Enumerations

enum  { TRISTATE_ANALOG_VALUE = (INT_MAX / 2) + 1 }

Enumeration Type Documentation

anonymous enum
Enumerator:
TRISTATE_ANALOG_VALUE 

Analog value for a tristate potential.

This is the value used to set the analogValue when the pin output is TRISTATE. Originally, the value was simply (INT_MAX/2), but when I was debugging a glitch in a pin used as an open-drain output, I found that Pin::operator bool() chose to convert this to a LOW condition during a CalcNet() using MirroNet. Thus, I added one to the value and the glitch went away. This is probably not the absolute correct fix, but it works for this case.

Definition at line 31 of file pin.cpp.

Generated on Sun Feb 12 16:44:38 2012 for Simulavr by  doxygen 1.6.3