Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Initialization and de-initialization functions
[SMBUS Exported Functions]
Initialization and Configuration functions. More...
Functions | |
HAL_StatusTypeDef | HAL_SMBUS_Init (SMBUS_HandleTypeDef *hsmbus) |
Initialize the SMBUS according to the specified parameters in the SMBUS_InitTypeDef and initialize the associated handle. | |
HAL_StatusTypeDef | HAL_SMBUS_DeInit (SMBUS_HandleTypeDef *hsmbus) |
DeInitialize the SMBUS peripheral. | |
__weak void | HAL_SMBUS_MspInit (SMBUS_HandleTypeDef *hsmbus) |
Initialize the SMBUS MSP. | |
__weak void | HAL_SMBUS_MspDeInit (SMBUS_HandleTypeDef *hsmbus) |
DeInitialize the SMBUS MSP. |
Detailed Description
Initialization and Configuration functions.
=============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to initialize and de-initialize the SMBUSx peripheral: (+) User must Implement HAL_SMBUS_MspInit() function in which he configures all related peripherals resources (CLOCK, GPIO, IT and NVIC ). (+) Call the function HAL_SMBUS_Init() to configure the selected device with the selected configuration: (++) Clock Timing (++) Bus Timeout (++) Analog Filer mode (++) Own Address 1 (++) Addressing mode (Master, Slave) (++) Dual Addressing mode (++) Own Address 2 (++) Own Address 2 Mask (++) General call mode (++) Nostretch mode (++) Packet Error Check mode (++) Peripheral mode (+) Call the function HAL_SMBUS_DeInit() to restore the default configuration of the selected SMBUSx peripheral.
Function Documentation
HAL_StatusTypeDef HAL_SMBUS_DeInit | ( | SMBUS_HandleTypeDef * | hsmbus ) |
DeInitialize the SMBUS peripheral.
- Parameters:
-
hsmbus : Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
- Return values:
-
HAL status
Definition at line 329 of file stm32l4xx_hal_smbus.c.
HAL_StatusTypeDef HAL_SMBUS_Init | ( | SMBUS_HandleTypeDef * | hsmbus ) |
Initialize the SMBUS according to the specified parameters in the SMBUS_InitTypeDef and initialize the associated handle.
- Parameters:
-
hsmbus : Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
- Return values:
-
HAL status
Definition at line 227 of file stm32l4xx_hal_smbus.c.
__weak void HAL_SMBUS_MspDeInit | ( | SMBUS_HandleTypeDef * | hsmbus ) |
DeInitialize the SMBUS MSP.
- Parameters:
-
hsmbus : Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
- Return values:
-
None
Definition at line 380 of file stm32l4xx_hal_smbus.c.
__weak void HAL_SMBUS_MspInit | ( | SMBUS_HandleTypeDef * | hsmbus ) |
Initialize the SMBUS MSP.
- Parameters:
-
hsmbus : Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
- Return values:
-
None
Definition at line 364 of file stm32l4xx_hal_smbus.c.
Generated on Tue Jul 12 2022 11:00:05 by
