|
STM32L4xx_HAL_Driver
1.14.0
|
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. More... | |
| HAL_StatusTypeDef | HAL_SMBUS_DeInit (SMBUS_HandleTypeDef *hsmbus) |
| DeInitialize the SMBUS peripheral. More... | |
| void | HAL_SMBUS_MspInit (SMBUS_HandleTypeDef *hsmbus) |
| Initialize the SMBUS MSP. More... | |
| void | HAL_SMBUS_MspDeInit (SMBUS_HandleTypeDef *hsmbus) |
| DeInitialize the SMBUS MSP. More... | |
| HAL_StatusTypeDef | HAL_SMBUS_ConfigAnalogFilter (SMBUS_HandleTypeDef *hsmbus, uint32_t AnalogFilter) |
| Configure Analog noise filter. More... | |
| HAL_StatusTypeDef | HAL_SMBUS_ConfigDigitalFilter (SMBUS_HandleTypeDef *hsmbus, uint32_t DigitalFilter) |
| Configure Digital noise filter. More... | |
| HAL_StatusTypeDef | HAL_SMBUS_RegisterCallback (SMBUS_HandleTypeDef *hsmbus, HAL_SMBUS_CallbackIDTypeDef CallbackID, pSMBUS_CallbackTypeDef pCallback) |
| Register a User SMBUS Callback To be used instead of the weak predefined callback. More... | |
| HAL_StatusTypeDef | HAL_SMBUS_UnRegisterCallback (SMBUS_HandleTypeDef *hsmbus, HAL_SMBUS_CallbackIDTypeDef CallbackID) |
| Unregister an SMBUS Callback SMBUS callback is redirected to the weak predefined callback. More... | |
| HAL_StatusTypeDef | HAL_SMBUS_RegisterAddrCallback (SMBUS_HandleTypeDef *hsmbus, pSMBUS_AddrCallbackTypeDef pCallback) |
| Register the Slave Address Match SMBUS Callback To be used instead of the weak HAL_SMBUS_AddrCallback() predefined callback. More... | |
| HAL_StatusTypeDef | HAL_SMBUS_UnRegisterAddrCallback (SMBUS_HandleTypeDef *hsmbus) |
| UnRegister the Slave Address Match SMBUS Callback Info Ready SMBUS Callback is redirected to the weak HAL_SMBUS_AddrCallback() predefined callback. More... | |
Initialization and Configuration functions.
===============================================================================
##### Initialization and de-initialization functions #####
===============================================================================
[..] This subsection provides a set of functions allowing to initialize and
deinitialize 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.
(+) Enable/Disable Analog/Digital filters with HAL_SMBUS_ConfigAnalogFilter() and
HAL_SMBUS_ConfigDigitalFilter(). | HAL_StatusTypeDef HAL_SMBUS_ConfigAnalogFilter | ( | SMBUS_HandleTypeDef * | hsmbus, |
| uint32_t | AnalogFilter | ||
| ) |
Configure Analog noise filter.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| AnalogFilter | This parameter can be one of the following values:
|
| HAL | status |
Definition at line 474 of file stm32l4xx_hal_smbus.c.
| HAL_StatusTypeDef HAL_SMBUS_ConfigDigitalFilter | ( | SMBUS_HandleTypeDef * | hsmbus, |
| uint32_t | DigitalFilter | ||
| ) |
Configure Digital noise filter.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| DigitalFilter | Coefficient of digital noise filter between Min_Data=0x00 and Max_Data=0x0F. |
| HAL | status |
Definition at line 518 of file stm32l4xx_hal_smbus.c.
| HAL_StatusTypeDef HAL_SMBUS_DeInit | ( | SMBUS_HandleTypeDef * | hsmbus | ) |
DeInitialize the SMBUS peripheral.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| HAL | status |
Definition at line 394 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.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| HAL | status |
Definition at line 274 of file stm32l4xx_hal_smbus.c.
| __weak void HAL_SMBUS_MspDeInit | ( | SMBUS_HandleTypeDef * | hsmbus | ) |
DeInitialize the SMBUS MSP.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| None |
Definition at line 455 of file stm32l4xx_hal_smbus.c.
| __weak void HAL_SMBUS_MspInit | ( | SMBUS_HandleTypeDef * | hsmbus | ) |
Initialize the SMBUS MSP.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| None |
Definition at line 439 of file stm32l4xx_hal_smbus.c.
| HAL_StatusTypeDef HAL_SMBUS_RegisterAddrCallback | ( | SMBUS_HandleTypeDef * | hsmbus, |
| pSMBUS_AddrCallbackTypeDef | pCallback | ||
| ) |
Register the Slave Address Match SMBUS Callback To be used instead of the weak HAL_SMBUS_AddrCallback() predefined callback.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| pCallback | pointer to the Address Match Callback function |
| HAL | status |
Definition at line 790 of file stm32l4xx_hal_smbus.c.
| HAL_StatusTypeDef HAL_SMBUS_RegisterCallback | ( | SMBUS_HandleTypeDef * | hsmbus, |
| HAL_SMBUS_CallbackIDTypeDef | CallbackID, | ||
| pSMBUS_CallbackTypeDef | pCallback | ||
| ) |
Register a User SMBUS Callback To be used instead of the weak predefined callback.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
| pCallback | pointer to the Callback function |
| HAL | status |
Definition at line 582 of file stm32l4xx_hal_smbus.c.
| HAL_StatusTypeDef HAL_SMBUS_UnRegisterAddrCallback | ( | SMBUS_HandleTypeDef * | hsmbus | ) |
UnRegister the Slave Address Match SMBUS Callback Info Ready SMBUS Callback is redirected to the weak HAL_SMBUS_AddrCallback() predefined callback.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| HAL | status |
Definition at line 829 of file stm32l4xx_hal_smbus.c.
| HAL_StatusTypeDef HAL_SMBUS_UnRegisterCallback | ( | SMBUS_HandleTypeDef * | hsmbus, |
| HAL_SMBUS_CallbackIDTypeDef | CallbackID | ||
| ) |
Unregister an SMBUS Callback SMBUS callback is redirected to the weak predefined callback.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| CallbackID | ID of the callback to be unregistered This parameter can be one of the following values: This parameter can be one of the following values:
|
| HAL | status |
Definition at line 695 of file stm32l4xx_hal_smbus.c.