Japanese
PROGRAMMER'S GUIDECD communication I/F (CD part)
BackForward
CD communication interface user's manual (CD part)

Function details-5


8.2.5 Selector

For initial values of selector configuration parameters, see Resetting a Selector ( CDC_ResetSelector ).


 one
View
table
 Title

function specification

 Function

Setting the aperture frame address range

 Function Name[SR]

CDC_SetFiltRange

 No

5.1

Format
Sint32 CDC_SetFiltRange(Sint32 filtno, Sint32 fad, Sint32 fasnum)
input
filtno : Aperture number
fad :Start frame address
fasnum : Number of frame address sectors (0: Valid FAD range does not exist)
output
none
function value
Returns an error code.
end flag
ESEL flag
function
Set the frame address range for the aperture. If fasnum=0, all sectors will be output to the false output connector when enabling FAD range in aperture mode.

 one
View
table
 Title

function specification

 Function

Get aperture frame address range

 Function Name[S-]

CDC_GetFiltRange

 No

5.2

Format
Sint32 CDC_GetFiltRange(Sint32 filtno, Sint32 *fad, Sint32 *fasnum)
input
filtno: Aperture number
output
fad :Start frame address
fasnum : Number of frame address sectors
function value
Returns an error code.
function
Get the frame address range for the aperture.

 one
View
table
 Title

function specification

 Function

Setting aperture subheader conditions

 Function Name[SR]

CDC_SetFiltSubh

 No

5.3

Format
Sint32 CDC_SetFiltSubh(Sint32 filtno, CdcSubh *subh)
input
filtno : Aperture number
subh :Subheader condition
output
none
function value
Returns an error code.
end flag
ESEL flag
function
Set subheader conditions for aperture.

 one
View
table
 Title

function specification

 Function

Get aperture subheader conditions

 Function Name[S-]

CDC_GetFiltSubh

 No

5.4

Format
Sint32 CDC_GetFiltSubh(Sint32 filtno, CdcSubh *subh)
input
filtno: Aperture number
output
subh: Subheader condition
function value
Returns an error code.
function
Gets the subheader conditions for aperture.

 one
View
table
 Title

function specification

 Function

Setting the aperture mode

 Function Name[SR]

CDC_SetFiltMode

 No

5.5

Format
Sint32 CDC_SetFiltMode(Sint32 filtno, Sint32 fmode)
input
filtno : Aperture number
fmode : Aperture mode (lower 8 bits are valid)
output
none
function value
Returns an error code.
end flag
ESEL flag
function
Set the aperture mode for the aperture.

(1) Aperture mode
bit  7  6  5  4  3  2  1  0
    [ ][ ][-][ ][ ][ ][ ][ ]
     |  |     |  |  |  |  |
     |  |     |  |  |  |  +---- 1:File number (FN) selection enabled        0:Disabled
     |  |     |  |  |  +------- 1:Channel number (CN) selection enabled     0:Disabled
     |  |     |  |  +---------- 1:Submode (SM) selection enabled            0:Disabled
     |  |     |  +------------- 1:Coding information (CI) selection enabled 0:Disabled
     |  |     +---------------- 1:Invert subhead condition                  0:Do not
     |  |
     |  +---------------------- 1:Frame address range valid                 0:Disabled
     +------------------------- 1:Initialize aperture conditions            0:Do not

(2) Reversal of subheader conditions
When you invert a subheader condition, the output destination for the subheader condition is the opposite of what it would normally be. In other words, sectors that match the subheader condition are output to the false output connector, and sectors that do not match are output to the true output connector.

  1. Normal time
  2. ・Output to true output connector
     :The aperture FAD range matches [and] the subheader conditions match.
    ・Output to false output connector
     : The FAD range of the aperture does not match [or] the subheader conditions do not match.

  3. When inverted
  4. ・Output to true output connector
     : The FAD range of the aperture matches [and] the subheader conditions do not match.
    ・Output to false output connector
     : The FAD range of the aperture does not match [or] the subheader conditions match.

(3) Initialization of aperture conditions
When you initialize the aperture conditions, other bit specifications are ignored and the following initial values are set.
・Frame address range
 :Start FAD=0, FAD sector number=0
・Subheader conditions
 :FN, CN, SMMSK, SMVAL, CIMSK, CIVAL all 0
・Aperture mode
 : all bits = 0 

 one
View
table
 Title

function specification

 Function

Get aperture mode

 Function Name[S-]

CDC_GetFiltMode

 No

5.6

Format
Sint32 CDC_GetFiltMode(Sint32 filtno, Sint32 *fmode)
input
filtno: Aperture number
output
fmode: Aperture mode (lower 8 bits are valid)
function value
Returns an error code.
function
Gets the aperture mode for the aperture.

(1) Aperture mode
bit  7  6  5  4  3  2  1  0
    [-][ ][-][ ][ ][ ][ ][ ]
        |     |  |  |  |  |
        |     |  |  |  |  +---- 1:File number (FN) selection enabled         0:Disabled
        |     |  |  |  +------- 1:Channel number (CN) selection enabled      0:Disabled
        |     |  |  +---------- 1:Submode (SM) selection enabled             0:Disabled
        |     |  +------------- 1:Coding information (CI) selection enabled  0:Disabled
        |     +---------------- 1:Invert subhead condition                   0:Do not
        |
        +---------------------- 1:Frame address range valid                  0:Disabled

 one
View
table
 Title

function specification

 Function

Setting the aperture connection destination

 Function Name[SR]

CDC_SetFiltCon

 No

5.7

Format
Sint32 CDC_SetFiltCon(Sint32 filtno,Sint32 cflag,Sint32 bufno,Sint32 flnout)
input
filtno : Aperture number
cflag : Aperture connection flag (lower 8 bits are valid)
bufno : Buffer section number of true output connector connection destination (CDC_NUL_SEL: disconnected)
flnout : Aperture number of fake output connector connection destination (CDC_NUL_SEL: Disconnect)
output
none
function value
Returns an error code.
end flag
ESEL flag
function
Set the following connection destination for the aperture. Specifying CDC_NUL_SEL will disconnect the connection.
・True output connector →Buffer compartment input connector
・False output connector →Other aperture input connectors

(1) Aperture connection flag
bit  7  6  5  4  3  2  1  0
    [-][-][-][-][-][-][ ][ ]
                       |  |
                       |  +---- True output connector setting flag
                       |        1:Change settings (connect/disconnect to section)
                       |        0:Do not change (connection status remains unchanged)
                       |
                       +------- False output connector setting flag
                                1:Change settings (connect/disconnect to partition)
                                0:Do not change (connection status remains unchanged)

 one
View
table
 Title

function specification

 Function

Get the aperture connection destination

 Function Name[S-]

CDC_GetFiltCon

 No

5.8

Format
Sint32 CDC_GetFiltCon(Sint32 filtno, Sint32 *bufno, Sint32 *flnout)
input
filtno: Aperture number
output
bufno : Buffer section number of true output connector connection destination (CDC_NUL_SEL: Not connected)
flnout : Aperture number of false output connector connection destination (CDC_NUL_SEL: Not connected)
function value
Returns an error code.
function
Gets the aperture connection destination. Returns CDC_NUL_SEL if not connected.

 one
View
table
 Title

function specification

 Function

Reset selector (aperture, section)

 Function Name[SR]

CDC_ResetSelector

 No

5.9

Format Sint32 CDC_ResetSelector(Sint32 rflag, Sint32 bufno)
input
rflag : Reset flag (lower 8 bits are valid)
bufno :Buffer section number
output
none
function value
Returns an error code.
end flag
ESEL flag
function
Initializes the selector settings according to the reset flag value.
・When reset flag = 0
 : Erase all data in the specified buffer section.
・If the reset flag ≠ 0
 :Buffer partition number is ignored.

(1) Reset flag
bit  7  6  5  4  3  2  1  0
    [ ][ ][ ][ ][ ][ ][-][-]
     |  |  |  |  |  |
     |  |  |  |  |  +---------- 1:Initialize data in all buffer sections                0:Do not
     |  |  |  |  +------------- 1:Initialize all section output connectors              0:Do not
     |  |  |  +---------------- 1:Initialize all aperture conditions                    0:Do not
     |  |  +------------------- 1:Initialize all aperture input connectors              0:Do not
     |  +---------------------- 1:Initialize true output connector for all apertures    0:Do not
     +------------------------- 1:Initialize false output connector for all apertures   0:Do not
・Buffer section data
 : All will be deleted. (All data in the CD buffer will be erased.)
・Division output connector
 : All are unconnected.
・Aperture conditions
 : Same as initialization in aperture mode setting (CDC_SetFiltMode).
・Aperture input connector
 : All are unconnected.
・True output connector
 : Apertures and buffer sections with the same number are connected.
・False output connector
 : All are unconnected.

BackForward
PROGRAMMER'S GUIDECD communication I/F (CD part)
Copyright SEGA ENTERPRISES, LTD., 1997