#define MSPFSinglePin ( _port,
_i2caddr,
_channel,
_out,
_pin,
_func,
_cont,
_result   )     __MSPFSinglePin(_port, _i2caddr, _channel, _out, _pin, _func, _cont, _result)

MSPFSinglePin function.

Control a single pin 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. Select the desired pin using PF_PIN_C1 or PF_PIN_C2. Valid functions are PF_FUNC_NOCHANGE, PF_FUNC_CLEAR, PF_FUNC_SET, and PF_FUNC_TOGGLE. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. Specify whether the mode by passing true (continuous) or false (timeout) as the final parameter. 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.
_out The Power Function output. See Power Function output constants.
_pin The Power Function pin. See Power Function pin constants.
_func The Power Function single pin function. See Power Function single pin function constants.
_cont Control whether the mode is continuous or timeout.
_result The function call result. NO_ERR or Communications specific errors.

Generated by  doxygen 1.6.2