using System;
using System.Collections.Generic;
using System.Text;

namespace everdrive3x.Hardware
{
    class CmdTable
    {
        public const byte CMD_NEW = (byte)'-';


        public const byte CMD_OK = (byte)'k';
        public const byte CMD_ERASE = (byte)'e';
        public const byte CMD_PROG_BLOCK = (byte)'p';
        public const byte CMD_DUMP_BLOCK = (byte)'d';
        public const byte CMD_FIRM_VERSION = (byte)'v';
        public const byte CMD_TEST_DEVICE = (byte)'t';
        public const byte CMD_SET_ADDR = (byte)'a';
        public const byte CMD_DEVICE_ID = (byte)'n';
        public const byte CMD_UNLOCK_BYPASS = (byte)'b';
        public const byte CMD_RESET_BYPASS = (byte)'B';
        public const byte CMD_NO_CART = (byte)'c';
        public const byte CMD_ERASE_BLOCKS = (byte)'S';
        public const byte CMD_WRITE_EEPROM = (byte)'w';
        public const byte CMD_READ_EEPROM = (byte)'r';
        public const byte CMD_BED_DATA = (byte)'!';
        public const byte CMD_RESET = (byte)'R';
        public const byte CMD_CRC_FOR_AREA = (byte)'C';
        public const byte CMD_ERASE_AUTO = (byte)'u';

        //bootloader cmd
        public const byte CMD_BOOT_EXIT_BOOT = (byte)'E';
        public const byte CMD_BOOT_WRITE_PAGE = (byte)'f';
        public const byte CMD_BOOT_READ = (byte)'g';
        public const byte CMD_BOOT_ERASE = (byte)'c';
        public const byte CMD_BOOT_ENTER_PROG_MODE = (byte)'m';
        public const byte CMD_BOOT_EXIT_PROG_MODE = (byte)'s';
        public const byte CMD_BOOT_APP_END = (byte)'A';
        public const byte CMD_BOOT_PAGE_SIZE = (byte)'z';

    }
}
