Use the PortIn class to read an underlying GPIO port as one value. This is much faster than BusIn because you can read a port in one go, but it is much less flexible because you are constrained by the port and bit layout of the underlying GPIO ports.
A mask can be supplied so only certain bits of a port are used, allowing other bits to be used for other classes.
|PortIn (PortName port, int mask=0xFFFFFFFF)|
|void||mode (PinMode mode)|
|operator int ()|