コード例 #1
0
/**
 * Set Channel Values
 * This function takes a pin index, a number of values to be delt with, and an array of data values
 * Data is stored into numValues and data
 */
BOOL GetAllChanelValueHW(INT32 * data){
	int i;
	BYTE numValues;
	for(i=0;i<GetNumberOfIOChannels();i++){
		if(!isStremChannelMode(GetChannelMode(i)))
			GetChanelValueHW(i,&numValues,& data[i]);
	}
	return TRUE;
}
コード例 #2
0
int32_t GetChanelSingleValue(uint8_t pin){
	int32_t val;
	uint8_t size=1;
	GetChanelValueHW(pin, &size, &val);
	return val;
}