NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char MSPFSingleOutputCST ( const byte  port,
const byte  i2caddr,
const byte  channel,
const byte  out,
const byte  func 

MSPFSingleOutputCST function.

Control a single output on a Power Function receiver set to the specified channel using the mindsensors NRLink device. Select the desired output using PF_OUT_A or PF_OUT_B. Valid functions are PF_CST_CLEAR1_CLEAR2, PF_CST_SET1_CLEAR2, PF_CST_CLEAR1_SET2, PF_CST_SET1_SET2, PF_CST_INCREMENT_PWM, PF_CST_DECREMENT_PWM, PF_CST_FULL_FWD, PF_CST_FULL_REV, and PF_CST_TOGGLE_DIR. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be configured as a Lowspeed port before using this function.

portThe sensor port. See Input port constants.
i2caddrThe sensor I2C address. See sensor documentation for this value.
channelThe Power Function channel. See Power Function channel constants.
outThe Power Function output. See Power Function output constants.
funcThe Power Function CST function. See Power Function CST options constants.
The function call result. NO_ERR or Communications specific errors.