Peripheral Library APIs
www.ti.com
372
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
SD Host Controller Interface
– SDHOST_INT_BADA: Bad Data error interrupt
– SDHOST_INT_DMARD: Read DMA done interrupt
– SDHOST_INT_DMAWR: Write DMA done interrupt
• Return: None
void SDHostIntDisable(unsigned long ulBase, unsigned long ulIntFlags)
• Description: This function disables the indicated SD host interrupt sources. Only enabled sources can
be reflected to the processor interrupt.
• Parameters:
– ulBase – Base address of the SD host module
– ulIntFlags – Bit mask of the interrupt sources to be disabled
The ulIntFlags parameter has the same definition as the ulIntFlags parameter to SDHostIntEnable().
• Return: None
unsigned long SDHostIntStatus(unsigned long ulBase)
• Description: This function returns the interrupt status for the specified SD host.
• Parameters: ulBase – Base address of the SD host module.
• Return: Returns the current interrupt status, enumerated as a bit field of values described in
SDHostIntEnable()
void SDHostIntClear(unsigned long ulBase,unsigned long ulIntFlags)
• Description: The specified SD host interrupt sources are cleared, so that they no longer assert. This
function must be called in the interrupt handler to keep the interrupt from being recognized again
immediately upon exit.
• Parameters:
– ulBase – Base address of the SD host module
– ulIntFlags – Bit mask of the interrupt sources to be cleared
The ulIntFlags parameter has the same definition as the ulIntFlags parameter to SDHostIntEnable().
• Return: None
void SDHostCardErrorMaskSet(unsigned long ulBase, unsigned long ulErrMask)
• Description: This function sets the card status error mask for response type R1, R1b, R5, R5b, and
R6. The parameter ulErrMask is the bit mask of card status errors to be enabled. If the corresponding
bits in the card status field of a response are set, then the host controller indicates a card error
interrupt status. Only bits referenced as type E (error) in the status field in the response can set a card
status error.
• Parameters:
– ulBase – Base address of the SD host module
– ulErrMask – Bit mask of card status errors to be enabled
• Return: None
unsigned long SDHostCardErrorMaskGet(unsigned long ulBase)
• Description: This function gets the card status error mask for response type R1, R1b, R5, R5b, and
R6.
• Parameters: ulBase – Base address of the SD host module
• Return: Returns the current card status error
void SDHostSetExpClk(unsigned long ulBase, unsigned long ulSDHostClk, unsigned long
ulCardClk)
• Description: This function configures the SD host interface to supply the specified clock to the
connected card.