Macros used to access the TOC
More...
|
#define | TOC_LBA(n) ((n) & 0x00ffffff) |
| Get the FAD address of a TOC entry.
|
|
#define | TOC_ADR(n) ( ((n) & 0x0f000000) >> 24 ) |
| Get the address of a TOC entry.
|
|
#define | TOC_CTRL(n) ( ((n) & 0xf0000000) >> 28 ) |
| Get the control data of a TOC entry.
|
|
#define | TOC_TRACK(n) ( ((n) & 0x00ff0000) >> 16 ) |
| Get the track number of a TOC entry.
|
|
Macros used to access the TOC
◆ TOC_ADR
#define TOC_ADR |
( |
| n | ) |
( ((n) & 0x0f000000) >> 24 ) |
Get the address of a TOC entry.
- Parameters
-
n | The entry from the TOC to look at. |
- Returns
- The entry's address.
◆ TOC_CTRL
#define TOC_CTRL |
( |
| n | ) |
( ((n) & 0xf0000000) >> 28 ) |
Get the control data of a TOC entry.
- Parameters
-
n | The entry from the TOC to look at. |
- Returns
- The entry's control value.
◆ TOC_LBA
#define TOC_LBA |
( |
| n | ) |
((n) & 0x00ffffff) |
Get the FAD address of a TOC entry.
- Parameters
-
n | The actual entry from the TOC to look at. |
- Returns
- The FAD of the entry.
◆ TOC_TRACK
#define TOC_TRACK |
( |
| n | ) |
( ((n) & 0x00ff0000) >> 16 ) |
Get the track number of a TOC entry.
- Parameters
-
n | The entry from the TOC to look at. |
- Returns
- The entry's track.