RTEMS 6.1-rc1
Functions

Functions

void HSMCI_Enable (Hsmci *pRMci)
 Enable Multi-Media Interface. More...
 
void HSMCI_Disable (Hsmci *pRMci)
 Disable Multi-Media Interface. More...
 
void HSMCI_Reset (Hsmci *pRMci, uint8_t bBackup)
 Reset (& Disable) Multi-Media Interface. More...
 
void HSMCI_Select (Hsmci *pRMci, uint8_t bSlot, uint8_t bBusWidth)
 Select slot. More...
 
void HSMCI_SetSlot (Hsmci *pRMci, uint8_t bSlot)
 Set slot. More...
 
void HSMCI_SetBusWidth (Hsmci *pRMci, uint8_t bBusWidth)
 Set bus width of MCI. More...
 
uint8_t HSMCI_GetBusWidth (Hsmci *pRMci)
 Return bus width setting. More...
 
void HSMCI_ConfigureMode (Hsmci *pRMci, uint32_t dwMode)
 Configures a MCI peripheral as specified. More...
 
uint32_t HSMCI_GetMode (Hsmci *pRMci)
 Return mode register. More...
 
void HSMCI_ProofEnable (Hsmci *pRMci, uint8_t bRdProof, uint8_t bWrProof)
 Enable/Disable R/W proof. More...
 
void HSMCI_PadvCtl (Hsmci *pRMci, uint8_t bPadv)
 Padding value setting. More...
 
void HSMCI_FByteEnable (Hsmci *pRMci, uint8_t bFByteEn)
 Force byte transfer enable/disable. More...
 
uint8_t HSMCI_IsFByteEnabled (Hsmci *pRMci)
 Check if Force Byte mode enabled. More...
 
void HSMCI_DivCtrl (Hsmci *pRMci, uint32_t bClkDiv, uint8_t bPwsDiv)
 Set Clock Divider & Power save divider for MCI. More...
 
void HSMCI_EnableIt (Hsmci *pRMci, uint32_t dwSources)
 Enables one or more interrupt sources of MCI peripheral. More...
 
void HSMCI_DisableIt (Hsmci *pRMci, uint32_t dwSources)
 Disable one or more interrupt sources of MCI peripheral. More...
 
uint32_t HSMCI_GetItMask (Hsmci *pRMci)
 Return the interrupt mask register. More...
 
void HSMCI_ConfigureTransfer (Hsmci *pRMci, uint16_t wBlkLen, uint16_t wCnt)
 Set block len & count for transfer. More...
 
void HSMCI_SetBlockLen (Hsmci *pRMci, uint16_t wBlkSize)
 Set block length. More...
 
void HSMCI_SetBlockCount (Hsmci *pRMci, uint16_t wBlkCnt)
 Set block (byte) count. More...
 
void HSMCI_ConfigureCompletionTO (Hsmci *pRMci, uint32_t dwConfigure)
 Configure the Completion Signal Timeout. More...
 
void HSMCI_ConfigureDataTO (Hsmci *pRMci, uint32_t dwConfigure)
 Configure the Data Timeout. More...
 
void HSMCI_SendCmd (Hsmci *pRMci, uint32_t dwCmd, uint32_t dwArg)
 Send command. More...
 
uint32_t HSMCI_GetResponse (Hsmci *pRMci)
 Return the response register. More...
 
uint32_t HSMCI_Read (Hsmci *pRMci)
 Return the receive data register. More...
 
void HSMCI_ReadFifo (Hsmci *pRMci, uint8_t *pdwData, uint32_t dwSize)
 Read from FIFO. More...
 
void HSMCI_Write (Hsmci *pRMci, uint32_t dwData)
 Sends data through MCI peripheral. More...
 
void HSMCI_WriteFifo (Hsmci *pRMci, uint8_t *pdwData, uint32_t dwSize)
 Write to FIFO. More...
 
uint32_t HSMCI_GetStatus (Hsmci *pRMci)
 Return the status register. More...
 
void HSMCI_ConfigureDma (Hsmci *pRMci, uint32_t dwConfigure)
 Configure the HSMCI DMA. More...
 
void HSMCI_EnableDma (Hsmci *pRMci, uint8_t bEnable)
 Enable the HSMCI DMA. More...
 
void HSMCI_Configure (Hsmci *pRMci, uint32_t dwConfigure)
 Configure the HSMCI. More...
 
void HSMCI_HsEnable (Hsmci *pRMci, uint8_t bHsEnable)
 Enable/Disable High-Speed mode for MCI. More...
 
uint8_t HSMCI_IsHsEnabled (Hsmci *pRMci)
 Check if High-speed mode is enabled on MCI. More...
 
void HSMCI_ConfigureWP (Hsmci *pRMci, uint32_t dwConfigure)
 Configure the Write Protection Mode. More...
 
uint32_t HSMCI_GetWPStatus (Hsmci *pRMci)
 Return the write protect status register. More...
 
void HSMCI_BusWidthCtl (Hsmci *pRMci, uint8_t bBusWidth)
 
void HSMCI_SlotCtl (Hsmci *pRMci, uint8_t bSlot)
 
uint8_t HSMCI_GetSlot (Hsmci *pRMci)
 

Detailed Description

Function Documentation

◆ HSMCI_Configure()

void HSMCI_Configure ( Hsmci pRMci,
uint32_t  dwConfigure 
)

Configure the HSMCI.

Parameters
pRMciPointer to an Hsmci instance.
dwConfigureConfigure value.

◆ HSMCI_ConfigureCompletionTO()

void HSMCI_ConfigureCompletionTO ( Hsmci pRMci,
uint32_t  dwConfigure 
)

Configure the Completion Signal Timeout.

Parameters
pRMciPointer to an Hsmci instance.
dwConfigureCompletion Signal Timeout configure.

◆ HSMCI_ConfigureDataTO()

void HSMCI_ConfigureDataTO ( Hsmci pRMci,
uint32_t  dwConfigure 
)

Configure the Data Timeout.

Parameters
pRMciPointer to an Hsmci instance.
dwConfigureData Timeout configure.

◆ HSMCI_ConfigureDma()

void HSMCI_ConfigureDma ( Hsmci pRMci,
uint32_t  dwConfigure 
)

Configure the HSMCI DMA.

Parameters
pRMciPointer to an Hsmci instance.
dwConfigureConfigure value.

◆ HSMCI_ConfigureMode()

void HSMCI_ConfigureMode ( Hsmci pRMci,
uint32_t  dwMode 
)

Configures a MCI peripheral as specified.

Parameters
pRMciPointer to an MCI instance.
dwModeValue of the MCI Mode register.

◆ HSMCI_ConfigureTransfer()

void HSMCI_ConfigureTransfer ( Hsmci pRMci,
uint16_t  wBlkLen,
uint16_t  wCnt 
)

Set block len & count for transfer.

Parameters
pRMciPointer to an Hsmci instance.
wBlkLenBlock size.
wCntBlock(byte) count.

◆ HSMCI_ConfigureWP()

void HSMCI_ConfigureWP ( Hsmci pRMci,
uint32_t  dwConfigure 
)

Configure the Write Protection Mode.

Parameters
pRMciPointer to an Hsmci instance.
dwConfigureWP mode configure value.

◆ HSMCI_Disable()

void HSMCI_Disable ( Hsmci pRMci)

Disable Multi-Media Interface.

Parameters
pRMciPointer to a Hsmci instance

◆ HSMCI_DisableIt()

void HSMCI_DisableIt ( Hsmci pRMci,
uint32_t  dwSources 
)

Disable one or more interrupt sources of MCI peripheral.

Parameters
pRMciPointer to an Hsmci instance.
sourcesBitwise OR of selected interrupt sources.

◆ HSMCI_DivCtrl()

void HSMCI_DivCtrl ( Hsmci pRMci,
uint32_t  bClkDiv,
uint8_t  bPwsDiv 
)

Set Clock Divider & Power save divider for MCI.

Parameters
pRMciPointer to an MCI instance.
bClkDivClock Divider value (0 ~ 255).
bPwsDivPower Saving Divider (1 ~ 7).

◆ HSMCI_Enable()

void HSMCI_Enable ( Hsmci pRMci)

Enable Multi-Media Interface.

Parameters
pRMciPointer to a Hsmci instance

◆ HSMCI_EnableDma()

void HSMCI_EnableDma ( Hsmci pRMci,
uint8_t  bEnable 
)

Enable the HSMCI DMA.

Parameters
pRMciPointer to an Hsmci instance.
bEnable1 to enable, 0 to disable.

◆ HSMCI_EnableIt()

void HSMCI_EnableIt ( Hsmci pRMci,
uint32_t  dwSources 
)

Enables one or more interrupt sources of MCI peripheral.

Parameters
pRMciPointer to an Hsmci instance.
sourcesBitwise OR of selected interrupt sources.

◆ HSMCI_FByteEnable()

void HSMCI_FByteEnable ( Hsmci pRMci,
uint8_t  bFByteEn 
)

Force byte transfer enable/disable.

Parameters
pRMciPointer to an MCI instance.
bFByteEnFBYTE enable/disable.

◆ HSMCI_GetBusWidth()

uint8_t HSMCI_GetBusWidth ( Hsmci pRMci)

Return bus width setting.

Parameters
pRMciPointer to an MCI instance.
Returns
1, 4 or 8.

◆ HSMCI_GetItMask()

uint32_t HSMCI_GetItMask ( Hsmci pRMci)

Return the interrupt mask register.

Parameters
pRMciPointer to an Hsmci instance.
Returns
MCI interrupt mask register.

◆ HSMCI_GetMode()

uint32_t HSMCI_GetMode ( Hsmci pRMci)

Return mode register.

Parameters
pRMciPointer to an MCI instance.

◆ HSMCI_GetResponse()

uint32_t HSMCI_GetResponse ( Hsmci pRMci)

Return the response register.

Parameters
pRMciPointer to an Hsmci instance.
Returns
MCI response register.

◆ HSMCI_GetStatus()

uint32_t HSMCI_GetStatus ( Hsmci pRMci)

Return the status register.

Parameters
pRMciPointer to an Hsmci instance.
Returns
MCI status register.

◆ HSMCI_GetWPStatus()

uint32_t HSMCI_GetWPStatus ( Hsmci pRMci)

Return the write protect status register.

Parameters
pRMciPointer to an Hsmci instance.
Returns
MCI write protect status register.

◆ HSMCI_HsEnable()

void HSMCI_HsEnable ( Hsmci pRMci,
uint8_t  bHsEnable 
)

Enable/Disable High-Speed mode for MCI.

Parameters
pRMciPointer to an Hsmci instance.
bHsEnableEnable/Disable high-speed.

◆ HSMCI_IsFByteEnabled()

uint8_t HSMCI_IsFByteEnabled ( Hsmci pRMci)

Check if Force Byte mode enabled.

Parameters
pRMciPointer to an MCI instance.
Returns
1 if _FBYTE is enabled.

◆ HSMCI_IsHsEnabled()

uint8_t HSMCI_IsHsEnabled ( Hsmci pRMci)

Check if High-speed mode is enabled on MCI.

Parameters
pRMciPointer to an Hsmci instance.
Returns
1

◆ HSMCI_PadvCtl()

void HSMCI_PadvCtl ( Hsmci pRMci,
uint8_t  bPadv 
)

Padding value setting.

Parameters
pRMciPointer to an MCI instance.
bPadvEnPadding value 0xFF/0x00.

◆ HSMCI_ProofEnable()

void HSMCI_ProofEnable ( Hsmci pRMci,
uint8_t  bRdProof,
uint8_t  bWrProof 
)

Enable/Disable R/W proof.

Parameters
pRMciPointer to an MCI instance.
bRdProofRead proof enable/disable.
bWrProofWrite proof enable/disable.

◆ HSMCI_Read()

uint32_t HSMCI_Read ( Hsmci pRMci)

Return the receive data register.

Parameters
pRMciPointer to an Hsmci instance.
Returns
MCI receive data register.

◆ HSMCI_ReadFifo()

void HSMCI_ReadFifo ( Hsmci pRMci,
uint8_t *  pdwData,
uint32_t  dwSize 
)

Read from FIFO.

Parameters
pRMciPointer to an Hsmci instance.
pdwDataPointer to data buffer.
dwSizeSize of data buffer (in DWord).

◆ HSMCI_Reset()

void HSMCI_Reset ( Hsmci pRMci,
uint8_t  bBackup 
)

Reset (& Disable) Multi-Media Interface.

Parameters
mciPointer to a Hsmci instance
bBackupBackup registers values to keep previous settings, including _MR, _SDCR, _DTOR, _CSTOR, _DMA and _CFG.

◆ HSMCI_Select()

void HSMCI_Select ( Hsmci pRMci,
uint8_t  bSlot,
uint8_t  bBusWidth 
)

Select slot.

Parameters
pRMciPointer to a Hsmci instance
bSlotSlot ID (0~3 for A~D).

◆ HSMCI_SendCmd()

void HSMCI_SendCmd ( Hsmci pRMci,
uint32_t  dwCmd,
uint32_t  dwArg 
)

Send command.

Parameters
pRMciPointer to an Hsmci instance.
dwCmdCommand register value.
dwArgArgument register value.

◆ HSMCI_SetBlockCount()

void HSMCI_SetBlockCount ( Hsmci pRMci,
uint16_t  wBlkCnt 
)

Set block (byte) count.

Parameters
pRMciPointer to an Hsmci instance.
wBlkCntBlock(byte) count.

◆ HSMCI_SetBlockLen()

void HSMCI_SetBlockLen ( Hsmci pRMci,
uint16_t  wBlkSize 
)

Set block length.

Count is reset to 0.

Parameters
pRMciPointer to an Hsmci instance.
wBlkSizeBlock size.

◆ HSMCI_SetBusWidth()

void HSMCI_SetBusWidth ( Hsmci pRMci,
uint8_t  bBusWidth 
)

Set bus width of MCI.

Parameters
pRMciPointer to a Hsmci instance
bBusWidth1,4 or 8 (bits).

◆ HSMCI_SetSlot()

void HSMCI_SetSlot ( Hsmci pRMci,
uint8_t  bSlot 
)

Set slot.

Parameters
pRMciPointer to a Hsmci instance
bSlotSlot ID (0~3 for A~D).

◆ HSMCI_Write()

void HSMCI_Write ( Hsmci pRMci,
uint32_t  dwData 
)

Sends data through MCI peripheral.

Parameters
pRMciPointer to an Hsmci instance.

◆ HSMCI_WriteFifo()

void HSMCI_WriteFifo ( Hsmci pRMci,
uint8_t *  pdwData,
uint32_t  dwSize 
)

Write to FIFO.

Parameters
pRMciPointer to an Hsmci instance.
pdwDataPointer to data buffer.
dwSizeSize of data buffer (In DWord).