/* Get the data register address used for DMA transfer @rmtoll TDR TD LL_SWPMI_DMA_GetRegAddr */
uint32_t LL_SWPMI_DMA_GetRegAddr(SWPMI_TypeDef *SWPMIx, uint32_t Direction)
/* Get the data register address used for DMA transfer @rmtoll TDR TD LL_SWPMI_DMA_GetRegAddr */
uint32_t LL_SWPMI_DMA_GetRegAddr(SWPMI_TypeDef *SWPMIx, uint32_t Direction)
{
  uint32_t data_reg_addr;
  if (Direction == LL_SWPMI_DMA_REG_DATA_TRANSMIT)
  {
    data_reg_addr = (uint32_t)&(SWPMIx->TDR);
  }
  else
  {
    data_reg_addr = (uint32_t)&(SWPMIx->RDR);
  }
  return data_reg_addr;
}