public void SetBits_0_31(int bits) { short ret = PiGpioNativeMethods.setBits_0_31(unchecked ((uint)bits)); if (ret < 0) { throw new PiGPIOException(ret); } }