_out
    accordingly.  inflate() provides as much output as possible, until there
    is no more input data or no more space in the output buffer (see below
    about the flush parameter).

  Before the call of inflate(), the application should ensure that at least
  one of the actions is possible, by providing more input and/or consuming
  more output, and updating the next_* and avail_* values accordingly.
  The application can consume the uncompressed output when it wants, for
  example when the output buffer is full (avail_out == 0), or after each
  call of inflate(). If inflate returns Z_OK and with zero avail_out, it
  must be called again after making room in the output buffer because there
  might be more output pending.

    The flush parameter of inflate() can be Z_NO_FLUSH, Z_SYNC_FLUSH,
  Z_FINISH, or Z_BLOCK. Z_SYNC_FLUSH requests that inflate() flush as much
  output as possible to the output buffer. Z_BLOCK requests that inflate() stop
  if and when it gets to the next deflate block boundary. When decoding the
  zlib or gzip format, this will cause inflate() to return immediately after
  the header and before the first block. When doing a raw inflate, inflate()
  will go ahead and process the first block, and will return when it gets to
  the end of that block, or when it runs out of data.

    The Z_BLOCK option assists in appending to or combining deflate streams.
  Also to assist in this, on return inflate() will set strm->data_type to the
  number of unused bits in the last byte taken from strm->next_in, plus 64
  if inflate() is currently decoding the last block in the deflate stream,
  plus 128 if inflate() returned immediately after decoding an end-of-block
  code or decoding the complete header up to just before the first byte of the
  deflate stream. The end-of-block will not be indicated until all of the
  uncompressed data from that block has been written to strm->next_out.  The
  number of unused bits may in general be greater than seven, except when
  bit 7 of data_type is set, in which case the number of unused bits will be
  less than eight.

    inflate() should normally be called until it returns Z_STREAM_END or an
  error. However if all decompression is to be performed in a single step
  (a single call of inflate), the parameter flush should be set to
  Z_FINISH. In this case all pending input is processed and all pending
  output is flushed; avail_out must be large enough to hold all the
  uncompressed data. (The size of the uncompressed data may have been saved
  by the compressor for this purpose.) The next operation on this stream must
  be inflateEnd to deallocate the decompression state. The use of Z_FINISH
  is never required, but can be used to inform inflate that a faster approach
  may be used for the single inflate() call.

     In this implementation, inflate() always flushes as much output as
  possible to the output buffer, and always uses the faster approach on the
  first call. So the only effect of the flush parameter in this implementation
  is on the return value oVersion 4
SHEET 1 896 848
WIRE -432 -64 -432 -80
WIRE 16 -32 0 -32
WIRE 176 -32 80 -32
WIRE -528 -16 -528 -32
WIRE -256 16 -256 0
WIRE -432 32 -432 16
WIRE -352 32 -432 32
WIRE -288 32 -352 32
WIRE -432 48 -432 32
WIRE -144 48 -224 48
WIRE -128 48 -144 48
WIRE -96 48 -128 48
WIRE 0 48 0 -32
WIRE 0 48 -16 48
WIRE 64 48 0 48
WIRE 176 48 176 -32
WIRE 176 48 144 48
WIRE -288 64 -336 64
WIRE -528 80 -528 64
WIRE -256 96 -256 80
WIRE 64 128 64 112
WIRE -432 144 -432 128
WIRE -336 144 -336 64
WIRE -240 144 -336 144
WIRE -144 144 -144 48
WIRE -144 144 -160 144
WIRE 0 144 0 48
WIRE 32 144 0 144
WIRE 176 160 176 48
WIRE 176 160 96 160
WIRE 32 176 0 176
WIRE 64 208 64 192
WIRE -336 224 -336 144
WIRE -320 224 -336 224
WIRE -144 224 -144 144
WIRE -144 224 -256 224
WIRE -96 272 -144 272
WIRE 0 272 0 176
WIRE 0 272 -16 272
WIRE 48 272 0 272
WIRE 144 272 128 272
WIRE -128 352 -128 48
WIRE -112 352 -128 352
WIRE 0 352 -32 352
WIRE 16 352 0 352
WIRE 176 352 176 160
WIRE 176 352 96 352
WIRE 64 432 64 416
WIRE 0 448 0 352
WIRE 32 448 0 448
WIRE 176 464 96 464
WIRE 192 464 176 464
WIRE 288 464 272 464
WIRE 352 464 288 464
WIRE 32 480 0 480
WIRE 288 480 288 464
WIRE 64 512 64 496
WIRE -256 544 -256 528
WIRE -528 560 -592 560
WIRE -448 560 -464 560
WIRE -352 560 -352 32
WIRE -352 560 -368 560
WIRE -288 560 -352 560
WIRE 288 560 288 544
WIRE -144 576 -144 272
WIRE -144 576 -224 576
WIRE -112 576 -144 576
WIRE 0 576 0 480
WIRE 0 576 -32 576
WIRE 64 576 0 576
WIRE 176 576 176 464
WIRE 176 576 144 576
WIRE -288 592 -336 592
WIRE -592 608 -592 560
WIRE -256 624 -256 608
WIRE 0 656 0 576
WIRE 16 656 0 656
WIRE 176 656 176 576
WIRE 176 656 80 656
WIRE -336 672 -336 592
WIRE -240 672 -336 672
WIRE -144 672 -144 576
WIRE -144 672 -160 672
WIRE -592 704 -592 688
WIRE -336 752 -336 672
WIRE -320 752 -336 752
WIRE -144 752 -144 672
WIRE -144 752 -256 752
FLAG -528 80 0
FLAG 64 112 +V
FLAG -528 -32 +V
FLAG -592 704 0
FLAG 64 512 +V
FLAG 64 208 0
FLAG 64 416 0
FLAG -256 96 +V
FLAG -256 0 0
FLAG 144 272 0
FLAG -256 624 +V
FLAG -256 528 0
FLAG -432 144 0
FLAG -432 -80 +V
FLAG 288 560 0
FLAG 352 464 OUT
FLAG -592 560 IN
SYMBOL voltage -528 -32 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL res 160 32 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 20K
SYMBOL res 0 32 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 10K
SYMBOL voltage -592 592 R0
SYMATTR InstName V2
SYMATTR Value SINE(0 1 1K)
SYMBOL opamps\\LT1216 64 96 R0
SYMATTR InstName U1
SYMBOL opamps\\LT1216 64 528 M180
SYMATTR InstName U2
SYMBOL opamps\\LT1216 -256 112 M180
WINDOW 0 21 88 Left 2
WINDOW 3 20 41 Left 2
SYMATTR InstName U4
SYMBOL res 0 256 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL res 144 256 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 20K
SYMBOL res 112 336 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 10K
SYMBOL res -16 336 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value 10K
SYMBOL cap 80 -48 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 22p
SYMBOL res 160 560 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value 10K
SYMBOL res -16 560 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R8
SYMATTR Value 10K
SYMBOL cap 80 640 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value 22p
SYMBOL res -144 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R9
SYMATTR Value 11.3K
SYMBOL cap -256 208 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C3
SYMATTR Value 22p
SYMBOL opamps\\LT1216 -256 640 M180
WINDOW 0 19 91 Left 2
WINDOW 3 14 41 Left 2
SYMATTR InstName U3
SYMBOL res -144 656 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R10
SYMATTR Value 11.3K
SYMBOL cap -256 736 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C4
SYMATTR Value 22p
SYMBOL res -448 144 M180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R11
SYMATTR Value 10K
SYMBOL res -448 32 M180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R12
SYMATTR Value 20K
SYMBOL res -352 544 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R13
SYMATTR Value 1K
SYMBOL cap -528 576 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName C5
SYMATTR Value 10
SYMBOL res 288 448 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R14
SYMATTR Value 100K
SYMBOL cap 272 480 R0
SYMATTR InstName C6
SYMATTR Value 1
TEXT 256 672 Left 2 !.tran 1
TEXT -184 -152 Bottom 2 ;Single Supply, AC Coupled Input, RMS Calibrated, Average Detector
