mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
134 lines
3.4 KiB
C
134 lines
3.4 KiB
C
/**
|
|
******************************************************************************
|
|
* @file stm32n6xx_hal_smbus_ex.h
|
|
* @author MCD Application Team
|
|
* @brief Header file of SMBUS HAL Extended module.
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* Copyright (c) 2023 STMicroelectronics.
|
|
* All rights reserved.
|
|
*
|
|
* This software is licensed under terms that can be found in the LICENSE file
|
|
* in the root directory of this software component.
|
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef STM32N6xx_HAL_SMBUS_EX_H
|
|
#define STM32N6xx_HAL_SMBUS_EX_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "stm32n6xx_hal_def.h"
|
|
|
|
/** @addtogroup STM32N6xx_HAL_Driver
|
|
* @{
|
|
*/
|
|
|
|
/** @addtogroup SMBUSEx
|
|
* @{
|
|
*/
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
/* Exported constants --------------------------------------------------------*/
|
|
/** @defgroup SMBUSEx_Exported_Constants SMBUS Extended Exported Constants
|
|
* @{
|
|
*/
|
|
|
|
/** @defgroup SMBUSEx_FastModePlus SMBUS Extended Fast Mode Plus
|
|
* @{
|
|
*/
|
|
#define SMBUS_FASTMODEPLUS_ENABLE 0x00000000U /*!< Enable Fast Mode Plus */
|
|
#define SMBUS_FASTMODEPLUS_DISABLE 0x00000001U /*!< Disable Fast Mode Plus */
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
/** @defgroup SMBUSEx_Exported_Macros SMBUS Extended Exported Macros
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/* Exported functions --------------------------------------------------------*/
|
|
/** @addtogroup SMBUSEx_Exported_Functions SMBUS Extended Exported Functions
|
|
* @{
|
|
*/
|
|
|
|
/** @addtogroup SMBUSEx_Exported_Functions_Group2 WakeUp Mode Functions
|
|
* @{
|
|
*/
|
|
/* Peripheral Control functions ************************************************/
|
|
HAL_StatusTypeDef HAL_SMBUSEx_EnableWakeUp(SMBUS_HandleTypeDef *hsmbus);
|
|
HAL_StatusTypeDef HAL_SMBUSEx_DisableWakeUp(SMBUS_HandleTypeDef *hsmbus);
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/** @addtogroup SMBUSEx_Exported_Functions_Group3 Fast Mode Plus Functions
|
|
* @{
|
|
*/
|
|
HAL_StatusTypeDef HAL_SMBUSEx_ConfigFastModePlus(SMBUS_HandleTypeDef *hsmbus, uint32_t FastModePlus);
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/* Private constants ---------------------------------------------------------*/
|
|
/** @defgroup SMBUSEx_Private_Constants SMBUS Extended Private Constants
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/* Private macros ------------------------------------------------------------*/
|
|
/** @defgroup SMBUSEx_Private_Macro SMBUS Extended Private Macros
|
|
* @{
|
|
*/
|
|
#define IS_SMBUS_FASTMODEPLUS(__CONFIG__) (((__CONFIG__) == (SMBUS_FASTMODEPLUS_ENABLE)) || \
|
|
((__CONFIG__) == (SMBUS_FASTMODEPLUS_DISABLE)))
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/* Private Functions ---------------------------------------------------------*/
|
|
/** @defgroup SMBUSEx_Private_Functions SMBUS Extended Private Functions
|
|
* @{
|
|
*/
|
|
/* Private functions are defined in stm32n6xx_hal_smbus_ex.c file */
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* STM32N6xx_HAL_SMBUS_EX_H */
|