KallistiOS  ##version##
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros
CD-ROM TOC access macros

Macros

#define TOC_LBA(n)   ((n) & 0x00ffffff)
 Get the FAD address of a TOC entry. More...
 
#define TOC_ADR(n)   ( ((n) & 0x0f000000) >> 24 )
 Get the address of a TOC entry. More...
 
#define TOC_CTRL(n)   ( ((n) & 0xf0000000) >> 28 )
 Get the control data of a TOC entry. More...
 
#define TOC_TRACK(n)   ( ((n) & 0x00ff0000) >> 16 )
 Get the track number of a TOC entry. More...
 

Detailed Description

Macro Definition Documentation

#define TOC_ADR (   n)    ( ((n) & 0x0f000000) >> 24 )

Get the address of a TOC entry.

Parameters
nThe entry from the TOC to look at.
Returns
The entry's address.
#define TOC_CTRL (   n)    ( ((n) & 0xf0000000) >> 28 )

Get the control data of a TOC entry.

Parameters
nThe entry from the TOC to look at.
Returns
The entry's control value.
#define TOC_LBA (   n)    ((n) & 0x00ffffff)

Get the FAD address of a TOC entry.

Parameters
nThe actual entry from the TOC to look at.
Returns
The FAD of the entry.
#define TOC_TRACK (   n)    ( ((n) & 0x00ff0000) >> 16 )

Get the track number of a TOC entry.

Parameters
nThe entry from the TOC to look at.
Returns
The entry's track.