/** * Returns the acquisition result data. * * @return the acquisition data, never <code>null</code>. */ protected final AcquisitionResult getData() { return this.context.getData(); }
/** * {@inheritDoc} */ @Override public int getEndSampleIndex() { return this.toolContext.getEndSampleIndex(); }
/** * {@inheritDoc} */ @Override public int getStartSampleIndex() { return this.toolContext.getStartSampleIndex(); }
/** * This is the JTAG protocol decoder core. The decoded data are put to a * JTable object directly. * * @see javax.swing.SwingWorker#doInBackground() */ @Override public JTAGDataSet call() throws Exception { if ( LOG.isLoggable( Level.FINE ) ) { LOG.fine( "tmsmask = 0x" + Integer.toHexString( 1 << this.tmsIdx ) ); LOG.fine( "tckmask = 0x" + Integer.toHexString( 1 << this.tckIdx ) ); LOG.fine( "tdomask = 0x" + Integer.toHexString( 1 << this.tdoIdx ) ); LOG.fine( "tdimask = 0x" + Integer.toHexString( 1 << this.tdiIdx ) ); } final int startOfDecode = this.context.getStartSampleIndex(); final int endOfDecode = this.context.getEndSampleIndex(); // Initialize the channel labels + clear any existing annotations... prepareResults(); final JTAGDataSet decodedData = new JTAGDataSet( startOfDecode, endOfDecode, this.context.getData() ); // Perform the actual decoding of the data line(s)... clockDataOnEdge( decodedData, startOfDecode ); // Sort the data on the starting timestamp... decodedData.sort(); return decodedData; }
final long startOfDecode = timestamps[this.context.getStartSampleIndex()]; final long endOfDecode = timestamps[this.context.getEndSampleIndex()]; final BitLevel idleLevel = this.configuration.getIdleLevel();
/** * {@inheritDoc} */ @Override public int getChannels() { return this.toolContext.getChannels(); }
final int startOfDecode = this.context.getStartSampleIndex(); final int endOfDecode = this.context.getEndSampleIndex(); final int slaveSelected = slaveSelected( startOfDecode, endOfDecode ); final SPIDataSet decodedData = new SPIDataSet( startOfDecode, endOfDecode, this.context.getData() ); if ( slaveSelected >= 0 )
/** * {@inheritDoc} */ @Override protected boolean validateToolSettings() { boolean result = super.validateToolSettings(); if ( result && ( getContext().getChannels() != Ols.MAX_CHANNELS ) ) { JErrorDialog.showDialog( getOwner(), "Cannot start analysis!", "Not enough channels!", "For the Asm45 decoder, you need to have 32 channels enabled." ); result = false; } return result; }
public Asm45DataSet call() throws Exception final AcquisitionResult data = this.context.getData(); int startOfDecode = this.context.getStartSampleIndex(); int endOfDecode = this.context.getEndSampleIndex();
/** * {@inheritDoc} */ @Override public AcquisitionResult getData() { return this.toolContext.getData(); }
public UARTDataSet call() throws Exception final AcquisitionResult data = this.context.getData(); int startOfDecode = this.context.getStartSampleIndex(); final int endOfDecode = this.context.getEndSampleIndex();
/** * Creates a new {@link AsyncSerialDataDecoder} instance. * * @param aConfiguration * the configuration to use, cannot be <code>null</code>; * @param aContext * the tool context to use, cannot be <code>null</code>. */ public AsyncSerialDataDecoder( final SerialConfiguration aConfiguration, final ToolContext aContext ) { this.configuration = aConfiguration; this.context = aContext; this.dataSet = aContext.getData(); }
public DMX512DataSet call() throws Exception final AcquisitionResult data = this.context.getData(); final int[] values = data.getValues(); int startOfDecode = this.context.getStartSampleIndex(); final int endOfDecode = this.context.getEndSampleIndex();
/** * @param aDataSet * @param aChannelIndex * @param aByteValue * @param aType * @param aTimestamp */ private void reportData( final OneWireDataSet aDataSet, final long aStartTimestamp, final long aEndTimestamp, final int aByteValue ) { final AcquisitionResult data = this.context.getData(); final int startSampleIdx = Math.max( data.getSampleIndex( aStartTimestamp ), 0 ); final int endSampleIdx = Math.min( data.getSampleIndex( aEndTimestamp ) - 1, data.getTimestamps().length - 1 ); aDataSet.reportData( this.owLineIndex, startSampleIdx, endSampleIdx, aByteValue ); final String annotation = String.format( "0x%X (%c)", Integer.valueOf( aByteValue ), Integer.valueOf( aByteValue ) ); this.annotationListener.onAnnotation( new SampleDataAnnotation( this.owLineIndex, aStartTimestamp, aEndTimestamp, annotation ) ); }
public I2CDataSet call() throws Exception final AcquisitionResult data = this.context.getData(); int startOfDecode = this.context.getStartSampleIndex(); int endOfDecode = this.context.getEndSampleIndex();
/** * @param aDataSet * @param aChannelIndex * @param aByteValue * @param aType * @param aTimestamp */ private void reportReset( final OneWireDataSet aDataSet, final long aStartTimestamp, final long aEndTimestamp, final boolean aSlaveIsPresent ) { final AcquisitionResult data = this.context.getData(); final int startSampleIdx = Math.max( data.getSampleIndex( aStartTimestamp ), 0 ); final int endSampleIdx = Math.min( data.getSampleIndex( aEndTimestamp ) - 1, data.getTimestamps().length - 1 ); aDataSet.reportReset( this.owLineIndex, startSampleIdx, endSampleIdx, aSlaveIsPresent ); final String annotation = String.format( "Master reset, slave %s present", aSlaveIsPresent ? "is" : "is NOT" ); this.annotationListener.onAnnotation( new SampleDataAnnotation( this.owLineIndex, aStartTimestamp, aEndTimestamp, annotation ) ); } }
/** * @param aDataSet * @param aChannelIndex * @param aByteValue * @param aType * @param aTimestamp */ private void reportBusError( final OneWireDataSet aDataSet, final long aStartTimestamp ) { final AcquisitionResult data = this.context.getData(); final int startSampleIdx = Math.max( data.getSampleIndex( aStartTimestamp ), 0 ); aDataSet.reportBusError( this.owLineIndex, startSampleIdx ); this.annotationListener.onAnnotation( new SampleDataAnnotation( this.owLineIndex, aStartTimestamp, aStartTimestamp, OneWireDataSet.OW_BUS_ERROR ) ); }
public OneWireDataSet call() throws Exception final AcquisitionResult data = this.context.getData(); final int[] values = data.getValues();
final AcquisitionResult data = this.context.getData(); final Frequency<Integer> valueStats = new Frequency<Integer>();
final AcquisitionResult data = this.context.getData(); final int[] values = data.getValues();