NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool SetSensorDIAcclEx ( const byte  port,
byte  mode 
)
inline

SetSensorDIAcclEx function.

Configure DIAccl device on the specified port with the specified mode.

Parameters
portThe port to which the Dexter Industries IMU Accl sensor is attached. See the Input port constants group. You may use a constant or a variable.
modeThe mode of the device (2G, 4G, or 8G). See the Dexter Industries IMU Accelerometer mode control register constants group. You may use a constant or a variable.
Returns
The boolean function call result.
Examples:
ex_diaccl.nxc.