mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-23 21:29:28 +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;
|
||||
|
||||
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:
|
||||
return this->cmd_fifo[0];
|
||||
case Read::Reg53C94::Status:
|
||||
|
Loading…
Reference in New Issue
Block a user