reg_blockcount (SDIO) Register Description
Register Name | reg_blockcount |
---|---|
Offset Address | 0x0000000006 |
Absolute Address |
0x00FF160006 (SD0) 0x00FF170006 (SD1) |
Width | 16 |
Type | rwNormal read/write |
Reset Value | 0x00000000 |
Description | Configure the number of data blocks |
reg_blockcount (SDIO) Register Bit-Field Summary
Field Name | Bits | Type | Reset Value | Description |
---|---|---|---|---|
xfer_blockcount | 15:0 | rwNormal read/write | 0x0 | Remaining Block Count. The controller decrements the block count after each block transfer and stops transfers when the count reaches zero. 0000h: 0 blocks, transfers stop. 0001h: 1 block. 0002h: 2 blocks. .. FFFFh: 65535 blocks. This register is enabled when Block Count Enable in the Transfer Mode register is set to 1 and is valid only for multi-block transfers. Accessed the register when no transactions are executing (i.e., after a transaction has stopped). During a transfer, reads return an invalid value and writes are ignored. When saving transfer context as a result of Suspend command, the number of blocks yet to be transferred can be determined by reading this register. When restoring transfer context prior to issuing a Resume command, the Host Driver shall restore the previously save block count. |