Hal Drivers for L4
Dependents: BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo
Fork of STM32L4xx_HAL_Driver by
Functions | |
static void | I2C_DMAMasterTransmitCplt (DMA_HandleTypeDef *hdma) |
DMA I2C master transmit process complete callback. | |
static void | I2C_DMAMasterReceiveCplt (DMA_HandleTypeDef *hdma) |
DMA I2C master receive process complete callback. | |
static void | I2C_DMASlaveTransmitCplt (DMA_HandleTypeDef *hdma) |
DMA I2C slave transmit process complete callback. | |
static void | I2C_DMASlaveReceiveCplt (DMA_HandleTypeDef *hdma) |
DMA I2C slave receive process complete callback. | |
static void | I2C_DMAMemTransmitCplt (DMA_HandleTypeDef *hdma) |
DMA I2C Memory Write process complete callback. | |
static void | I2C_DMAMemReceiveCplt (DMA_HandleTypeDef *hdma) |
DMA I2C Memory Read process complete callback. | |
static void | I2C_DMAError (DMA_HandleTypeDef *hdma) |
DMA I2C communication error callback. | |
static HAL_StatusTypeDef | I2C_RequestMemoryWrite (I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout) |
Master sends target device address followed by internal memory address for write request. | |
static HAL_StatusTypeDef | I2C_RequestMemoryRead (I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout) |
Master sends target device address followed by internal memory address for read request. | |
static HAL_StatusTypeDef | I2C_WaitOnFlagUntilTimeout (I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout) |
This function handles I2C Communication Timeout. | |
static HAL_StatusTypeDef | I2C_WaitOnTXISFlagUntilTimeout (I2C_HandleTypeDef *hi2c, uint32_t Timeout) |
This function handles I2C Communication Timeout for specific usage of TXIS flag. | |
static HAL_StatusTypeDef | I2C_WaitOnRXNEFlagUntilTimeout (I2C_HandleTypeDef *hi2c, uint32_t Timeout) |
This function handles I2C Communication Timeout for specific usage of RXNE flag. | |
static HAL_StatusTypeDef | I2C_WaitOnSTOPFlagUntilTimeout (I2C_HandleTypeDef *hi2c, uint32_t Timeout) |
This function handles I2C Communication Timeout for specific usage of STOP flag. | |
static HAL_StatusTypeDef | I2C_IsAcknowledgeFailed (I2C_HandleTypeDef *hi2c, uint32_t Timeout) |
This function handles Acknowledge failed detection during an I2C Communication. | |
static HAL_StatusTypeDef | I2C_MasterTransmit_ISR (I2C_HandleTypeDef *hi2c) |
Handle Interrupt Flags Master Transmit Mode. | |
static HAL_StatusTypeDef | I2C_MasterReceive_ISR (I2C_HandleTypeDef *hi2c) |
Handle Interrupt Flags Master Receive Mode. | |
static HAL_StatusTypeDef | I2C_SlaveTransmit_ISR (I2C_HandleTypeDef *hi2c) |
Handle Interrupt Flags Slave Transmit Mode. | |
static HAL_StatusTypeDef | I2C_SlaveReceive_ISR (I2C_HandleTypeDef *hi2c) |
Handle Interrupt Flags Slave Receive Mode. | |
static void | I2C_TransferConfig (I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t Size, uint32_t Mode, uint32_t Request) |
Handles I2Cx communication when starting transfer or during transfer (TC or TCR flag are set). |
Function Documentation
static void I2C_DMAError | ( | DMA_HandleTypeDef * | hdma ) | [static] |
DMA I2C communication error callback.
- Parameters:
-
hdma : DMA handle
- Return values:
-
None
Definition at line 3805 of file stm32l4xx_hal_i2c.c.
static void I2C_DMAMasterReceiveCplt | ( | DMA_HandleTypeDef * | hdma ) | [static] |
DMA I2C master receive process complete callback.
- Parameters:
-
hdma,: DMA handle
- Return values:
-
None
Definition at line 3272 of file stm32l4xx_hal_i2c.c.
static void I2C_DMAMasterTransmitCplt | ( | DMA_HandleTypeDef * | hdma ) | [static] |
DMA I2C master transmit process complete callback.
- Parameters:
-
hdma,: DMA handle
- Return values:
-
None
Definition at line 3065 of file stm32l4xx_hal_i2c.c.
static void I2C_DMAMemReceiveCplt | ( | DMA_HandleTypeDef * | hdma ) | [static] |
DMA I2C Memory Read process complete callback.
- Parameters:
-
hdma,: DMA handle
- Return values:
-
None
Definition at line 3643 of file stm32l4xx_hal_i2c.c.
static void I2C_DMAMemTransmitCplt | ( | DMA_HandleTypeDef * | hdma ) | [static] |
DMA I2C Memory Write process complete callback.
- Parameters:
-
hdma : DMA handle
- Return values:
-
None
Definition at line 3487 of file stm32l4xx_hal_i2c.c.
static void I2C_DMASlaveReceiveCplt | ( | DMA_HandleTypeDef * | hdma ) | [static] |
DMA I2C slave receive process complete callback.
- Parameters:
-
hdma,: DMA handle
- Return values:
-
None
Definition at line 3435 of file stm32l4xx_hal_i2c.c.
static void I2C_DMASlaveTransmitCplt | ( | DMA_HandleTypeDef * | hdma ) | [static] |
DMA I2C slave transmit process complete callback.
- Parameters:
-
hdma,: DMA handle
- Return values:
-
None
Definition at line 3221 of file stm32l4xx_hal_i2c.c.
static HAL_StatusTypeDef I2C_IsAcknowledgeFailed | ( | I2C_HandleTypeDef * | hi2c, |
uint32_t | Timeout | ||
) | [static] |
This function handles Acknowledge failed detection during an I2C Communication.
- Parameters:
-
hi2c : Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. Timeout,: Timeout duration
- Return values:
-
HAL status
Definition at line 3998 of file stm32l4xx_hal_i2c.c.
static HAL_StatusTypeDef I2C_MasterReceive_ISR | ( | I2C_HandleTypeDef * | hi2c ) | [static] |
Handle Interrupt Flags Master Receive Mode.
- Parameters:
-
hi2c : Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C.
- Return values:
-
HAL status
Definition at line 2683 of file stm32l4xx_hal_i2c.c.
static HAL_StatusTypeDef I2C_MasterTransmit_ISR | ( | I2C_HandleTypeDef * | hi2c ) | [static] |
Handle Interrupt Flags Master Transmit Mode.
- Parameters:
-
hi2c : Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C.
- Return values:
-
HAL status
Definition at line 2576 of file stm32l4xx_hal_i2c.c.
static HAL_StatusTypeDef I2C_RequestMemoryRead | ( | I2C_HandleTypeDef * | hi2c, |
uint16_t | DevAddress, | ||
uint16_t | MemAddress, | ||
uint16_t | MemAddSize, | ||
uint32_t | Timeout | ||
) | [static] |
Master sends target device address followed by internal memory address for read request.
- Parameters:
-
hi2c : Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. DevAddress,: Target device address MemAddress,: Internal memory address MemAddSize,: Size of internal memory address Timeout,: Timeout duration
- Return values:
-
HAL status
Definition at line 3005 of file stm32l4xx_hal_i2c.c.
static HAL_StatusTypeDef I2C_RequestMemoryWrite | ( | I2C_HandleTypeDef * | hi2c, |
uint16_t | DevAddress, | ||
uint16_t | MemAddress, | ||
uint16_t | MemAddSize, | ||
uint32_t | Timeout | ||
) | [static] |
Master sends target device address followed by internal memory address for write request.
- Parameters:
-
hi2c : Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. DevAddress,: Target device address MemAddress,: Internal memory address MemAddSize,: Size of internal memory address Timeout,: Timeout duration
- Return values:
-
HAL status
Definition at line 2940 of file stm32l4xx_hal_i2c.c.
static HAL_StatusTypeDef I2C_SlaveReceive_ISR | ( | I2C_HandleTypeDef * | hi2c ) | [static] |
Handle Interrupt Flags Slave Receive Mode.
- Parameters:
-
hi2c : Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C.
- Return values:
-
HAL status
Definition at line 2877 of file stm32l4xx_hal_i2c.c.
static HAL_StatusTypeDef I2C_SlaveTransmit_ISR | ( | I2C_HandleTypeDef * | hi2c ) | [static] |
Handle Interrupt Flags Slave Transmit Mode.
- Parameters:
-
hi2c : Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C.
- Return values:
-
HAL status
Definition at line 2791 of file stm32l4xx_hal_i2c.c.
static void I2C_TransferConfig | ( | I2C_HandleTypeDef * | hi2c, |
uint16_t | DevAddress, | ||
uint8_t | Size, | ||
uint32_t | Mode, | ||
uint32_t | Request | ||
) | [static] |
Handles I2Cx communication when starting transfer or during transfer (TC or TCR flag are set).
- Parameters:
-
hi2c,: I2C 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 I2C START condition generation. This parameter can be one of the following values: - I2C_RELOAD_MODE: Enable Reload mode .
- I2C_AUTOEND_MODE: Enable Automatic end mode.
- I2C_SOFTEND_MODE: Enable Software end mode.
Request,: new state of the I2C START condition generation. This parameter can be one of the following values: - I2C_NO_STARTSTOP: Don't Generate stop and start condition.
- I2C_GENERATE_STOP: Generate stop condition (Size should be set to 0).
- I2C_GENERATE_START_READ: Generate Restart for read request.
- I2C_GENERATE_START_WRITE: Generate Restart for write request.
- Return values:
-
None
Definition at line 4074 of file stm32l4xx_hal_i2c.c.
static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout | ( | I2C_HandleTypeDef * | hi2c, |
uint32_t | Flag, | ||
FlagStatus | Status, | ||
uint32_t | Timeout | ||
) | [static] |
This function handles I2C Communication Timeout.
- Parameters:
-
hi2c : Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. Flag,: specifies the I2C flag to check. Status,: The new Flag status (SET or RESET). Timeout,: Timeout duration
- Return values:
-
HAL status
Definition at line 3830 of file stm32l4xx_hal_i2c.c.
static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout | ( | I2C_HandleTypeDef * | hi2c, |
uint32_t | Timeout | ||
) | [static] |
This function handles I2C Communication Timeout for specific usage of RXNE flag.
- Parameters:
-
hi2c : Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. Timeout,: Timeout duration
- Return values:
-
HAL status
Definition at line 3951 of file stm32l4xx_hal_i2c.c.
static HAL_StatusTypeDef I2C_WaitOnSTOPFlagUntilTimeout | ( | I2C_HandleTypeDef * | hi2c, |
uint32_t | Timeout | ||
) | [static] |
This function handles I2C Communication Timeout for specific usage of STOP flag.
- Parameters:
-
hi2c : Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. Timeout,: Timeout duration
- Return values:
-
HAL status
Definition at line 3916 of file stm32l4xx_hal_i2c.c.
static HAL_StatusTypeDef I2C_WaitOnTXISFlagUntilTimeout | ( | I2C_HandleTypeDef * | hi2c, |
uint32_t | Timeout | ||
) | [static] |
This function handles I2C Communication Timeout for specific usage of TXIS flag.
- Parameters:
-
hi2c : Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. Timeout,: Timeout duration
- Return values:
-
HAL status
Definition at line 3879 of file stm32l4xx_hal_i2c.c.
Generated on Tue Jul 12 2022 11:35:31 by 1.7.2