Home
last modified time | relevance | path

Searched refs:SPIx (Results 1 – 25 of 51) sorted by relevance

123

/hal_stm32-latest/stm32cube/stm32mp1xx/drivers/include/
Dstm32mp1xx_ll_spi.h555 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
557 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
567 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
569 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
578 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
580 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
590 __STATIC_INLINE void LL_SPI_EnableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_EnableIOSwap() argument
592 SET_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_EnableIOSwap()
602 __STATIC_INLINE void LL_SPI_DisableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_DisableIOSwap() argument
604 CLEAR_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_DisableIOSwap()
[all …]
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/include/
Dstm32h7xx_ll_spi.h555 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
557 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
567 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
569 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
578 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
580 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
590 __STATIC_INLINE void LL_SPI_EnableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_EnableIOSwap() argument
592 SET_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_EnableIOSwap()
602 __STATIC_INLINE void LL_SPI_DisableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_DisableIOSwap() argument
604 CLEAR_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_DisableIOSwap()
[all …]
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/include/
Dstm32h5xx_ll_spi.h543 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
545 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
555 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
557 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
566 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
568 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
578 __STATIC_INLINE void LL_SPI_EnableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_EnableIOSwap() argument
580 SET_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_EnableIOSwap()
590 __STATIC_INLINE void LL_SPI_DisableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_DisableIOSwap() argument
592 CLEAR_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_DisableIOSwap()
[all …]
/hal_stm32-latest/stm32cube/stm32h7rsxx/drivers/include/
Dstm32h7rsxx_ll_spi.h543 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
545 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
555 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
557 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
566 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
568 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
578 __STATIC_INLINE void LL_SPI_EnableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_EnableIOSwap() argument
580 SET_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_EnableIOSwap()
590 __STATIC_INLINE void LL_SPI_DisableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_DisableIOSwap() argument
592 CLEAR_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_DisableIOSwap()
[all …]
/hal_stm32-latest/stm32cube/stm32n6xx/drivers/include/
Dstm32n6xx_ll_spi.h543 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
545 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
555 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
557 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
566 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
568 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
578 __STATIC_INLINE void LL_SPI_EnableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_EnableIOSwap() argument
580 SET_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_EnableIOSwap()
590 __STATIC_INLINE void LL_SPI_DisableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_DisableIOSwap() argument
592 CLEAR_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_DisableIOSwap()
[all …]
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/include/
Dstm32f0xx_ll_spi.h358 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
360 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
370 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
372 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
381 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
383 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
397 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
399 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
411 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
413 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32f7xx/drivers/include/
Dstm32f7xx_ll_spi.h358 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
360 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
370 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
372 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
381 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
383 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
397 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
399 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
411 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
413 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/include/
Dstm32g0xx_ll_spi.h358 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
360 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
370 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
372 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
381 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
383 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
397 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
399 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
411 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
413 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32c0xx/drivers/include/
Dstm32c0xx_ll_spi.h358 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
360 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
370 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
372 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
381 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
383 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
397 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
399 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
411 __STATIC_INLINE uint32_t LL_SPI_GetMode(const SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
413 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32wb0x/drivers/include/
Dstm32wb0x_ll_spi.h358 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
360 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
370 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
372 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
381 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
383 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
397 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
399 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
411 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
413 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32wlxx/drivers/include/
Dstm32wlxx_ll_spi.h358 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
360 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
370 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
372 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
381 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
383 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
397 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
399 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
411 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
413 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32g4xx/drivers/include/
Dstm32g4xx_ll_spi.h371 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
373 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
383 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
385 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
394 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
396 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
410 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
412 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
424 __STATIC_INLINE uint32_t LL_SPI_GetMode(const SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
426 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/include/
Dstm32l0xx_ll_spi.h297 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
299 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
309 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
311 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
320 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
322 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
336 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
338 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
350 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
352 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32f4xx/drivers/include/
Dstm32f4xx_ll_spi.h297 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
299 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
309 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
311 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
320 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
322 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
336 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
338 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
350 __STATIC_INLINE uint32_t LL_SPI_GetMode(const SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
352 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/include/
Dstm32f3xx_ll_spi.h358 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
360 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
370 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
372 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
381 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
383 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
397 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
399 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
411 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
413 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32f2xx/drivers/include/
Dstm32f2xx_ll_spi.h310 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
312 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
322 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
324 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
333 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
335 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
349 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
351 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
363 __STATIC_INLINE uint32_t LL_SPI_GetMode(const SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
365 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/include/
Dstm32l1xx_ll_spi.h300 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
302 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
312 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
314 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
323 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
325 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
339 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
341 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
353 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
355 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32u5xx/drivers/include/
Dstm32u5xx_ll_spi.h630 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
632 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
642 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
644 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
653 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
655 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
665 __STATIC_INLINE void LL_SPI_EnableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_EnableIOSwap() argument
667 SET_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_EnableIOSwap()
677 __STATIC_INLINE void LL_SPI_DisableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_DisableIOSwap() argument
679 CLEAR_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_DisableIOSwap()
[all …]
/hal_stm32-latest/stm32cube/stm32wbaxx/drivers/include/
Dstm32wbaxx_ll_spi.h625 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
627 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
637 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
639 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
648 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
650 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
660 __STATIC_INLINE void LL_SPI_EnableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_EnableIOSwap() argument
662 SET_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_EnableIOSwap()
672 __STATIC_INLINE void LL_SPI_DisableIOSwap(SPI_TypeDef *SPIx) in LL_SPI_DisableIOSwap() argument
674 CLEAR_BIT(SPIx->CFG2, SPI_CFG2_IOSWP); in LL_SPI_DisableIOSwap()
[all …]
/hal_stm32-latest/stm32cube/stm32f1xx/drivers/include/
Dstm32f1xx_ll_spi.h302 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
304 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
314 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
316 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
325 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
327 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
341 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
343 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
355 __STATIC_INLINE uint32_t LL_SPI_GetMode(const SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
357 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/include/
Dstm32wbxx_ll_spi.h358 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
360 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
370 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
372 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
381 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
383 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
397 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
399 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
411 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
413 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32u0xx/drivers/include/
Dstm32u0xx_ll_spi.h358 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
360 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
370 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
372 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
381 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
383 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
397 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
399 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
411 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
413 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32l4xx/drivers/include/
Dstm32l4xx_ll_spi.h371 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
373 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
383 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
385 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
394 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(const SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
396 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
410 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
412 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
424 __STATIC_INLINE uint32_t LL_SPI_GetMode(const SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
426 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/include/
Dstm32l5xx_ll_spi.h358 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument
360 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable()
370 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument
372 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable()
381 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument
383 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled()
397 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument
399 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode()
411 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument
413 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode()
[all …]
/hal_stm32-latest/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_ll_spi.c133 ErrorStatus LL_SPI_DeInit(SPI_TypeDef *SPIx) in LL_SPI_DeInit() argument
138 assert_param(IS_SPI_ALL_INSTANCE(SPIx)); in LL_SPI_DeInit()
141 if (SPIx == SPI1) in LL_SPI_DeInit()
153 if (SPIx == SPI2) in LL_SPI_DeInit()
165 if (SPIx == SPI3) in LL_SPI_DeInit()
177 if (SPIx == SPI4) in LL_SPI_DeInit()
189 if (SPIx == SPI5) in LL_SPI_DeInit()
201 if (SPIx == SPI6) in LL_SPI_DeInit()
224 ErrorStatus LL_SPI_Init(SPI_TypeDef *SPIx, LL_SPI_InitTypeDef *SPI_InitStruct) in LL_SPI_Init() argument
229 assert_param(IS_SPI_ALL_INSTANCE(SPIx)); in LL_SPI_Init()
[all …]

123