HAL SBS Functions

Floating point unit interrupts management functions

group SBS_Exported_Functions_Group1

This section provides functions to manage the floating point interrupts:

Functions

void HAL_SBS_EnableFPUIT ( uint32_t floating_point )

Enable the floating point unit interrupt(s).

Parameters :

floating_point – This parameter can be one or a combination of the following values:

void HAL_SBS_DisableFPUIT ( uint32_t floating_point )

Disable the floating point unit interrupt(s).

Parameters :

floating_point – This parameter can be one or a combination of the following values:

hal_sbs_it_fpu_status_t HAL_SBS_IsEnabledFPUIT ( uint32_t floating_point )

Check if the floating point unit interrupt is enabled.

Parameters :

floating_point – This parameter can be one of the following values:

Return values :

hal_sbs_it_fpu_status_t – Floating point interrupt status.

TIM break inputs management functions

group SBS_Exported_Functions_Group2

This section provides functions to manage the TIM break inputs:

Functions

void HAL_SBS_EnableTIMBreakInputs ( uint32_t break_input )

Enable the TIM break inputs.

Note

(*) TIM break inputs disabling can only be done by a hardware reset.

Parameters :

break_input – This parameter can be one or a combination of the following values:

void HAL_SBS_DisableTIMBreakInputs ( uint32_t break_input )

Disable the TIM break inputs.

Parameters :

break_input – This parameter can be one or a combination of the following values:

hal_sbs_tim_break_input_status_t HAL_SBS_IsEnabledTIMBreakInputs ( uint32_t break_input )

Check if the TIM break inputs is enabled.

Parameters :

break_input – This parameter can be one of the following values:

Return values :

hal_sbs_tim_break_input_status_t – TIM break inputs status.

Compensation cell management functions

group SBS_Exported_Functions_Group3

This section provides functions to control the compensation cell:

Functions

void HAL_SBS_SetCompensationCellCodeSrc ( uint32_t comp_cell , hal_sbs_ccell_code_src_t code_select )

Set the compensation cell code source.

Parameters :
hal_sbs_ccell_code_src_t HAL_SBS_GetCompensationCellCodeSrc ( uint32_t comp_cell )

Get the compensation cell code source.

Parameters :

comp_cell – This parameter can be one of the following values:

Return values :

hal_sbs_ccell_code_src_t – Compensation cell code source.

hal_status_t HAL_SBS_EnableCompensationCell ( uint32_t comp_cell )

Enable the I/O compensation cell.

Parameters :

comp_cell – This parameter has the following value:

Return values :
  • HAL_ERROR – The compensation cell was not enabled within the allowed timeout period.

  • HAL_OK – Compensation cell is enabled.

void HAL_SBS_DisableCompensationCell ( uint32_t comp_cell )

Disable the I/O compensation cell.

Parameters :

comp_cell – This parameter has the following value:

hal_sbs_ccell_status_t HAL_SBS_IsEnabledCompensationCell ( uint32_t comp_cell )

Check if the I/O compensation cell is enabled.

Parameters :

comp_cell – This parameter can be one of the following values:

Return values :

hal_sbs_ccell_status_t – I/O Compensation cell status.

Compensation cell code management functions

group SBS_Exported_Functions_Group4

This section provides functions to manage the compensation cell:

Functions

uint32_t HAL_SBS_GetPMOSCompensationCellValue ( uint32_t comp_cell )

Get the PMOS compensation value of the selected compensation cell.

Parameters :

comp_cell – This parameter can be one of the following values:

Return values :

uint32_t – Value of the PMOS compensation cell.

uint32_t HAL_SBS_GetNMOSCompensationCellValue ( uint32_t comp_cell )

Get the NMOS compensation value of the selected compensation cell.

Parameters :

comp_cell – This parameter can be one of the following values:

Return values :

uint32_t – Value of the NMOS compensation cell.

void HAL_SBS_SetConfigxMOSCompensationCellCode ( uint32_t comp_cell , uint32_t pmos_code , uint32_t nmos_code )

Set the compensation cell code.

Parameters :
  • comp_cell – This parameter has the following value:

  • pmos_code – PMOS value to be applied to the compensation cell

  • nmos_code – NMOS value to be applied to the compensation cell

void HAL_SBS_GetConfigxMOSCompensationCellCode ( uint32_t comp_cell , uint32_t * p_pmos_code , uint32_t * p_nmos_code )

Get the compensation cell code.

Parameters :
  • comp_cell – This parameter can be one of the following values:

  • p_pmos_code – Pointer to PMOS register of the selected compensation cell

  • p_nmos_code – Pointer to NMOS register of the selected compensation cell

NMI double ECC error in FLASH Interface functions

group SBS_Exported_Functions_Group5

This section provides functions to enable/disable the NMI in case of double ECC error in FLASH Interface:

Functions

void HAL_SBS_FLASH_EnableECCNMI ( void )

Enable the NMI in case of double ECC error in FLASH Interface.

void HAL_SBS_FLASH_DisableECCNMI ( void )

Disable the NMI in case of double ECC error in FLASH Interface.

uint32_t HAL_SBS_FLASH_IsEnabledECCNMI ( void )

Check if the NMI is Enabled in case of double ECC error in FLASH Interface.

Return values :

State – of bit (1 or 0).

Hide Protection Level management functions

group SBS_Exported_Functions_Group6

This section provides functions to set and get the HDP level value :

Functions

hal_status_t HAL_SBS_SetHDPLevelValue ( hal_sbs_hdp_level_value_t value )

Set the HDP level value.

Parameters :

value – Value of the HDP level. This parameter can be one of the following values:

Return values :
  • HAL_ERROR – Invalid HDP level value not set.

  • HAL_OK – Valid HDP level value set correctly.

hal_sbs_hdp_level_value_t HAL_SBS_GetHDPLevelValue ( void )

Get the HDP level value.

Return values :

hal_sbs_hdp_level_value_t – HDPL value.

Core lock registers functions

group SBS_Exported_Functions_Group7

This section provides functions to manage the lock feature :

Functions

void HAL_SBS_LockCoreRegisters ( uint32_t core_regs )

Lock the Core registers.

Note

The unlock can only be done with a system reset

Parameters :

core_regs – This parameter can be one or a combination of the following values:

hal_sbs_core_reg_lock_status_t HAL_SBS_IsLockedCoreRegisters ( uint32_t core_regs )

Check if the Core registers are locked.

Parameters :

core_regs – This parameter can be one of the following values:

Return values :

hal_sbs_core_reg_lock_status_t – SBS Core registers lock status.

Flag management functions

group SBS_Exported_Functions_Group8

This section provides functions to manage the memories erase status feature :

Functions

uint32_t HAL_SBS_IsActiveFlag ( uint32_t flag )

Check if an SBS memories erase status flag is active or not.

Parameters :

flag – This parameter can be one of the following values:

Return values :

retrieve – the state of the selected memory flag (1U or 0U).

void HAL_SBS_ClearFlag ( uint32_t flag )

Clear the SBS memories erase status pending flag(s).

Parameters :

flag – This parameter can be one or a combination of the following values:

Ethernet functions

Note

This section is not available for STM32C562xx.

Channel Pin Remap functions

Note

This section is not available for STM32C562xx.