function ret = DMAOneShotEnable(hObj, DMAModule)
%DMAOneShotEnable Set the state of the one shot mode for DMA channel

% Copyright 2018 The MathWorks, Inc.

ret = 0;
if codertarget.target.isCoderTarget(hObj.getConfigSet())
    data = codertarget.data.getParameterValue(hObj, DMAModule);
    if isequal(DMAModule, 'DMA_ch1')
        ret = ~data.SetCh1ToHigh;
    else
        ret = 1;
    end
end
end