public static extern MPRETURNCODE setDigitalIO(uint n, bool state, bool setnow, DIGITALOPT opt);
public static extern MPRETURNCODE getDigitalIO(uint n, out bool state, DIGITALOPT opt);