==== GetInputMode ==== Get the input mode on a native ezeio input. === Description === GetInputMode( inputno ) This will get the hardware input mode on a ezeio input. The command only works on native ezeio inputs - on the ezeio controller or ezeio expansion I/O devices. Third party modules use different methods to change input configuration. === Parameters === | ''inputno'' | Input number to query. Inputs 1-8 are on the ezeio. Use "DVCn+inputno" for expansion devices | === Return value === ^ Value ^ Mode ^ Hardware config ^ Input unit ^ Range ^ ^ 0 | INMODE_10V | High impedance, >60kΩ | mV (Volt) | 0-10000mV | ^ 1 | INMODE_30mA | 200Ω shunt to ground | μA (current) | 0-30000μA | ^ 2 | INMODE_PULLUP | Weak pull-up to +5V, <1mA | Ohm (resistance) | 0-1000000Ω | ^ 3 | INMODE_TEST | | internal test mode | | Note that only the hardware mode is returned. While the SetInputMode command accepts various other modes, the only four possible hardware modes are the above. The various thermistor modes will all return as 2:INMODE_PULLUP. === Example usage === SetInputMode(3, INMODE_30mA); // Set input 3 on ezeio to measure current x = GetInputMode(3); // x will be assigned the value 1 (INMODE_30mA)