Ejemplo n.º 1
0
        private void sendCommand(uint command)
        {
            this.Log(LogLevel.Noisy, "QSPI Flash send command = 0x{0:X}", command);
            spiCommand = command;
            switch ((FlashCommand)(command & 0xff))
            {
            case FlashCommand.ReadID:
                break;

            case FlashCommand.ReadStatusRegister:
                break;

            case FlashCommand.WriteEnable:
                FlashStatus1.Write(0, (byte)FlashStatus1Bits.WEL);
                break;

            case FlashCommand.ExitContinuousMode:
                FlashStatus1.Reset();
                break;

            default:
                this.Log(LogLevel.Warning, "Unimplemented QSPI Flash command = 0x{0:X}", command);
                break;
            }
        }