NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char MSPFRepeat ( const byte  port,
const byte  i2caddr,
const byte  count,
const unsigned int  delay 
)
inline

MSPFRepeat function.

Repeat sending the last Power Function command using the mindsensors NRLink device. Specify the number of times to repeat the command and the number of milliseconds of delay between each repetition. The port must be configured as a Lowspeed port before using this function.

Parameters
portThe sensor port. See Input port constants.
i2caddrThe sensor I2C address. See sensor documentation for this value.
countThe number of times to repeat the command.
delayThe number of milliseconds to delay between each repetition.
Returns
The function call result. NO_ERR or Communications specific errors.
Examples:
ex_MSPFRepeat.nxc.