mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Moderately crudely hack in routing side information to the decoders; this is
needed by the Victor 9000 decoder to figure out the right clock rate.
This commit is contained in:
@@ -200,23 +200,23 @@ abort:
|
||||
return rawbits;
|
||||
}
|
||||
|
||||
nanoseconds_t AbstractDecoder::guessClock(Fluxmap& fluxmap, unsigned physicalTrack) const
|
||||
nanoseconds_t AbstractDecoder::guessClock(Fluxmap& fluxmap, unsigned physicalTrack, unsigned physicalSide) const
|
||||
{
|
||||
if (manualClockRate != 0.0)
|
||||
return manualClockRate * 1000.0;
|
||||
return guessClockImpl(fluxmap, physicalTrack);
|
||||
return guessClockImpl(fluxmap, physicalTrack, physicalSide);
|
||||
}
|
||||
|
||||
nanoseconds_t AbstractDecoder::guessClockImpl(Fluxmap& fluxmap, unsigned) const
|
||||
nanoseconds_t AbstractDecoder::guessClockImpl(Fluxmap& fluxmap, unsigned, unsigned) const
|
||||
{
|
||||
return fluxmap.guessClock();
|
||||
}
|
||||
|
||||
void AbstractSeparatedDecoder::decodeToSectors(const RawBits& bitmap, unsigned physicalTrack,
|
||||
void AbstractSeparatedDecoder::decodeToSectors(const RawBits& bitmap, unsigned physicalTrack, unsigned physicalSide,
|
||||
RawRecordVector& rawrecords, SectorVector& sectors)
|
||||
{
|
||||
rawrecords = extractRecords(bitmap);
|
||||
sectors = decodeToSectors(rawrecords, physicalTrack);
|
||||
sectors = decodeToSectors(rawrecords, physicalTrack, physicalSide);
|
||||
}
|
||||
|
||||
RawRecordVector AbstractSoftSectorDecoder::extractRecords(const RawBits& rawbits) const
|
||||
|
||||
Reference in New Issue
Block a user