def GetSpiReadCmdParameter(args):
    assert (args.spi_read_cmd in SPI_READ_CMD_LIST), ('Unsupported SPI read command 0x%x' % args.spi_read_cmd)
    return SPI_READ_CMD_LIST.index(args.spi_read_cmd)
def GetSpiReadCmdParameter(args):
    assert (args.spi_read_cmd in SPI_READ_CMD_LIST), ('Unsupported SPI read command 0x%x' % args.spi_read_cmd)
    return SPI_READ_CMD_LIST.index(args.spi_read_cmd)