|
cbmimage
|
Classes | |
| struct | cbmimage_track_sector_s |
| Address on floppy: Track/Sector variant. More... | |
| struct | cbmimage_blockaddress_s |
| Address on drive. More... | |
Typedefs | |
| typedef struct cbmimage_track_sector_s | cbmimage_track_sector |
| Address on floppy: Track/Sector variant. | |
| typedef uint16_t | cbmimage_lba |
| Address on floppy: LBA variant. | |
| typedef struct cbmimage_blockaddress_s | cbmimage_blockaddress |
| Address on drive. | |
| typedef struct cbmimage_blockaddress_s cbmimage_blockaddress |
Address on drive.
| typedef uint16_t cbmimage_lba |
Address on floppy: LBA variant.
If the value is 0, this LBA is invalid
see also cbmimage_track_sector, struct cbmimage_track_sector_s
| typedef struct cbmimage_track_sector_s cbmimage_track_sector |
Address on floppy: Track/Sector variant.
see also cbmimage_lba
| int cbmimage_blockaddress_add | ( | cbmimage_fileimage * | image, |
| cbmimage_blockaddress * | blockresult, | ||
| cbmimage_blockaddress | block_adder ) |
add two block address together
| [in] | image | pointer to the image data |
| [in,out] | blockresult | pointer to a valid block address. On termination, it will contain the sum of the two block addresses. |
| [in] | block_adder | a valid block address. It is the block to add to the one in *blockresult. |
| int cbmimage_blockaddress_advance | ( | cbmimage_fileimage * | image, |
| cbmimage_blockaddress * | block ) |
advance a block address, going to the next block
| [in] | image | pointer to the image data |
| [in,out] | block | pointer to a valid block address. On termination, it will contain the next block address. |
| int cbmimage_blockaddress_advance_in_track | ( | cbmimage_fileimage * | image, |
| cbmimage_blockaddress * | block ) |
advance a block address, going to the next block in the same track
| [in] | image | pointer to the image data |
| [in,out] | block | pointer to a valid block address. On termination, it will contain the next block address. |
| int cbmimage_blockaddress_init_from_lba | ( | cbmimage_fileimage * | image, |
| cbmimage_blockaddress * | block ) |
initialize a block address from its T/S specification
| [in] | image | pointer to the image data |
| [in,out] | block | pointer to the block address that has already the LBA set |
| int cbmimage_blockaddress_init_from_lba_value | ( | cbmimage_fileimage * | image, |
| cbmimage_blockaddress * | block, | ||
| uint16_t | lba ) |
initialize a block address when LBA is given
| [in] | image | pointer to the image data |
| [out] | block | pointer to a block address. It does not need to be initialized in any way |
| [in] | lba | the LBA to write into the block address |
| int cbmimage_blockaddress_init_from_ts | ( | cbmimage_fileimage * | image, |
| cbmimage_blockaddress * | block ) |
initialize a block address from its T/S specification
| [in] | image | pointer to the image data |
| [in,out] | block | pointer to the block address that has already track and sector set |
| int cbmimage_blockaddress_init_from_ts_value | ( | cbmimage_fileimage * | image, |
| cbmimage_blockaddress * | block, | ||
| uint8_t | track, | ||
| uint8_t | sector ) |
initialize a block address when T/S are given
| [in] | image | pointer to the image data |
| [out] | block | pointer to a block address. It does not need to be initialized in any way |
| [in] | track | the track to write into the block address |
| [in] | sector | the sector to write into the block address |
|
static |
advance a block address, going to the next block of this image of in the same track
| [in] | image | pointer to the image data |
| [in,out] | block | pointer to a valid block address. On termination, it will contain the next block address. |
| [in] | do_not_advance_in_track |
|
|
static |
convert the LBA to T/S block address, generic version
| [in] | image | pointer to the image data |
| [in,out] | block | pointer to a block address that has an initialized LBA address |
|
static |
convert the T/S to LBA block address, generic version
| [in] | image | pointer to the image data |
| [in,out] | block | pointer to a block address with an initialized T/S address |