Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 private void Reset()
 {
     InterruptReset = true;
     EventInterrupt.Set();
 }