Mmc_Controller::enabledma - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MMC_Controller::EnableDMA

Enables DMA transmission.
unsigned long EnableDMA(
void
);
Detailed description
■Parameter
None.
■Return value
Value
MMC_OK
MMERR_DEV_UNOPEN
MMERR_DMA_NOT_START_DRIVER
MMERR_DMA_INVALID_ADDRESS
MMERR_TIMEOUT_01
■Point
• When using the DMA transmission function, enable DMA transmission by the procedure below. If this method is not called
by the following procedure, it returns MMERR_DMA_INVALID_ADDRESS.
1.
Call the StartDMA method of the device driver class.
2.
Call the SetUserProgramReady method of the controller class and turn ON user program READY signal [Y0].
3.
Call the EnableDMA method of the controller class.
• This method writes "Enabled" to "[Cd.1150] DMA transmission enable request".
■Supported version
API version
1.00
■Reference
DisableDMA (Page 54 MMC_Controller::DisableDMA)
Description
Function succeeded
The Open method of the device driver class has not been called.
The DMA transmission driver is stopped. Call the StartDMA method.
The DMA destination address is incorrect.
The timeout time (1 second) has elapsed.
Software version
01
3 API LIBRARY DETAILS (BASIC FUNCTIONS)
3.2 MMC_Controller Class
3
53

Advertisement

Table of Contents
loading

Table of Contents