stm32f0xx_i2c_cpal_usercallback_template.c 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. /**
  2. ******************************************************************************
  3. * @file stm32f0xx_i2c_cpal_usercallback.c
  4. * @author MCD Application Team
  5. * @version V1.2.0
  6. * @date 24-July-2014
  7. * @brief This file provides all the CPAL UserCallback functions.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
  12. *
  13. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  14. * You may not use this file except in compliance with the License.
  15. * You may obtain a copy of the License at:
  16. *
  17. * http://www.st.com/software_license_agreement_liberty_v2
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an "AS IS" BASIS,
  21. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. *
  25. ******************************************************************************
  26. */
  27. /* Includes ------------------------------------------------------------------*/
  28. #include "stm32f0xx_i2c_cpal.h"
  29. /* Private typedef -----------------------------------------------------------*/
  30. /* Private defines -----------------------------------------------------------*/
  31. /* Private variables ---------------------------------------------------------*/
  32. /* Private macro -------------------------------------------------------------*/
  33. /* Private function prototypes -----------------------------------------------*/
  34. /* Private functions ---------------------------------------------------------*/
  35. /*------------------------------------------------------------------------------
  36. CPAL User Callbacks implementations
  37. ------------------------------------------------------------------------------*/
  38. /*=========== Timeout UserCallback ===========*/
  39. /**
  40. * @brief User callback that manages the Timeout error
  41. * @param pDevInitStruct
  42. * @retval None.
  43. */
  44. uint32_t CPAL_TIMEOUT_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  45. {
  46. return CPAL_PASS;
  47. }
  48. /*=========== Transfer UserCallback ===========*/
  49. /**
  50. * @brief Manages the End of Tx transfer event
  51. * @param pDevInitStruct
  52. * @retval None
  53. */
  54. /*void CPAL_I2C_TXTC_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  55. {
  56. }*/
  57. /**
  58. * @brief Manages the End of Rx transfer event
  59. * @param pDevInitStruct
  60. * @retval None
  61. */
  62. /*void CPAL_I2C_RXTC_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  63. {
  64. }*/
  65. /**
  66. * @brief Manages Tx transfer event
  67. * @param pDevInitStruct
  68. * @retval None
  69. */
  70. /*void CPAL_I2C_TX_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  71. {
  72. }*/
  73. /**
  74. * @brief Manages Rx transfer event
  75. * @param pDevInitStruct
  76. * @retval None
  77. */
  78. /*void CPAL_I2C_RX_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  79. {
  80. }*/
  81. /**
  82. * @brief Manages the End of DMA Tx transfer event
  83. * @param pDevInitStruct
  84. * @retval None
  85. */
  86. /*void CPAL_I2C_DMATXTC_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  87. {
  88. }*/
  89. /**
  90. * @brief Manages the Half of DMA Tx transfer event
  91. * @param pDevInitStruct
  92. * @retval None
  93. */
  94. /*void CPAL_I2C_DMATXHT_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  95. {
  96. }*/
  97. /**
  98. * @brief Manages Error of DMA Tx transfer event
  99. * @param pDevInitStruct
  100. * @retval None
  101. */
  102. /*void CPAL_I2C_DMATXTE_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  103. {
  104. }*/
  105. /**
  106. * @brief Manages the End of DMA Rx transfer event
  107. * @param pDevInitStruct
  108. * @retval None
  109. */
  110. /*void CPAL_I2C_DMARXTC_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  111. {
  112. }*/
  113. /**
  114. * @brief Manages the Half of DMA Rx transfer event
  115. * @param pDevInitStruct
  116. * @retval None
  117. */
  118. /*void CPAL_I2C_DMARXHT_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  119. {
  120. }*/
  121. /**
  122. * @brief Manages Error of DMA Rx transfer event
  123. * @param pDevInitStruct
  124. * @retval None
  125. */
  126. /*void CPAL_I2C_DMARXTE_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  127. {
  128. }*/
  129. /*=========== Error UserCallback ===========*/
  130. /**
  131. * @brief User callback that manages the I2C device errors
  132. * @note Make sure that the define USE_SINGLE_ERROR_CALLBACK is uncommented in
  133. * the cpal_conf.h file, otherwise this callback will not be functional
  134. * @param pDevInitStruct
  135. * @param DeviceError
  136. * @retval None
  137. */
  138. /*void CPAL_I2C_ERR_UserCallback(CPAL_DevTypeDef pDevInstance, uint32_t DeviceError)
  139. {
  140. }*/
  141. /**
  142. * @brief User callback that manages BERR I2C device errors
  143. * @note Make sure that the define USE_MULTIPLE_ERROR_CALLBACK is uncommented in
  144. * the cpal_conf.h file, otherwise this callback will not be functional
  145. * @param pDevInstance
  146. * @retval None
  147. */
  148. /*void CPAL_I2C_BERR_UserCallback(CPAL_DevTypeDef pDevInstance)
  149. {
  150. }*/
  151. /**
  152. * @brief User callback that manages ARLO I2C device errors
  153. * @note Make sure that the define USE_MULTIPLE_ERROR_CALLBACK is uncommented in
  154. * the cpal_conf.h file, otherwise this callback will not be functional
  155. * @param pDevInstance
  156. * @retval None
  157. */
  158. /*void CPAL_I2C_ARLO_UserCallback(CPAL_DevTypeDef pDevInstance)
  159. {
  160. }*/
  161. /**
  162. * @brief User callback that manages OVR I2C device errors
  163. * @note Make sure that the define USE_MULTIPLE_ERROR_CALLBACK is uncommented in
  164. * the cpal_conf.h file, otherwise this callback will not be functional
  165. * @param pDevInstance
  166. * @retval None
  167. */
  168. /*void CPAL_I2C_OVR_UserCallback(CPAL_DevTypeDef pDevInstance)
  169. {
  170. }*/
  171. /**
  172. * @brief User callback that manages AF I2C device errors.
  173. * @note Make sure that the define USE_MULTIPLE_ERROR_CALLBACK is uncommented in
  174. * the cpal_conf.h file, otherwise this callback will not be functional
  175. * @param pDevInstance
  176. * @retval None
  177. */
  178. /*void CPAL_I2C_AF_UserCallback(CPAL_DevTypeDef pDevInstance)
  179. {
  180. }*/
  181. /*=========== Addressing Mode UserCallback ===========*/
  182. /**
  183. * @brief User callback that manage General Call Addressing mode
  184. * @param pDevInitStruct
  185. * @retval None
  186. */
  187. /*void CPAL_I2C_GENCALL_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  188. {
  189. }*/
  190. /**
  191. * @brief User callback that manage Dual Address Addressing mode
  192. * @param pDevInitStruct
  193. * @retval None
  194. */
  195. /*void CPAL_I2C_DUALF_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
  196. {
  197. }*/
  198. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/