SerialConfiguration config = new SerialConfiguration( baudRate, this.bitCount,
this.stopBits, this.parity, this.bitEncoding, this.bitOrder, this.idleLevel );
AsyncSerialDataDecoder decoder = new AsyncSerialDataDecoder( config, this.context );
decoder.setProgressListener( this.progressListener );
decoder.setCallback( new SerialDecoderCallback()
{
@Override
public void onError( final int aChannelIdx, final ErrorType aType, final long aTime )
{
final int sampleIdx = data.getSampleIndex( aTime );