function ret = DMAEnable(hObj, DMAModule)
%DMAENABLE Set the state of the auto-detect

% Copyright 2013 The MathWorks, Inc.


ret = 0;
if codertarget.target.isCoderTarget(hObj.getConfigSet())
    data = codertarget.data.getParameterValue(hObj, DMAModule);
    ret = data.EnableDMAChannel;
end
end