mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 05:29:43 +00:00
Sc53C94: reading current transfer count.
This commit is contained in:
parent
c54c1cdb65
commit
2c3a5c3b8f
@ -78,6 +78,10 @@ uint8_t Sc53C94::read(uint8_t reg_offset)
|
|||||||
uint8_t status, int_status;
|
uint8_t status, int_status;
|
||||||
|
|
||||||
switch (reg_offset) {
|
switch (reg_offset) {
|
||||||
|
case Read::Reg53C94::Xfer_Cnt_LSB:
|
||||||
|
return this->xfer_count & 0xFFU;
|
||||||
|
case Read::Reg53C94::Xfer_Cnt_MSB:
|
||||||
|
return (this->xfer_count >> 8) & 0xFFU;
|
||||||
case Read::Reg53C94::Command:
|
case Read::Reg53C94::Command:
|
||||||
return this->cmd_fifo[0];
|
return this->cmd_fifo[0];
|
||||||
case Read::Reg53C94::Status:
|
case Read::Reg53C94::Status:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user