mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-08-15 09:27:27 +00:00
Sc53C94: reading current transfer count.
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user