Add A2R flux format support

This commit is contained in:
Rebecca Wallander
2023-07-07 23:00:39 +02:00
parent a10f12ebf9
commit 42768bf169
2 changed files with 15 additions and 5 deletions

View File

@@ -115,4 +115,13 @@ public interface IFluxImage : IBaseImage
/// <param name="captureIndex">Which capture to read. See also <see cref="CapturesLength" /></param>
/// <param name="buffer">Buffer to store the data in</param>
ErrorNumber ReadFluxDataCapture(uint head, ushort track, byte subTrack, uint captureIndex, out byte[] buffer);
/// <summary>
/// An image may have tracks split into sub-steps. This returns the highest sub-step index for the track.
/// </summary>
/// <returns>Error number</returns>
/// <param name="head">Physical head (0-based)</param>
/// <param name="track">Physical track (position of the heads over the floppy media, 0-based)</param>
/// <param name="length">The number of captures</param>
ErrorNumber SubTrackLength(uint head, ushort track, out byte length);
}

View File

@@ -46,15 +46,16 @@ public interface IWritableFluxImage : IFluxImage, IWritableImage
{
/// <summary>Writes a flux capture.</summary>
/// <returns>Error number</returns>
/// <param name="resolution">The capture's resolution (sample rate) in picoseconds</param>
/// <param name="index">Flux representation of the index signal</param>
/// <param name="data">Flux representation of the data signal</param>
/// <param name="indexResolution">The index capture's resolution (sample rate) in picoseconds</param>
/// <param name="dataResolution">The capture's resolution (sample rate) in picoseconds</param>
/// <param name="indexBuffer">Flux representation of the index signal</param>
/// <param name="dataBuffer">Flux representation of the data signal</param>
/// <param name="head">Physical head (0-based)</param>
/// <param name="track">Physical track (position of the heads over the floppy media, 0-based)</param>
/// <param name="subTrack">Physical sub-step of track (e.g. half-track)</param>
/// <param name="captureIndex">Which capture slot to write to. See also <see cref="IFluxImage.CapturesLength" /></param>
ErrorNumber WriteFluxCapture(ulong resolution, byte[] index, byte[] data, uint head, ushort track, byte subTrack,
uint captureIndex);
ErrorNumber WriteFluxCapture(ulong indexResolution, ulong dataResolution, byte[] indexBuffer, byte[] dataBuffer,
uint head, ushort track, byte subTrack, uint captureIndex);
/// <summary>Writes a capture's index stream.</summary>
/// <returns>Error number</returns>