public byte ControlByte(bool aIsMaster, bool aFcb, bool aFcvDfc, LinkFunction aFunc) { var field = new LinkFunctionClass(); byte ret = field.LinkFunctionToType(aFunc); if (aIsMaster) { ret |= (byte)ControlMask.MASK_DIR; } if (aFcb) { ret |= (byte)ControlMask.MASK_FCB; } if (aFcvDfc) { ret |= (byte)ControlMask.MASK_FCV; } return(ret); }
public LinkFunction GetFuncEnum() { var f = new LinkFunctionClass(); return(f.LinkFunctionFromType((byte)(ctrl & (byte)ControlMask.MASK_FUNC_OR_PRM))); }