#define MSPFTrain ( _port,
_i2caddr,
_channel,
_func,
_result   )     __MSIRTrain(_port, _i2caddr, _channel, _func, TRUE, _result)

MSPFTrain function.

Control both outputs on a Power Function receiver set to the specified channel using the mindsensors NRLink device as if it were an IR Train receiver. Valid function values are TRAIN_FUNC_STOP, TRAIN_FUNC_INCR_SPEED, TRAIN_FUNC_DECR_SPEED, and TRAIN_FUNC_TOGGLE_LIGHT. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be configured as a Lowspeed port before using this function.

Parameters:
_port The sensor port. See NBC Input port constants.
_i2caddr The sensor I2C address. See sensor documentation for this value.
_channel The Power Function channel. See Power Function channel constants.
_func The Power Function train function. See PF/IR Train function constants.
_result The function call result. NO_ERR or Communications specific errors.

Generated by  doxygen 1.6.2