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.
Data transfers Private functions. More...
Functions | |
static HAL_StatusTypeDef | SMBUS_WaitOnFlagUntilTimeout (SMBUS_HandleTypeDef *hsmbus, uint32_t Flag, FlagStatus Status, uint32_t Timeout) |
Handle SMBUS Communication Timeout. | |
static HAL_StatusTypeDef | SMBUS_Enable_IRQ (SMBUS_HandleTypeDef *hsmbus, uint16_t InterruptRequest) |
Manage the enabling of Interrupts. | |
static HAL_StatusTypeDef | SMBUS_Disable_IRQ (SMBUS_HandleTypeDef *hsmbus, uint16_t InterruptRequest) |
Manage the disabling of Interrupts. | |
static HAL_StatusTypeDef | SMBUS_Master_ISR (SMBUS_HandleTypeDef *hsmbus) |
Interrupt Sub-Routine which handle the Interrupt Flags Master Mode. | |
static HAL_StatusTypeDef | SMBUS_Slave_ISR (SMBUS_HandleTypeDef *hsmbus) |
Interrupt Sub-Routine which handle the Interrupt Flags Slave Mode. | |
static void | SMBUS_TransferConfig (SMBUS_HandleTypeDef *hsmbus, uint16_t DevAddress, uint8_t Size, uint32_t Mode, uint32_t Request) |
Handle SMBUSx communication when starting transfer or during transfer (TC or TCR flag are set). |
Detailed Description
Data transfers Private functions.
Function Documentation
static HAL_StatusTypeDef SMBUS_Disable_IRQ | ( | SMBUS_HandleTypeDef * | hsmbus, |
uint16_t | InterruptRequest | ||
) | [static] |
Manage the disabling of Interrupts.
- Parameters:
-
hsmbus : Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. InterruptRequest : Value of SMBUS_Interrupt_configuration_definition.
- Return values:
-
HAL status
Definition at line 1792 of file stm32l4xx_hal_smbus.c.
static HAL_StatusTypeDef SMBUS_Enable_IRQ | ( | SMBUS_HandleTypeDef * | hsmbus, |
uint16_t | InterruptRequest | ||
) | [static] |
Manage the enabling of Interrupts.
- Parameters:
-
hsmbus : Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. InterruptRequest : Value of SMBUS_Interrupt_configuration_definition.
- Return values:
-
HAL status
Definition at line 1750 of file stm32l4xx_hal_smbus.c.
static HAL_StatusTypeDef SMBUS_Master_ISR | ( | SMBUS_HandleTypeDef * | hsmbus ) | [static] |
Interrupt Sub-Routine which handle the Interrupt Flags Master Mode.
- Parameters:
-
hsmbus : Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
- Return values:
-
HAL status
Definition at line 1349 of file stm32l4xx_hal_smbus.c.
static HAL_StatusTypeDef SMBUS_Slave_ISR | ( | SMBUS_HandleTypeDef * | hsmbus ) | [static] |
Interrupt Sub-Routine which handle the Interrupt Flags Slave Mode.
- Parameters:
-
hsmbus : Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
- Return values:
-
HAL status
Definition at line 1546 of file stm32l4xx_hal_smbus.c.
static void SMBUS_TransferConfig | ( | SMBUS_HandleTypeDef * | hsmbus, |
uint16_t | DevAddress, | ||
uint8_t | Size, | ||
uint32_t | Mode, | ||
uint32_t | Request | ||
) | [static] |
Handle SMBUSx communication when starting transfer or during transfer (TC or TCR flag are set).
- Parameters:
-
hsmbus,: SMBUS handle. DevAddress,: specifies the slave address to be programmed. Size,: specifies the number of bytes to be programmed. This parameter must be a value between 0 and 255. Mode,: new state of the SMBUS START condition generation. This parameter can be one or a combination of the following values: - SMBUS_NO_MODE: No specific mode enabled.
- SMBUS_RELOAD_MODE: Enable Reload mode.
- SMBUS_AUTOEND_MODE: Enable Automatic end mode.
- SMBUS_SOFTEND_MODE: Enable Software end mode and Reload mode.
Request,: new state of the SMBUS START condition generation. This parameter can be one of the following values: - SMBUS_NO_STARTSTOP: Don't Generate stop and start condition.
- SMBUS_GENERATE_STOP: Generate stop condition (Size should be set to 0).
- SMBUS_GENERATE_START_READ: Generate Restart for read request.
- SMBUS_GENERATE_START_WRITE: Generate Restart for write request.
- Return values:
-
None
Definition at line 1936 of file stm32l4xx_hal_smbus.c.
static HAL_StatusTypeDef SMBUS_WaitOnFlagUntilTimeout | ( | SMBUS_HandleTypeDef * | hsmbus, |
uint32_t | Flag, | ||
FlagStatus | Status, | ||
uint32_t | Timeout | ||
) | [static] |
Handle SMBUS Communication Timeout.
- Parameters:
-
hsmbus : Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. Flag,: specifies the SMBUS flag to check. Status,: The new Flag status (SET or RESET). Timeout,: Timeout duration
- Return values:
-
HAL status
Definition at line 1868 of file stm32l4xx_hal_smbus.c.
Generated on Tue Jul 12 2022 11:00:17 by
