Host-controller tuning operations and results. More...
Macros | |
| #define | ARM_MCI_UHS_TUNING_ABORT (0x00UL) |
| Abort or reset the sampling-clock tuning operation. | |
| #define | ARM_MCI_UHS_TUNING_START (0x01UL) |
| Start initial sampling-clock tuning operation. | |
| #define | ARM_MCI_UHS_RETUNING_START (0x02UL) |
| Start sampling-clock re-tuning during normal operation. | |
| #define | ARM_MCI_UHS_TUNING_DONE (0) |
| Tuning completed successfully. | |
| #define | ARM_MCI_UHS_TUNING_CONTINUE (1) |
| Another tuning-block is required. | |
| #define | ARM_MCI_UHS_TUNING_ERROR (-1) |
| Tuning failed. | |
Host-controller tuning operations and results.
Call ARM_MCI_Control with control = ARM_MCI_UHS_TUNING_OPERATION. Set arg to one of the phase codes ARM_MCI_UHS_TUNING_ABORT, ARM_MCI_UHS_TUNING_START, or ARM_MCI_UHS_RETUNING_START.
These operations return an execution status, call ARM_MCI_Control with control = ARM_MCI_UHS_TUNING_RESULT and check returned value against ARM_MCI_UHS_TUNING_DONE, ARM_MCI_UHS_TUNING_CONTINUE, or ARM_MCI_UHS_TUNING_ERROR.
UHS-I tuning is performed iteratively until a valid sampling point is found or an error occurs.
Use this order of commands:
Repeat steps 2 and 3 until the tuning result is ARM_MCI_UHS_TUNING_DONE or an error occurs.
Example:
| #define ARM_MCI_UHS_TUNING_ABORT (0x00UL) |
Abort or reset the sampling-clock tuning operation.
Stop any active data transfer and reset the tuning configuration.
| #define ARM_MCI_UHS_TUNING_START (0x01UL) |
Start initial sampling-clock tuning operation.
This operation initializes a new sampling-clock search.
| #define ARM_MCI_UHS_RETUNING_START (0x02UL) |
Start sampling-clock re-tuning during normal operation.
After initial tuning, re-tuning may be required during normal operation, after ARM_MCI_EVENT_RETUNING_REQUEST. Re-tuning ensures that the sampling point remains optimal.
| #define ARM_MCI_UHS_TUNING_DONE (0) |
Tuning completed successfully.
A valid sampling setting has been selected and applied. No further tuning block is required for this search.
| #define ARM_MCI_UHS_TUNING_CONTINUE (1) |
Another tuning-block is required.
The search has not completed, and another iteration is required.
| #define ARM_MCI_UHS_TUNING_ERROR (-1) |
Tuning failed.
No usable result is available from this search. Stop the tuning loop and perform abort/recovery.
This return value differs from ARM_MCI_EVENT_TUNING_ERROR. That event reports a sampling-circuit failure during normal operation.