private void Update() { var value = (transferCompleteInterruptEnabled.Value && (transferCompleteReload.Value || transferComplete.Value)) || (transferInterruptEnabled.Value && transmitInterruptStatus.Value) || (receiveInterruptEnabled.Value && isReadTransfer.Value && dataPacket.Count > 0) || //RXNE is calculated dynamically (stopDetectionInterruptEnabled.Value && stopDetection.Value) || (nackReceivedInterruptEnabled.Value && false); //TODO: implement NACKF EventInterrupt.Set(value); }
private void Update() { EventInterrupt.Set(eventInterruptEnable.Value && (startBit.Value || addressSentOrMatched.Value || byteTransferFinished.Value || (bufferInterruptEnable.Value && (dataRegisterEmpty.Value || dataRegisterNotEmpty.Value)))); ErrorInterrupt.Set(errorInterruptEnable.Value && acknowledgeFailed.Value); }
private void Reset() { InterruptReset = true; EventInterrupt.Set(); }