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

HTPFSingleOutputCST function.

Control a single output on a Power Function receiver set to the specified channel using the HiTechnic iRLink 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.

Parameters
portThe sensor port. See Input port constants.
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.
Returns
The function call result. NO_ERR or Communications specific errors.
Examples:
ex_HTPFSingleOutputCST.nxc.