mbed library sources, include can_api for nucleo-f091rc
Dependents: CanNucleoF0_example
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c_ex.h@645:13c87cbecd54, 2016-01-07 (annotated)
- Committer:
- ptpaterson
- Date:
- Thu Jan 07 05:49:05 2016 +0000
- Revision:
- 645:13c87cbecd54
- Parent:
- 610:813dcc80987e
corrected freeze on CAN_RECEIVE_IT
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 573:ad23fe03a082 | 1 | /** |
mbed_official | 573:ad23fe03a082 | 2 | ****************************************************************************** |
mbed_official | 573:ad23fe03a082 | 3 | * @file stm32f7xx_hal_i2c_ex.h |
mbed_official | 573:ad23fe03a082 | 4 | * @author MCD Application Team |
mbed_official | 610:813dcc80987e | 5 | * @version V1.0.1 |
mbed_official | 610:813dcc80987e | 6 | * @date 25-June-2015 |
mbed_official | 573:ad23fe03a082 | 7 | * @brief Header file of I2C HAL Extension module. |
mbed_official | 573:ad23fe03a082 | 8 | ****************************************************************************** |
mbed_official | 573:ad23fe03a082 | 9 | * @attention |
mbed_official | 573:ad23fe03a082 | 10 | * |
mbed_official | 573:ad23fe03a082 | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
mbed_official | 573:ad23fe03a082 | 12 | * |
mbed_official | 573:ad23fe03a082 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 573:ad23fe03a082 | 14 | * are permitted provided that the following conditions are met: |
mbed_official | 573:ad23fe03a082 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 573:ad23fe03a082 | 16 | * this list of conditions and the following disclaimer. |
mbed_official | 573:ad23fe03a082 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 573:ad23fe03a082 | 18 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 573:ad23fe03a082 | 19 | * and/or other materials provided with the distribution. |
mbed_official | 573:ad23fe03a082 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 573:ad23fe03a082 | 21 | * may be used to endorse or promote products derived from this software |
mbed_official | 573:ad23fe03a082 | 22 | * without specific prior written permission. |
mbed_official | 573:ad23fe03a082 | 23 | * |
mbed_official | 573:ad23fe03a082 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 573:ad23fe03a082 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 573:ad23fe03a082 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 573:ad23fe03a082 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 573:ad23fe03a082 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 573:ad23fe03a082 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 573:ad23fe03a082 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 573:ad23fe03a082 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 573:ad23fe03a082 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 573:ad23fe03a082 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 573:ad23fe03a082 | 34 | * |
mbed_official | 573:ad23fe03a082 | 35 | ****************************************************************************** |
mbed_official | 573:ad23fe03a082 | 36 | */ |
mbed_official | 573:ad23fe03a082 | 37 | |
mbed_official | 573:ad23fe03a082 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 39 | #ifndef __STM32F7xx_HAL_I2C_EX_H |
mbed_official | 573:ad23fe03a082 | 40 | #define __STM32F7xx_HAL_I2C_EX_H |
mbed_official | 573:ad23fe03a082 | 41 | |
mbed_official | 573:ad23fe03a082 | 42 | #ifdef __cplusplus |
mbed_official | 573:ad23fe03a082 | 43 | extern "C" { |
mbed_official | 573:ad23fe03a082 | 44 | #endif |
mbed_official | 573:ad23fe03a082 | 45 | |
mbed_official | 573:ad23fe03a082 | 46 | /* Includes ------------------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 47 | #include "stm32f7xx_hal_def.h" |
mbed_official | 573:ad23fe03a082 | 48 | |
mbed_official | 573:ad23fe03a082 | 49 | /** @addtogroup STM32F7xx_HAL_Driver |
mbed_official | 573:ad23fe03a082 | 50 | * @{ |
mbed_official | 573:ad23fe03a082 | 51 | */ |
mbed_official | 573:ad23fe03a082 | 52 | |
mbed_official | 573:ad23fe03a082 | 53 | /** @addtogroup I2CEx |
mbed_official | 573:ad23fe03a082 | 54 | * @{ |
mbed_official | 573:ad23fe03a082 | 55 | */ |
mbed_official | 573:ad23fe03a082 | 56 | |
mbed_official | 573:ad23fe03a082 | 57 | /* Exported types ------------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 58 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 59 | |
mbed_official | 573:ad23fe03a082 | 60 | /** @defgroup I2CEx_Exported_Constants I2CEx Exported Constants |
mbed_official | 573:ad23fe03a082 | 61 | * @{ |
mbed_official | 573:ad23fe03a082 | 62 | */ |
mbed_official | 573:ad23fe03a082 | 63 | |
mbed_official | 573:ad23fe03a082 | 64 | /** @defgroup I2CEx_Analog_Filter I2CEx Analog Filter |
mbed_official | 573:ad23fe03a082 | 65 | * @{ |
mbed_official | 573:ad23fe03a082 | 66 | */ |
mbed_official | 573:ad23fe03a082 | 67 | #define I2C_ANALOGFILTER_ENABLE ((uint32_t)0x00000000) |
mbed_official | 573:ad23fe03a082 | 68 | #define I2C_ANALOGFILTER_DISABLE I2C_CR1_ANFOFF |
mbed_official | 573:ad23fe03a082 | 69 | /** |
mbed_official | 573:ad23fe03a082 | 70 | * @} |
mbed_official | 573:ad23fe03a082 | 71 | */ |
mbed_official | 573:ad23fe03a082 | 72 | |
mbed_official | 573:ad23fe03a082 | 73 | /** |
mbed_official | 573:ad23fe03a082 | 74 | * @} |
mbed_official | 573:ad23fe03a082 | 75 | */ |
mbed_official | 573:ad23fe03a082 | 76 | |
mbed_official | 573:ad23fe03a082 | 77 | /* Exported macro ------------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 78 | /* Exported functions --------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 79 | |
mbed_official | 573:ad23fe03a082 | 80 | /* Peripheral Control methods ************************************************/ |
mbed_official | 573:ad23fe03a082 | 81 | HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter); |
mbed_official | 573:ad23fe03a082 | 82 | HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter); |
mbed_official | 573:ad23fe03a082 | 83 | |
mbed_official | 573:ad23fe03a082 | 84 | /* Private constants ---------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 85 | /** @defgroup I2C_Private_Constants I2C Private Constants |
mbed_official | 573:ad23fe03a082 | 86 | * @{ |
mbed_official | 573:ad23fe03a082 | 87 | */ |
mbed_official | 573:ad23fe03a082 | 88 | |
mbed_official | 573:ad23fe03a082 | 89 | /** |
mbed_official | 573:ad23fe03a082 | 90 | * @} |
mbed_official | 573:ad23fe03a082 | 91 | */ |
mbed_official | 573:ad23fe03a082 | 92 | |
mbed_official | 573:ad23fe03a082 | 93 | /* Private macros ------------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 94 | /** @defgroup I2C_Private_Macro I2C Private Macros |
mbed_official | 573:ad23fe03a082 | 95 | * @{ |
mbed_official | 573:ad23fe03a082 | 96 | */ |
mbed_official | 573:ad23fe03a082 | 97 | #define IS_I2C_ANALOG_FILTER(FILTER) (((FILTER) == I2C_ANALOGFILTER_ENABLE) || \ |
mbed_official | 573:ad23fe03a082 | 98 | ((FILTER) == I2C_ANALOGFILTER_DISABLE)) |
mbed_official | 573:ad23fe03a082 | 99 | |
mbed_official | 573:ad23fe03a082 | 100 | #define IS_I2C_DIGITAL_FILTER(FILTER) ((FILTER) <= 0x0000000F) |
mbed_official | 573:ad23fe03a082 | 101 | /** |
mbed_official | 573:ad23fe03a082 | 102 | * @} |
mbed_official | 573:ad23fe03a082 | 103 | */ |
mbed_official | 573:ad23fe03a082 | 104 | |
mbed_official | 573:ad23fe03a082 | 105 | /* Private Functions ---------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 106 | /** @defgroup I2C_Private_Functions I2C Private Functions |
mbed_official | 573:ad23fe03a082 | 107 | * @{ |
mbed_official | 573:ad23fe03a082 | 108 | */ |
mbed_official | 573:ad23fe03a082 | 109 | /* Private functions are defined in stm32f7xx_hal_i2c_ex.c file */ |
mbed_official | 573:ad23fe03a082 | 110 | /** |
mbed_official | 573:ad23fe03a082 | 111 | * @} |
mbed_official | 573:ad23fe03a082 | 112 | */ |
mbed_official | 573:ad23fe03a082 | 113 | |
mbed_official | 573:ad23fe03a082 | 114 | /** |
mbed_official | 573:ad23fe03a082 | 115 | * @} |
mbed_official | 573:ad23fe03a082 | 116 | */ |
mbed_official | 573:ad23fe03a082 | 117 | |
mbed_official | 573:ad23fe03a082 | 118 | /** |
mbed_official | 573:ad23fe03a082 | 119 | * @} |
mbed_official | 573:ad23fe03a082 | 120 | */ |
mbed_official | 573:ad23fe03a082 | 121 | |
mbed_official | 573:ad23fe03a082 | 122 | #ifdef __cplusplus |
mbed_official | 573:ad23fe03a082 | 123 | } |
mbed_official | 573:ad23fe03a082 | 124 | #endif |
mbed_official | 573:ad23fe03a082 | 125 | |
mbed_official | 573:ad23fe03a082 | 126 | #endif /* __STM32F7xx_HAL_I2C_EX_H */ |
mbed_official | 573:ad23fe03a082 | 127 | |
mbed_official | 573:ad23fe03a082 | 128 | |
mbed_official | 573:ad23fe03a082 | 129 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |