MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / digitalReadByte2

Function digitalReadByte2

wiringPi/wiringPi.c:2612–2625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2610}
2611
2612unsigned int digitalReadByte2 (void)
2613{
2614 uint32_t data = 0 ;
2615
2616 FailOnModel5("digitalReadByte2");
2617
2618 if (wiringPiMode == WPI_MODE_GPIO_SYS)
2619 {
2620 }
2621 else
2622 data = ((*(gpio + gpioToGPLEV [0])) >> 20) & 0xFF ; // First bank for these pins
2623
2624 return data ;
2625}
2626
2627
2628

Callers

nothing calls this directly

Calls 1

FailOnModel5Function · 0.85

Tested by

no test coverage detected