NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
variant GetInput ( const byte &  port,
const byte  field 
)
inline

Get an input field value.

Return the value of the specified field of a sensor on the specified port.

Parameters
portThe sensor port. See Input port constants. A constant or a variable may be used (no expressions).
fieldAn input field constant. See Input field constants.
Returns
The input field value.
Examples:
ex_GetInput.nxc.