STM32F0xx Standard Peripherals Firmware Library
|
This file provides all the CPAL UserCallback functions. More...
#include "stm32f0xx_i2c_cpal.h"
#include "main.h"
Go to the source code of this file.
Functions | |
void | CPAL_I2C_ERR_UserCallback (CPAL_DevTypeDef pDevInstance, uint32_t DeviceError) |
Manages the End of Tx transfer event. | |
uint32_t | CPAL_TIMEOUT_UserCallback (CPAL_InitTypeDef *pDevInitStruct) |
User callback that manages the Timeout error. | |
Variables | |
__IO TestStatus | TransferStatus |
Detailed Description
This file provides all the CPAL UserCallback functions.
- Author:
- MCD Application Team
- Version:
- V1.4.0
- Date:
- 24-July-2014
- Attention:
© COPYRIGHT 2014 STMicroelectronics
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.
Definition in file I2C_WakeUpFromStop/stm32f0xx_i2c_cpal_usercallback.c.
Function Documentation
void CPAL_I2C_ERR_UserCallback | ( | CPAL_DevTypeDef | pDevInstance, |
uint32_t | DeviceError | ||
) |
Manages the End of Tx transfer event.
- Parameters:
-
pDevInitStruct
- Return values:
-
None Manages the End of Rx transfer event
- Parameters:
-
pDevInitStruct
- Return values:
-
None Manages Tx transfer event
- Parameters:
-
pDevInitStruct
- Return values:
-
None Manages Rx transfer event
- Parameters:
-
pDevInitStruct
- Return values:
-
None Manages the End of DMA Tx transfer event
- Parameters:
-
pDevInitStruct
- Return values:
-
None Manages the Half of DMA Tx transfer event
- Parameters:
-
pDevInitStruct
- Return values:
-
None Manages Error of DMA Tx transfer event
- Parameters:
-
pDevInitStruct
- Return values:
-
None Manages the End of DMA Rx transfer event
- Parameters:
-
pDevInitStruct
- Return values:
-
None Manages the Half of DMA Rx transfer event
- Parameters:
-
pDevInitStruct
- Return values:
-
None Manages Error of DMA Rx transfer event
- Parameters:
-
pDevInitStruct
- Return values:
-
None 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
- Parameters:
-
pDevInitStruct DeviceError
- Return values:
-
None
Definition at line 202 of file I2C_WakeUpFromStop/stm32f0xx_i2c_cpal_usercallback.c.
References FAILED, MESSAGE10, MESSAGE11, and TransferStatus.
uint32_t CPAL_TIMEOUT_UserCallback | ( | CPAL_InitTypeDef * | pDevInitStruct | ) |
User callback that manages the Timeout error.
- Parameters:
-
pDevInitStruct
- Return values:
-
None.
Definition at line 56 of file I2C_WakeUpFromStop/stm32f0xx_i2c_cpal_usercallback.c.
References CPAL_I2C_TIMEOUT_DEFAULT, and MESSAGE12.