def METHOD_NAME(bus, cs, wlen, rlen, wdata):
    yield from bus.write(SPI_XFER_LEN_READ, rlen)
    yield from bus.write(SPI_XFER_LEN_WRITE, wlen)
    yield from bus.write(SPI_SEL, cs & 0xFF)
    yield from bus.write(SPI_DATA_WRITE, (wdata >> 24) & 0xFF)
    yield from bus.write(SPI_DATA_WRITE + 1, (wdata >> 16) & 0xFF)
    yield from bus.write(SPI_DATA_WRITE + 2, (wdata >> 8) & 0xFF)
    yield from bus.write(SPI_DATA_WRITE + 3, wdata & 0xFF)
    yield