function isVisible = SPIBaudrateVisibleCallback(hObj, SPIModule)
% SpiBaudrateVisibleCallback will decide the visibility of baudrate parameters 
% depending on SPI mode

% Copyright 2020-2022 The MathWorks, Inc.

isVisible = 0;
if codertarget.target.isCoderTarget(hObj.getConfigSet())
	SPIdata = codertarget.data.getParameterValue(hObj, SPIModule);
    isVisible = strcmp(SPIdata.Mode,'Controller');
end
end
