L4 HAL Drivers

Embed: (wiki syntax)

« Back to documentation index

Peripheral Control functions

Peripheral Control functions
[OPAMP Exported Functions]

Peripheral Control functions. More...

Functions

HAL_StatusTypeDef HAL_OPAMP_Lock (OPAMP_HandleTypeDef *hopamp)
 Lock the selected OPAMP configuration.
HAL_OPAMP_TrimmingValueTypeDef HAL_OPAMP_GetTrimOffset (OPAMP_HandleTypeDef *hopamp, uint32_t trimmingoffset)
 Return the OPAMP factory trimming value.

Detailed Description

Peripheral Control functions.

 ===============================================================================
                      ##### Peripheral Control functions #####
 =============================================================================== 
    [..]
    This subsection provides a set of functions allowing to control the OPAMP data 
    transfers.




Function Documentation

HAL_OPAMP_TrimmingValueTypeDef HAL_OPAMP_GetTrimOffset ( OPAMP_HandleTypeDef *  hopamp,
uint32_t  trimmingoffset 
)

Return the OPAMP factory trimming value.

Note:
On STM32L4 OPAMP, user can retrieve factory trimming if OPAMP has never been set to user trimming before. Therefore, this function must be called when OPAMP init parameter "UserTrimming" is set to trimming factory, and before OPAMP calibration (function "HAL_OPAMP_SelfCalibrate()"). Otherwise, factory trimming value cannot be retrieved and error status is returned.
Parameters:
hopamp: OPAMP handle
trimmingoffset: Trimming offset (P or N) This parameter must be a value of OPAMP_FactoryTrimming
Note:
Calibration parameter retrieved is corresponding to the mode specified in OPAMP init structure (mode normal or low-power). To retrieve calibration parameters for both modes, repeat this function after OPAMP init structure accordingly updated.
Return values:
Trimmingvalue (P or N): range: 0->31 or OPAMP_FACTORYTRIMMING_DUMMY if trimming value is not available

Definition at line 852 of file stm32l4xx_hal_opamp.c.

HAL_StatusTypeDef HAL_OPAMP_Lock ( OPAMP_HandleTypeDef *  hopamp )

Lock the selected OPAMP configuration.

Note:
On STM32L4, HAL OPAMP lock is software lock only (in contrast of hardware lock available on some other STM32 devices).
Parameters:
hopamp,:OPAMP handle
Return values:
HALstatus

Definition at line 802 of file stm32l4xx_hal_opamp.c.