Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Four new commands & some Sense #114

Merged
merged 7 commits into from
May 25, 2022
Merged

Four new commands & some Sense #114

merged 7 commits into from
May 25, 2022

Conversation

erichelgeson
Copy link
Owner

@erichelgeson erichelgeson commented May 21, 2022

Thanks to @marcelv-3 for the code for SCSI Read & Write Buffer.

Trivial impl of ReZero Unit & Send Diagnostic

SCSI Read Buffer (Thanks @marcelv-3!)
SCSI Write Buffer (Thanks @marcelv-3!)
ReZero Unit
src/BlueSCSI.cpp Outdated Show resolved Hide resolved
@marcelv-3
Copy link

you are right, the documentation:
WRITE_BUFFER
MODE_COMBINED_HEADER_DATA (0h)
In this mode, data to be transferred is preceded by a four-byte header. The four-byte header consists of all reserved bytes.
The PARAMETER LIST LENGTH field specifies the maximum number of bytes that shall be transferred from the Data-Out Buffer. This number includes four bytes of header, so the data length to be stored in the device server’s buffer is parameter list length minus four. The application client should attempt to ensure that the parameter list length is not greater than four plus the BUFFER CAPACITY field value that is returned in the header of the READ BUFFER command (mode 0h).

READ_BUFFER
MODE_COMBINED_HEADER_DATA (0h)
The four-byte READ BUFFER header is followed by data bytes from the buffer.
The BUFFER CAPACITY field specifies the total number of data bytes available in the buffer. The buffer capacity is not reduced to reflect the actual number of bytes written using the WRITE BUFFER command with combined header and data mode. Following the READ BUFFER header, the device server shall transfer data from the buffer

@erichelgeson erichelgeson changed the title Three new commands Four new commands & some Sense May 24, 2022
@erichelgeson erichelgeson merged commit c2c3397 into main May 25, 2022
@erichelgeson erichelgeson deleted the eric/newCmds branch May 25, 2022 02:38
androda pushed a commit to androda/F4_BlueSCSI that referenced this pull request Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants