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 the initial values of the selector setting parameters, see Reset Selectors (CDC_ResetSelector ).


 List
 Title

Function specifications

 Function

Aperture frame address range setting

 Function Name [SR]

CDC_SetFiltRange

 No

5.1

Form
Sint32 CDC_SetFiltRange (Sint32 filtno, Sint32 fad, Sint32 fasnum)
input
filtno : Aperture number
fad : Start frame address
fasnum : Number of frame address sectors (0: No valid FAD range)
output
none
Function value
Returns an error code.
End flag
ESEL flag
function
Set the frame address range for the aperture. When fasnum = 0, when the FAD range in aperture mode is enabled, all sectors are output to the fake output connector.

 List
 Title

Function specifications

 Function

Acquisition of aperture frame address range

 Function Name [S-]

CDC_GetFiltRange

 No

5.2.

Form
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
Gets the frame address range for the aperture.

 List
 Title

Function specifications

 Function

Aperture subheader condition setting

 Function Name [SR]

CDC_SetFiltSubh

 No

5.3 5.3

Form
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 the subheader condition for the aperture.

 List
 Title

Function specifications

 Function

Get aperture subheader condition

 Function Name [S-]

CDC_GetFiltSubh

 No

5.4

Form
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 condition for the aperture.

 List
 Title

Function specifications

 Function

Aperture mode setting

 Function Name [SR]

CDC_SetFiltMode

 No

5.5 5.5

Form
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 valid 1: Invalid | | | | | + ------- 1: Channel number (CN) selection valid 1: Invalid | | | | + ---------- 1: Submode (SM) selection enabled 1: Disabled | | | + ------------- 1: Coding information (CI) selection Enabled 1: Disabled | | + ---------------- 1: Invert subhead condition 1: Not | |
     | + ---------------------- 1: Frame address range valid 1: Invalid + ---------------- --------- 1: Initialize the aperture condition 1: Do not

(2) Inversion of subheader condition
If you invert the subheader condition, the output destination will be the opposite of the normal case for the subheader condition. That is, the sectors that match the subheader condition are output to the fake output connector, and the sectors that do not match are output to the true output connector.

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

  2. At the time of reversal
    ・ Output to true output connector
     : The FAD range of the aperture matches [and] the subheader conditions do not match
    ・ Output to fake output connector
     : The FAD range of the aperture does not match [or] The subheader condition matches

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

 List
 Title

Function specifications

 Function

Acquiring aperture mode

 Function Name [S-]

CDC_GetFiltMode

 No

5.6

Form
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 valid 1: Invalid | | | | + ------- 1: Channel number (CN) selection valid 1: Invalid | | | + ---------- 1: Submode (SM) selection enabled 1: Disabled | | + ------------- 1: Coding information (CI) selection enabled 1: Disabled | + ---------------- 1: Invert subhead condition 1: Do not |
        + ---------------------- 1: Frame address range valid 1: Invalid 


 List
 Title

Function specifications

 Function

Setting the connection destination of the aperture

 Function Name [SR]

CDC_SetFiltCon

 No

5.7

Form
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 : True output connector connection destination buffer partition number (CDC_NUL_SEL: detached)
flnout : Fake output connector connection destination aperture number (CDC_NUL_SEL: detached)
output
none
Function value
Returns an error code.
End flag
ESEL flag
function
Set the following connection destinations for the aperture. Specifying CDC_NUL_SEL disconnects the connection.
・ True output connector → Buffer partition input connector
・ Fake 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 the setting (connect / disconnect to partition)
                       | 0: Do not change (connection status does not change)
                       |
                       + ------- False output connector setting flag 1: Change the setting (connect / disconnect to partition)
                                0: Do not change (connection status does not change)

 List
 Title

Function specifications

 Function

Get the connection destination of the aperture

 Function Name [S-]

CDC_GetFiltCon

 No

5.8

Form
Sint32 CDC_GetFiltCon (Sint32 filtno, Sint32 * bufno, Sint32 * flnout)
input
filtno: Aperture number
output
bufno : True output connector Connection destination buffer partition number (CDC_NUL_SEL: Not connected)
flnout : Fake output connector connection destination aperture number (CDC_NUL_SEL: not connected)
Function value
Returns an error code.
function
Gets the connection destination of the aperture. Returns CDC_NUL_SEL if not connected.

 List
 Title

Function specifications

 Function

Reset selector (aperture, compartment)

 Function Name [SR]

CDC_ResetSelector

 No

5.9

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

(1) Reset flag
bit 7 6 5 4 3 2 1 0
    [] [] [] [] [] [] [-] [-]
     | | | | | |
     | | | | | + ---------- 1: Initialize the data of all buffer partitions 0: No | | | | + ------------- 1: Initialize all partition output connector 0: No | | | +----------------1: Initialize all aperture conditions 0: No | | + ---- --------------- 1: Initialize all throttle input connector 0: No | + -------------------- --1: Initialize the true output connector of all apertures 0: No + ------------------------- 1: False output of all apertures Initialize connector 0: No

(2) Initial value
Initialization sets the following initial values for all selectors.
 -Buffer data
 : All are erased. (All data in the CD buffer is erased.)
 -Partition output connector
 : All are disconnected.
・ Aperture conditions
 : Same as initialization in aperture mode setting (CDC_SetFiltMode).
・ Aperture input connector
 : All are disconnected.
・ True output connector
 : Apertures with the same number and buffer partitions are connected.
・ Fake output connector
 : All are disconnected.

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