Lines Matching defs:vref
150 #define READ_12BIT_DFR(x, adc, vref) (ADS_START | ADS_A2A1A0_d_ ## x \
152 (adc ? ADS_PD10_ADC_ON : 0) | (vref ? ADS_PD10_REF_ON : 0))
154 #define READ_Y(vref) (READ_12BIT_DFR(y, 1, vref))
155 #define READ_Z1(vref) (READ_12BIT_DFR(z1, 1, vref))
156 #define READ_Z2(vref) (READ_12BIT_DFR(z2, 1, vref))
158 #define READ_X(vref) (READ_12BIT_DFR(x, 1, vref))
920 int vref;
1025 vref = pdata->keep_vref_on;
1033 vref = 0;
1045 packet->read_y_cmd[0] = READ_Y(vref);
1054 packet->read_y = READ_Y(vref);
1091 packet->read_x_cmd[0] = READ_X(vref);
1101 packet->read_x = READ_X(vref);
1136 packet->read_z1 = READ_Z1(vref);
1168 packet->read_z2 = READ_Z2(vref);