Title | Function | Function Name | No |
format Sint32 MPG_Init (Sint32 dscn) Input dscn: Display scanning method Output None Function value Error code Function Initializes the MPEG system. MPEG audio is always replayed when this initialization is performed. will be live. When using the MPEG library, this function must be called only once at the beginning. Not .
Remarks (a) Execute the following procedure within this function and return an error code.
Procedure | Error code |
|
|---|---|---|
1 | Perform a soft reset of the CD block (CDC_CdInit function). | If an error occurs, return |
2 | CDC_GetHwInfo function to check if the MPEG cartridge is installed. | If not installed, return |
3 | If MPEG cannot be used, | If the check fails, return |
4 | MPEG decoder initialization (CDC_MpInit function) is executed. | If an error occurs, return |
5 | MPEG interrupt mask setting (CDC_MpSetIntMsk function) is executed, and | If an error occurs, return |
6 | If a constant for PAL is specified for the display scan method, | If an error occurs, return |
(b) Call the GFS_Init function and STM_Init function after executing this function.