123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- /**
- ******************************************************************************
- * @file stm32f0xx_i2c_cpal_usercallback.c
- * @author MCD Application Team
- * @version V1.2.0
- * @date 24-July-2014
- * @brief This file provides all the CPAL UserCallback functions.
- ******************************************************************************
- * @attention
- *
- * <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2>
- *
- * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
- * You may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.st.com/software_license_agreement_liberty_v2
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- ******************************************************************************
- */
- /* Includes ------------------------------------------------------------------*/
- #include "stm32f0xx_i2c_cpal.h"
- /* Private typedef -----------------------------------------------------------*/
- /* Private defines -----------------------------------------------------------*/
- /* Private variables ---------------------------------------------------------*/
- /* Private macro -------------------------------------------------------------*/
- /* Private function prototypes -----------------------------------------------*/
- /* Private functions ---------------------------------------------------------*/
- /*------------------------------------------------------------------------------
- CPAL User Callbacks implementations
- ------------------------------------------------------------------------------*/
- /*=========== Timeout UserCallback ===========*/
- /**
- * @brief User callback that manages the Timeout error
- * @param pDevInitStruct
- * @retval None.
- */
- uint32_t CPAL_TIMEOUT_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
-
- return CPAL_PASS;
- }
- /*=========== Transfer UserCallback ===========*/
- /**
- * @brief Manages the End of Tx transfer event
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_TXTC_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /**
- * @brief Manages the End of Rx transfer event
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_RXTC_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /**
- * @brief Manages Tx transfer event
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_TX_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /**
- * @brief Manages Rx transfer event
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_RX_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /**
- * @brief Manages the End of DMA Tx transfer event
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_DMATXTC_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /**
- * @brief Manages the Half of DMA Tx transfer event
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_DMATXHT_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /**
- * @brief Manages Error of DMA Tx transfer event
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_DMATXTE_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /**
- * @brief Manages the End of DMA Rx transfer event
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_DMARXTC_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /**
- * @brief Manages the Half of DMA Rx transfer event
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_DMARXHT_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /**
- * @brief Manages Error of DMA Rx transfer event
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_DMARXTE_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /*=========== Error UserCallback ===========*/
- /**
- * @brief User callback that manages the I2C device errors
- * @note Make sure that the define USE_SINGLE_ERROR_CALLBACK is uncommented in
- * the cpal_conf.h file, otherwise this callback will not be functional
- * @param pDevInitStruct
- * @param DeviceError
- * @retval None
- */
- /*void CPAL_I2C_ERR_UserCallback(CPAL_DevTypeDef pDevInstance, uint32_t DeviceError)
- {
- }*/
- /**
- * @brief User callback that manages BERR I2C device errors
- * @note Make sure that the define USE_MULTIPLE_ERROR_CALLBACK is uncommented in
- * the cpal_conf.h file, otherwise this callback will not be functional
- * @param pDevInstance
- * @retval None
- */
- /*void CPAL_I2C_BERR_UserCallback(CPAL_DevTypeDef pDevInstance)
- {
- }*/
- /**
- * @brief User callback that manages ARLO I2C device errors
- * @note Make sure that the define USE_MULTIPLE_ERROR_CALLBACK is uncommented in
- * the cpal_conf.h file, otherwise this callback will not be functional
- * @param pDevInstance
- * @retval None
- */
- /*void CPAL_I2C_ARLO_UserCallback(CPAL_DevTypeDef pDevInstance)
- {
- }*/
- /**
- * @brief User callback that manages OVR I2C device errors
- * @note Make sure that the define USE_MULTIPLE_ERROR_CALLBACK is uncommented in
- * the cpal_conf.h file, otherwise this callback will not be functional
- * @param pDevInstance
- * @retval None
- */
- /*void CPAL_I2C_OVR_UserCallback(CPAL_DevTypeDef pDevInstance)
- {
- }*/
- /**
- * @brief User callback that manages AF I2C device errors.
- * @note Make sure that the define USE_MULTIPLE_ERROR_CALLBACK is uncommented in
- * the cpal_conf.h file, otherwise this callback will not be functional
- * @param pDevInstance
- * @retval None
- */
- /*void CPAL_I2C_AF_UserCallback(CPAL_DevTypeDef pDevInstance)
- {
- }*/
- /*=========== Addressing Mode UserCallback ===========*/
- /**
- * @brief User callback that manage General Call Addressing mode
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_GENCALL_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /**
- * @brief User callback that manage Dual Address Addressing mode
- * @param pDevInitStruct
- * @retval None
- */
- /*void CPAL_I2C_DUALF_UserCallback(CPAL_InitTypeDef* pDevInitStruct)
- {
- }*/
- /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|