Definition at line 99 of file Pintest.h.
100{
102
103 void *systemThinksPortIs = (
void*)portOutputRegister(digitalPinToPort(
PIN));
104 RwReg systemThinksMaskIs = digitalPinToBitMask(
PIN);
105
106 Serial.print(
"Pin "); Serial.print(
PIN); Serial.print(
": Port ");
107
109 Serial.print("valid & mask ");
110 } else {
112 Serial.print(
getPort((
void*)systemThinksPortIs));
113 Serial.print(" & mask ");
114 }
115
117 Serial.println("valid.");
118 } else {
119 Serial.print(
"invalid, is "); Serial.print(
FastPin<PIN>::mask()); Serial.print(
" should be "); Serial.println(systemThinksMaskIs);
120 }
121}
const char * getPort(void *portRef)
static port_t mask()
Get the pin mask.
static port_ptr_t port()
Get the output state of the port.
References CheckPin(), getPort(), FastPin< PIN >::mask(), PIN, and FastPin< PIN >::port().
Referenced by CheckPin(), and loop().