Lines Matching defs:this

16    along with this program.  If not, see <https://www.gnu.org/licenses/>.
19 additional uses of the libraries contained in this release of SANE.
22 to produce an executable, this does not by itself cause the
33 those changes may be distributed with this exception intact.
36 whether to permit this exception to apply to your modifications.
37 If you do not wish that, delete this exception notice.
82 TState DoInit(TInstance *this)
111 return RegWriteArray(this, R_ALL, 74, uchRegs2466);
123 TState DoReset(TInstance *this)
125 RegWrite(this,0x43, 1, 0x03); /* #1533[038.1] */
126 RegWrite(this,0x43, 1, 0x03); /* #1534[038.1] */
127 RegRead(this,R_POS, 2); /*=0x1375*/ /* #1535[038.6] */
128 RegWrite(this,R_CTL, 1, 0x39); /* #1536[038.6] */
156 RegWriteArray(this,R_ALL, 74, uchRegs1537);
159 RegWrite(this,R_CTL, 1, 0x39); /* #1538[038.6] */
160 RegWrite(this,R_CTL, 1, 0x79); /* #1539[038.7] */
161 RegWrite(this,R_CTL, 1, 0xF9); /* #1540[038.7] */
162 WaitWhileScanning(this,2);
164 RegWrite(this,R_CTL, 1, 0x39); /* #1542[038.7] */
165 RegWrite(this,0x43, 1, 0x07); /* #1543[038.7] */
166 WaitWhileBusy(this,2);
168 RegWrite(this,0x32, 2, 0x354D); /* #1545[038.7] */
169 RegWrite(this,0x34, 1, 0xC3); /* #1546[038.7] */
170 RegWrite(this,0x49, 1, 0x9E); /* #1547[038.7] */
184 TState WaitWhileBusy(TInstance *this, int cSecs)
191 if ((value=(int)RegRead(this,R_CTL,1)) & 0x80)
196 return SetError(this,SANE_STATUS_IO_ERROR,"Timeout while waiting for CTL");
208 TState WaitWhileScanning(TInstance *this, int cSecs)
215 if ((value=(int)RegRead(this,R_CSTAT, 1)) & 0x80)
220 return SetError(this,SANE_STATUS_IO_ERROR,"Timeout while waiting for CSTAT");
235 TState DoLampSwitch(TInstance *this, int nPattern)
237 return RegWrite(this, R_LMP, 1, nPattern);
249 TState UploadGammaTable(TInstance *this, int iByteAddress, SANE_Int *pnGamma)
257 if (!puchGamma) return SetError(this,SANE_STATUS_NO_MEM,"gamma buffer");
267 rc=MemWriteArray(this,(i+iByteAddress)>>1,0x1000,puchGamma+i);
279 TState UploadGainCorrection(TInstance *this, int iTableOffset)
292 iOff=this->param.x/2+this->calibration.xMargin;
294 RegWrite(this,0x3D,1,0x0F | 0x80); /* 10XXXXXX : one offset table */
295 RegWrite(this,0x3F,1, iTableOffset==0x6000 ? 0x18 : 0x08); /* 16KB gain at 0x06000 or 0x02000 */
298 uwGain=this->calibration.achStripeY[i]<<4;
303 MemWriteArray(this,(iTableOffset+i)>>1,0x1000,((unsigned char*)aGain)+i);