Skip to content

SPI burst read/write #105

@mingpepe

Description

@mingpepe

The onTransmit has no information about if it's the same transfer (chip select pin keep low). For my case, I need to simulate a SPI slave which has different behavior for different transfer length. The CS pin is controlled directly by hardware, currently I have no idea how to fix it. Any suggestion?

private doTX() {
if (!this.busy && !this.txFIFO.empty) {
const value = this.txFIFO.pull();
this.busy = true;
this.onTransmit(value);
this.fifosUpdated();
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions