Home
last modified time | relevance | path

Searched refs:DR (Results 1 – 25 of 71) sorted by relevance

123

/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Src/
Dstm32l0xx_hal_crc.c334 hcrc->Instance->DR = pBuffer[index]; in HAL_CRC_Accumulate()
336 temp = hcrc->Instance->DR; in HAL_CRC_Accumulate()
397 hcrc->Instance->DR = pBuffer[index]; in HAL_CRC_Calculate()
399 temp = hcrc->Instance->DR; in HAL_CRC_Calculate()
483 …hcrc->Instance->DR = ((uint32_t)pBuffer[4U*i]<<24U) | ((uint32_t)pBuffer[4U*i+1U]<<16U) | ((uint32… in CRC_Handle_8()
490 *(uint8_t volatile*) (&hcrc->Instance->DR) = pBuffer[4U*i]; in CRC_Handle_8()
494 …*(uint16_t volatile*) (&hcrc->Instance->DR) = ((uint32_t)pBuffer[4U*i]<<8U) | (uint32_t)pBuffer[4U… in CRC_Handle_8()
498 …*(uint16_t volatile*) (&hcrc->Instance->DR) = ((uint32_t)pBuffer[4U*i]<<8U) | (uint32_t)pBuffer[4U… in CRC_Handle_8()
499 *(uint8_t volatile*) (&hcrc->Instance->DR) = pBuffer[4U*i+2U]; in CRC_Handle_8()
504 return hcrc->Instance->DR; in CRC_Handle_8()
[all …]
Dstm32l0xx_hal_spi.c484 hspi->Instance->DR = (*hspi->pTxBuffPtr++); in HAL_SPI_Transmit()
495 hspi->Instance->DR = (*hspi->pTxBuffPtr++); in HAL_SPI_Transmit()
509 hspi->Instance->DR = *((uint16_t*)hspi->pTxBuffPtr); in HAL_SPI_Transmit()
521 hspi->Instance->DR = *((uint16_t*)hspi->pTxBuffPtr); in HAL_SPI_Transmit()
642 (*hspi->pRxBuffPtr++) = hspi->Instance->DR; in HAL_SPI_Receive()
662 *((uint16_t*)hspi->pRxBuffPtr) = hspi->Instance->DR; in HAL_SPI_Receive()
682 (*hspi->pRxBuffPtr++) = hspi->Instance->DR; in HAL_SPI_Receive()
687 *((uint16_t*)hspi->pRxBuffPtr) = hspi->Instance->DR; in HAL_SPI_Receive()
703 tmpreg = hspi->Instance->DR; in HAL_SPI_Receive()
806 hspi->Instance->DR = *((uint16_t*)hspi->pTxBuffPtr); in HAL_SPI_TransmitReceive()
[all …]
Dstm32l0xx_hal_rng.c276 hrng->RandomNumber = hrng->Instance->DR; in HAL_RNG_GenerateRandomNumber()
369 hrng->RandomNumber = hrng->Instance->DR; in HAL_RNG_IRQHandler()
419 random32bit = hrng->Instance->DR; in HAL_RNG_GetRandomNumber_IT()
Dstm32l0xx_hal_i2s.c509 hi2s->Instance->DR = (*hi2s->pTxBuffPtr++); in HAL_I2S_Transmit()
614 (*hi2s->pRxBuffPtr++) = hi2s->Instance->DR; in HAL_I2S_Receive()
819 …HAL_DMA_Start_IT(hi2s->hdmatx, (uint32_t)hi2s->pTxBuffPtr, (uint32_t)&hi2s->Instance->DR, hi2s->Tx… in HAL_I2S_Transmit_DMA()
909 …HAL_DMA_Start_IT(hi2s->hdmarx, (uint32_t)&hi2s->Instance->DR, (uint32_t)hi2s->pRxBuffPtr, hi2s->Rx… in HAL_I2S_Receive_DMA()
1327 hi2s->Instance->DR = (*hi2s->pTxBuffPtr++); in I2S_Transmit_IT()
1348 (*hi2s->pRxBuffPtr++) = hi2s->Instance->DR; in I2S_Receive_IT()
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_hal_crc.c317 hcrc->Instance->DR = pBuffer[index]; in HAL_CRC_Accumulate()
319 temp = hcrc->Instance->DR; in HAL_CRC_Accumulate()
373 hcrc->Instance->DR = pBuffer[index]; in HAL_CRC_Calculate()
375 temp = hcrc->Instance->DR; in HAL_CRC_Calculate()
459 hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \ in CRC_Handle_8()
469 …*(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation Misra… in CRC_Handle_8()
474 …pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation Misra… in CRC_Handle_8()
480 …pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation Misra… in CRC_Handle_8()
483 …*(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation Misra… in CRC_Handle_8()
488 return hcrc->Instance->DR; in CRC_Handle_8()
[all …]
Dstm32l4xx_hal_spi.c873 hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); in HAL_SPI_Transmit()
883 hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); in HAL_SPI_Transmit()
906 hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); in HAL_SPI_Transmit()
912 *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); in HAL_SPI_Transmit()
925 hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); in HAL_SPI_Transmit()
931 *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); in HAL_SPI_Transmit()
1077 (* (uint8_t *)hspi->pRxBuffPtr) = *(__IO uint8_t *)&hspi->Instance->DR; in HAL_SPI_Receive()
1100 *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; in HAL_SPI_Receive()
1134 *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; in HAL_SPI_Receive()
1139 (*(uint8_t *)hspi->pRxBuffPtr) = *(__IO uint8_t *)&hspi->Instance->DR; in HAL_SPI_Receive()
[all …]
Dstm32l4xx_hal_sai.c1066 hsai->Instance->DR = *hsai->pBuffPtr; in HAL_SAI_Transmit()
1075 hsai->Instance->DR = temp; in HAL_SAI_Transmit()
1087 hsai->Instance->DR = temp; in HAL_SAI_Transmit()
1177 *hsai->pBuffPtr = (uint8_t)hsai->Instance->DR; in HAL_SAI_Receive()
1182 temp = hsai->Instance->DR; in HAL_SAI_Receive()
1190 temp = hsai->Instance->DR; in HAL_SAI_Receive()
1586 …if (HAL_DMA_Start_IT(hsai->hdmatx, (uint32_t)hsai->pBuffPtr, (uint32_t)&hsai->Instance->DR, hsai->… in HAL_SAI_Transmit_DMA()
1672 …if (HAL_DMA_Start_IT(hsai->hdmarx, (uint32_t)&hsai->Instance->DR, (uint32_t)hsai->pBuffPtr, hsai->… in HAL_SAI_Receive_DMA()
2348 hsai->Instance->DR = *hsai->pBuffPtr; in SAI_FillFifo()
2357 hsai->Instance->DR = temp; in SAI_FillFifo()
[all …]
Dstm32l4xx_hal_rng.c600 hrng->RandomNumber = hrng->Instance->DR; in HAL_RNG_GenerateRandomNumber()
698 hrng->RandomNumber = hrng->Instance->DR; in HAL_RNG_IRQHandler()
753 random32bit = hrng->Instance->DR; in HAL_RNG_GetRandomNumber_IT()
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Src/
Dstm32l1xx_hal_usart.c451 WRITE_REG(husart->Instance->DR, (*tmp & (uint16_t)0x01FF)); in HAL_USART_Transmit()
467 WRITE_REG(husart->Instance->DR, (*pTxData++ & (uint8_t)0xFF)); in HAL_USART_Transmit()
529 WRITE_REG(husart->Instance->DR, (DUMMY_DATA & (uint16_t)0x01FF)); in HAL_USART_Receive()
539 *tmp = (uint16_t)(husart->Instance->DR & (uint16_t)0x01FF); in HAL_USART_Receive()
544 *tmp = (uint16_t)(husart->Instance->DR & (uint16_t)0x00FF); in HAL_USART_Receive()
557 WRITE_REG(husart->Instance->DR, (DUMMY_DATA & (uint16_t)0x00FF)); in HAL_USART_Receive()
567 *pRxData++ = (uint8_t)(husart->Instance->DR & (uint8_t)0x00FF); in HAL_USART_Receive()
572 *pRxData++ = (uint8_t)(husart->Instance->DR & (uint8_t)0x007F); in HAL_USART_Receive()
635 WRITE_REG(husart->Instance->DR, (*tmp & (uint16_t)0x01FF)); in HAL_USART_TransmitReceive()
653 *tmp = (uint16_t)(husart->Instance->DR & (uint16_t)0x01FF); in HAL_USART_TransmitReceive()
[all …]
Dstm32l1xx_hal_spi.c350 hspi->Instance->DR = (*hspi->pTxBuffPtr++); in HAL_SPI_Transmit()
360 hspi->Instance->DR = (*hspi->pTxBuffPtr++); in HAL_SPI_Transmit()
374 hspi->Instance->DR = *((uint16_t*)hspi->pTxBuffPtr); in HAL_SPI_Transmit()
385 hspi->Instance->DR = *((uint16_t*)hspi->pTxBuffPtr); in HAL_SPI_Transmit()
506 (*hspi->pRxBuffPtr++) = hspi->Instance->DR; in HAL_SPI_Receive()
526 *((uint16_t*)hspi->pRxBuffPtr) = hspi->Instance->DR; in HAL_SPI_Receive()
546 (*hspi->pRxBuffPtr++) = hspi->Instance->DR; in HAL_SPI_Receive()
551 *((uint16_t*)hspi->pRxBuffPtr) = hspi->Instance->DR; in HAL_SPI_Receive()
566 tmpreg = hspi->Instance->DR; in HAL_SPI_Receive()
669 hspi->Instance->DR = *((uint16_t*)hspi->pTxBuffPtr); in HAL_SPI_TransmitReceive()
[all …]
Dstm32l1xx_hal_i2c.c671 hi2c->Instance->DR = (*hi2c->pBuffPtr++); in HAL_I2C_Master_Transmit()
678 hi2c->Instance->DR = (*hi2c->pBuffPtr++); in HAL_I2C_Master_Transmit()
842 (*hi2c->pBuffPtr++) = hi2c->Instance->DR; in HAL_I2C_Master_Receive()
859 (*hi2c->pBuffPtr++) = hi2c->Instance->DR; in HAL_I2C_Master_Receive()
864 (*hi2c->pBuffPtr++) = hi2c->Instance->DR; in HAL_I2C_Master_Receive()
881 (*hi2c->pBuffPtr++) = hi2c->Instance->DR; in HAL_I2C_Master_Receive()
895 (*hi2c->pBuffPtr++) = hi2c->Instance->DR; in HAL_I2C_Master_Receive()
900 (*hi2c->pBuffPtr++) = hi2c->Instance->DR; in HAL_I2C_Master_Receive()
921 (*hi2c->pBuffPtr++) = hi2c->Instance->DR; in HAL_I2C_Master_Receive()
928 (*hi2c->pBuffPtr++) = hi2c->Instance->DR; in HAL_I2C_Master_Receive()
[all …]
Dstm32l1xx_hal_crc.c251 hcrc->Instance->DR = pBuffer[index]; in HAL_CRC_Accumulate()
261 return hcrc->Instance->DR; in HAL_CRC_Accumulate()
289 hcrc->Instance->DR = pBuffer[index]; in HAL_CRC_Calculate()
299 return hcrc->Instance->DR; in HAL_CRC_Calculate()
Dstm32l1xx_hal_irda.c471 WRITE_REG(hirda->Instance->DR,(*tmp & IRDA_DR_MASK_U16_9DATABITS)); in HAL_IRDA_Transmit()
487 WRITE_REG(hirda->Instance->DR, (*pData++ & IRDA_DR_MASK_U8_8DATABITS)); in HAL_IRDA_Transmit()
565 *tmp = (uint16_t)(hirda->Instance->DR & IRDA_DR_MASK_U16_9DATABITS); in HAL_IRDA_Receive()
570 *tmp = (uint16_t)(hirda->Instance->DR & IRDA_DR_MASK_U16_8DATABITS); in HAL_IRDA_Receive()
582 *pData++ = (uint8_t)(hirda->Instance->DR & IRDA_DR_MASK_U8_8DATABITS); in HAL_IRDA_Receive()
586 *pData++ = (uint8_t)(hirda->Instance->DR & IRDA_DR_MASK_U8_7DATABITS); in HAL_IRDA_Receive()
770 HAL_DMA_Start_IT(hirda->hdmatx, *(uint32_t*)tmp, (uint32_t)&hirda->Instance->DR, Size); in HAL_IRDA_Transmit_DMA()
838 HAL_DMA_Start_IT(hirda->hdmarx, (uint32_t)&hirda->Instance->DR, *(uint32_t*)tmp, Size); in HAL_IRDA_Receive_DMA()
1384 WRITE_REG(hirda->Instance->DR, (uint16_t)(*tmp & IRDA_DR_MASK_U16_9DATABITS)); in IRDA_Transmit_IT()
1396 WRITE_REG(hirda->Instance->DR, (uint8_t)(*hirda->pTxBuffPtr++ & IRDA_DR_MASK_U8_8DATABITS)); in IRDA_Transmit_IT()
[all …]
Dstm32l1xx_hal_uart.c671 huart->Instance->DR = (*tmp & (uint16_t)0x01FF); in HAL_UART_Transmit()
687 huart->Instance->DR = (*pData++ & (uint8_t)0xFF); in HAL_UART_Transmit()
769 *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF); in HAL_UART_Receive()
774 *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x00FF); in HAL_UART_Receive()
787 *pData++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); in HAL_UART_Receive()
791 *pData++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); in HAL_UART_Receive()
977 HAL_DMA_Start_IT(huart->hdmatx, *(uint32_t*)tmp, (uint32_t)&huart->Instance->DR, Size); in HAL_UART_Transmit_DMA()
1048 HAL_DMA_Start_IT(huart->hdmarx, (uint32_t)&huart->Instance->DR, *(uint32_t*)tmp, Size); in HAL_UART_Receive_DMA()
1738 huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF); in UART_Transmit_IT()
1750 huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF); in UART_Transmit_IT()
[all …]
Dstm32l1xx_hal_i2s.c484 hi2s->Instance->DR = (*hi2s->pTxBuffPtr++); in HAL_I2S_Transmit()
580 (*hi2s->pRxBuffPtr++) = hi2s->Instance->DR; in HAL_I2S_Receive()
783 …HAL_DMA_Start_IT(hi2s->hdmatx, (uint32_t)hi2s->pTxBuffPtr, (uint32_t)&hi2s->Instance->DR, hi2s->Tx… in HAL_I2S_Transmit_DMA()
873 …HAL_DMA_Start_IT(hi2s->hdmarx, (uint32_t)&hi2s->Instance->DR, (uint32_t)hi2s->pRxBuffPtr, hi2s->Rx… in HAL_I2S_Receive_DMA()
1301 hi2s->Instance->DR = (*hi2s->pTxBuffPtr++); in I2S_Transmit_IT()
1322 (*hi2s->pRxBuffPtr++) = hi2s->Instance->DR; in I2S_Receive_IT()
Dstm32l1xx_hal_smartcard.c478 WRITE_REG(hsc->Instance->DR, (*pData++ & (uint8_t)0xFF)); in HAL_SMARTCARD_Transmit()
552 *pData++ = (uint8_t)(hsc->Instance->DR & (uint8_t)0x00FF); in HAL_SMARTCARD_Receive()
737 HAL_DMA_Start_IT(hsc->hdmatx, *(uint32_t*)tmp, (uint32_t)&hsc->Instance->DR, Size); in HAL_SMARTCARD_Transmit_DMA()
804 HAL_DMA_Start_IT(hsc->hdmarx, (uint32_t)&hsc->Instance->DR, *(uint32_t*)tmp, Size); in HAL_SMARTCARD_Receive_DMA()
1150 WRITE_REG(hsc->Instance->DR, (*hsc->pTxBuffPtr++ & (uint8_t)0xFF)); in SMARTCARD_Transmit_IT()
1213 *hsc->pRxBuffPtr++ = (uint8_t)(hsc->Instance->DR & (uint8_t)0xFF); in SMARTCARD_Receive_IT()
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Inc/
Dstm32l0xx_ll_crc.h343 WRITE_REG(CRCx->DR, InData); in LL_CRC_FeedData32()
355 *(uint16_t __IO *)(&CRCx->DR) = (uint16_t) InData; in LL_CRC_FeedData16()
367 *(uint8_t __IO *)(&CRCx->DR) = (uint8_t) InData; in LL_CRC_FeedData8()
378 return (uint32_t)(READ_REG(CRCx->DR)); in LL_CRC_ReadData32()
390 return (uint16_t)READ_REG(CRCx->DR); in LL_CRC_ReadData16()
402 return (uint8_t)READ_REG(CRCx->DR); in LL_CRC_ReadData8()
414 return (uint8_t)(READ_REG(CRCx->DR) & 0x7FU); in LL_CRC_ReadData7()
Dstm32l0xx_ll_spi.h866 tmpreg = SPIx->DR; in LL_SPI_ClearFlag_OVR()
1077 return (uint32_t) & (SPIx->DR); in LL_SPI_DMA_GetRegAddr()
1096 return (uint8_t)(READ_REG(SPIx->DR)); in LL_SPI_ReceiveData8()
1107 return (uint16_t)(READ_REG(SPIx->DR)); in LL_SPI_ReceiveData16()
1119 *((__IO uint8_t *)&SPIx->DR) = TxData; in LL_SPI_TransmitData8()
1131 *((__IO uint16_t *)&SPIx->DR) = TxData; in LL_SPI_TransmitData16()
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Inc/
Dstm32l4xx_ll_crc.h343 WRITE_REG(CRCx->DR, InData); in LL_CRC_FeedData32()
357 pReg = (__IO uint16_t *)(__IO void *)(&CRCx->DR); in LL_CRC_FeedData16()
370 *(uint8_t __IO *)(&CRCx->DR) = (uint8_t) InData; in LL_CRC_FeedData8()
381 return (uint32_t)(READ_REG(CRCx->DR)); in LL_CRC_ReadData32()
393 return (uint16_t)READ_REG(CRCx->DR); in LL_CRC_ReadData16()
405 return (uint8_t)READ_REG(CRCx->DR); in LL_CRC_ReadData8()
417 return (uint8_t)(READ_REG(CRCx->DR) & 0x7FU); in LL_CRC_ReadData7()
Dstm32l4xx_ll_spi.h1068 tmpreg = SPIx->DR; in LL_SPI_ClearFlag_OVR()
1333 return (uint32_t) & (SPIx->DR); in LL_SPI_DMA_GetRegAddr()
1352 return (uint8_t)(READ_REG(SPIx->DR)); in LL_SPI_ReceiveData8()
1363 return (uint16_t)(READ_REG(SPIx->DR)); in LL_SPI_ReceiveData16()
1376 __IO uint8_t *spidr = ((__IO uint8_t *)&SPIx->DR); in LL_SPI_TransmitData8()
1379 *((__IO uint8_t *)&SPIx->DR) = TxData; in LL_SPI_TransmitData8()
1393 __IO uint16_t *spidr = ((__IO uint16_t *)&SPIx->DR); in LL_SPI_TransmitData16()
1396 SPIx->DR = TxData; in LL_SPI_TransmitData16()
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Inc/
Dstm32l1xx_ll_crc.h136 WRITE_REG(CRCx->DR, InData); in LL_CRC_FeedData32()
147 return (uint32_t)(READ_REG(CRCx->DR)); in LL_CRC_ReadData32()
Dstm32l1xx_ll_usart.h1887 tmpreg = USARTx->DR; in LL_USART_ClearFlag_PE()
1906 tmpreg = USARTx->DR; in LL_USART_ClearFlag_FE()
1925 tmpreg = USARTx->DR; in LL_USART_ClearFlag_NE()
1944 tmpreg = USARTx->DR; in LL_USART_ClearFlag_ORE()
1963 tmpreg = USARTx->DR; in LL_USART_ClearFlag_IDLE()
2391 return ((uint32_t) &(USARTx->DR)); in LL_USART_DMA_GetRegAddr()
2410 return (uint8_t)(READ_BIT(USARTx->DR, USART_DR_DR)); in LL_USART_ReceiveData8()
2421 return (uint16_t)(READ_BIT(USARTx->DR, USART_DR_DR)); in LL_USART_ReceiveData9()
2433 USARTx->DR = Value; in LL_USART_TransmitData8()
2445 USARTx->DR = Value & 0x1FFU; in LL_USART_TransmitData9()
Dstm32l1xx_ll_spi.h869 tmpreg = SPIx->DR; in LL_SPI_ClearFlag_OVR()
1080 return (uint32_t) & (SPIx->DR); in LL_SPI_DMA_GetRegAddr()
1099 return (uint8_t)(READ_REG(SPIx->DR)); in LL_SPI_ReceiveData8()
1110 return (uint16_t)(READ_REG(SPIx->DR)); in LL_SPI_ReceiveData16()
1122 __IO uint8_t *spidr = ((__IO uint8_t *)&SPIx->DR); in LL_SPI_TransmitData8()
1135 __IO uint16_t *spidr = ((__IO uint16_t *)&SPIx->DR); in LL_SPI_TransmitData16()
/loramac-node-2.7.6/src/boards/NucleoL152/
Dspi-board.c156 SpiHandle[obj->SpiId].Instance->DR = ( uint16_t ) ( outData & 0xFF ); in SpiInOut()
159 rxData = ( uint16_t ) SpiHandle[obj->SpiId].Instance->DR; in SpiInOut()
/loramac-node-2.7.6/src/boards/SKiM881AXL/
Dspi-board.c156 SpiHandle[obj->SpiId].Instance->DR = ( uint16_t ) ( outData & 0xFF ); in SpiInOut()
159 rxData = ( uint16_t ) SpiHandle[obj->SpiId].Instance->DR; in SpiInOut()

123