|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Topics | |
| Initialization and de-initialization Functions | |
| Initialization and de-initialization functions | |
| HAL Control functions | |
| HAL Control functions | |
Functions | |
| void | HAL_IncTick (void) |
| This function is called to increment a global variable "uwTick" used as application time base. | |
| void | HAL_Delay (uint32_t Delay) |
| This function provides minimum delay (in milliseconds) based on variable incremented. | |
| uint32_t | HAL_GetTick (void) |
| Provides a tick value in millisecond. | |
| uint32_t | HAL_GetTickPrio (void) |
| This function returns a tick priority. | |
| HAL_StatusTypeDef | HAL_SetTickFreq (HAL_TickFreqTypeDef Freq) |
| Set new tick Freq. | |
| HAL_TickFreqTypeDef | HAL_GetTickFreq (void) |
| Return tick frequency. | |
| void | HAL_SuspendTick (void) |
| Suspend Tick increment. | |
| void | HAL_ResumeTick (void) |
| Resume Tick increment. | |
| uint32_t | HAL_GetHalVersion (void) |
| Returns the HAL revision. | |
| uint32_t | HAL_GetREVID (void) |
| Returns the device revision identifier. | |
| uint32_t | HAL_GetDEVID (void) |
| Returns the device identifier. | |
| uint32_t | HAL_GetUIDw0 (void) |
| Return the first word of the unique device identifier (UID based on 96 bits). | |
| uint32_t | HAL_GetUIDw1 (void) |
| Return the second word of the unique device identifier (UID based on 96 bits). | |
| uint32_t | HAL_GetUIDw2 (void) |
| Return the third word of the unique device identifier (UID based on 96 bits). | |
| void | HAL_SYSCFG_AnalogSwitchConfig (uint32_t SYSCFG_AnalogSwitch, uint32_t SYSCFG_SwitchState) |
| Analog Switch control for dual analog pads. | |
| void | HAL_EnableCompensationCell (void) |
| Enables the I/O Compensation Cell. | |
| void | HAL_DisableCompensationCell (void) |
| Power-down the I/O Compensation Cell. | |
| void | HAL_SYSCFG_EnableIOSpeedOptimize (void) |
| To Enable optimize the I/O speed when the product voltage is low. | |
| void | HAL_SYSCFG_DisableIOSpeedOptimize (void) |
| To Disable optimize the I/O speed when the product voltage is low. | |
| void | HAL_SYSCFG_CompensationCodeSelect (uint32_t SYSCFG_CompCode) |
| Code selection for the I/O Compensation cell. | |
| void | HAL_SYSCFG_CompensationCodeConfig (uint32_t SYSCFG_PMOSCode, uint32_t SYSCFG_NMOSCode) |
| Code selection for the I/O Compensation cell. | |
| void | HAL_DBGMCU_EnableDBGSleepMode (void) |
| Enable the Debug Module during Domain1/CDomain SLEEP mode. | |
| void | HAL_DBGMCU_DisableDBGSleepMode (void) |
| Disable the Debug Module during Domain1/CDomain SLEEP mode. | |
| void | HAL_DBGMCU_EnableDBGStopMode (void) |
| Enable the Debug Module during Domain1/CDomain STOP mode. | |
| void | HAL_DBGMCU_DisableDBGStopMode (void) |
| Disable the Debug Module during Domain1/CDomain STOP mode. | |
| void | HAL_DBGMCU_EnableDBGStandbyMode (void) |
| Enable the Debug Module during Domain1/CDomain STANDBY mode. | |
| void | HAL_DBGMCU_DisableDBGStandbyMode (void) |
| Disable the Debug Module during Domain1/CDomain STANDBY mode. | |
| void | HAL_EXTI_EdgeConfig (uint32_t EXTI_Line, uint32_t EXTI_Edge) |
| Configure the EXTI input event line edge. | |
| void | HAL_EXTI_GenerateSWInterrupt (uint32_t EXTI_Line) |
| Generates a Software interrupt on selected EXTI line. | |
| void | HAL_EXTI_D1_ClearFlag (uint32_t EXTI_Line) |
| Clears the EXTI's line pending flags for Domain D1. | |
| void | HAL_EXTI_D1_EventInputConfig (uint32_t EXTI_Line, uint32_t EXTI_Mode, uint32_t EXTI_LineCmd) |
| Configure the EXTI input event line for Domain D1. | |
| void | HAL_EXTI_D3_EventInputConfig (uint32_t EXTI_Line, uint32_t EXTI_LineCmd, uint32_t EXTI_ClearSrc) |
| Configure the EXTI input event line for Domain D3. | |
| void | HAL_SetFMCMemorySwappingConfig (uint32_t BankMapConfig) |
| Set the FMC Memory Mapping Swapping config. | |
| uint32_t | HAL_GetFMCMemorySwappingConfig (void) |
| Get FMC Bank mapping mode. | |
| void | HAL_SYSCFG_VREFBUF_VoltageScalingConfig (uint32_t VoltageScaling) |
| Configure the internal voltage reference buffer voltage scale. | |
| void | HAL_SYSCFG_VREFBUF_HighImpedanceConfig (uint32_t Mode) |
| Configure the internal voltage reference buffer high impedance mode. | |
| void | HAL_SYSCFG_VREFBUF_TrimmingConfig (uint32_t TrimmingValue) |
| Tune the Internal Voltage Reference buffer (VREFBUF). | |
| HAL_StatusTypeDef | HAL_SYSCFG_EnableVREFBUF (void) |
| Enable the Internal Voltage Reference buffer (VREFBUF). | |
| void | HAL_SYSCFG_DisableVREFBUF (void) |
| Disable the Internal Voltage Reference buffer (VREFBUF). | |
| void HAL_DBGMCU_DisableDBGSleepMode | ( | void | ) |
Disable the Debug Module during Domain1/CDomain SLEEP mode.
| None |
Definition at line 921 of file stm32h7xx_hal.c.
References CLEAR_BIT, DBGMCU, and DBGMCU_CR_DBG_SLEEPD1.
| void HAL_DBGMCU_DisableDBGStandbyMode | ( | void | ) |
Disable the Debug Module during Domain1/CDomain STANDBY mode.
| None |
Definition at line 958 of file stm32h7xx_hal.c.
References CLEAR_BIT, DBGMCU, and DBGMCU_CR_DBG_STANDBYD1.
| void HAL_DBGMCU_DisableDBGStopMode | ( | void | ) |
Disable the Debug Module during Domain1/CDomain STOP mode.
| None |
Definition at line 940 of file stm32h7xx_hal.c.
References CLEAR_BIT, DBGMCU, and DBGMCU_CR_DBG_STOPD1.
| void HAL_DBGMCU_EnableDBGSleepMode | ( | void | ) |
Enable the Debug Module during Domain1/CDomain SLEEP mode.
| None |
Definition at line 912 of file stm32h7xx_hal.c.
References DBGMCU, DBGMCU_CR_DBG_SLEEPD1, and SET_BIT.
| void HAL_DBGMCU_EnableDBGStandbyMode | ( | void | ) |
Enable the Debug Module during Domain1/CDomain STANDBY mode.
| None |
Definition at line 949 of file stm32h7xx_hal.c.
References DBGMCU, DBGMCU_CR_DBG_STANDBYD1, and SET_BIT.
| void HAL_DBGMCU_EnableDBGStopMode | ( | void | ) |
Enable the Debug Module during Domain1/CDomain STOP mode.
| None |
Definition at line 931 of file stm32h7xx_hal.c.
References DBGMCU, DBGMCU_CR_DBG_STOPD1, and SET_BIT.
| void HAL_Delay | ( | uint32_t | Delay | ) |
This function provides minimum delay (in milliseconds) based on variable incremented.
| Delay | specifies the delay time length, in milliseconds. |
| None |
Definition at line 405 of file stm32h7xx_hal.c.
References HAL_GetTick(), HAL_MAX_DELAY, and uwTickFreq.
Referenced by USBD_LL_Delay().
| void HAL_DisableCompensationCell | ( | void | ) |
Power-down the I/O Compensation Cell.
| None |
Definition at line 787 of file stm32h7xx_hal.c.
References CLEAR_BIT, SYSCFG, and SYSCFG_CCCSR_EN.
| void HAL_EnableCompensationCell | ( | void | ) |
Enables the I/O Compensation Cell.
| None |
Definition at line 776 of file stm32h7xx_hal.c.
References SET_BIT, SYSCFG, and SYSCFG_CCCSR_EN.
| void HAL_EXTI_D1_ClearFlag | ( | uint32_t | EXTI_Line | ) |
Clears the EXTI's line pending flags for Domain D1.
| EXTI_Line | Specifies the EXTI LINE, it can be one of the following values, (EXTI_LINE0....EXTI_LINE87)excluding :line45, line81,line83 which are reserved |
| None |
Definition at line 1135 of file stm32h7xx_hal.c.
References __IO, assert_param, EXTI_D1, IS_EXTI_D1_LINE, and WRITE_REG.
| void HAL_EXTI_D1_EventInputConfig | ( | uint32_t | EXTI_Line, |
| uint32_t | EXTI_Mode, | ||
| uint32_t | EXTI_LineCmd ) |
Configure the EXTI input event line for Domain D1.
| EXTI_Line | Specifies the EXTI LINE, it can be one of the following values, (EXTI_LINE0....EXTI_LINE87)excluding :line45, line81,line83 which are reserved |
| EXTI_Mode | Specifies which EXTI line is used as interrupt or an event. This parameter can be one or a combination of the following values :
|
| EXTI_LineCmd | controls (Enable/Disable) the EXTI line. |
| None |
Definition at line 1170 of file stm32h7xx_hal.c.
References __IO, assert_param, CLEAR_BIT, EXTI_D1, EXTI_MODE_EVT, EXTI_MODE_IT, IS_EXTI_D1_LINE, IS_EXTI_MODE_LINE, and SET_BIT.
| void HAL_EXTI_D3_EventInputConfig | ( | uint32_t | EXTI_Line, |
| uint32_t | EXTI_LineCmd, | ||
| uint32_t | EXTI_ClearSrc ) |
Configure the EXTI input event line for Domain D3.
| EXTI_Line | Specifies the EXTI LINE, it can be one of the following values, (EXTI_LINE0...EXTI_LINE15),(EXTI_LINE19...EXTI_LINE21),EXTI_LINE25, EXTI_LINE34, EXTI_LINE35,EXTI_LINE41,(EXTI_LINE48...EXTI_LINE53) |
| EXTI_LineCmd | controls (Enable/Disable) the EXTI line. |
| EXTI_ClearSrc | Specifies the clear source of D3 pending event. This parameter can be one of the following values :
|
| None |
Definition at line 1264 of file stm32h7xx_hal.c.
References __IO, assert_param, CLEAR_BIT, EXTI, IS_EXTI_D3_CLEAR, IS_EXTI_D3_LINE, MODIFY_REG, and SET_BIT.
| void HAL_EXTI_EdgeConfig | ( | uint32_t | EXTI_Line, |
| uint32_t | EXTI_Edge ) |
Configure the EXTI input event line edge.
| EXTI_Line | Specifies the EXTI LINE, it can be one of the following values, (EXTI_LINE0....EXTI_LINE87)excluding :line45, line81,line83 which are reserved |
| EXTI_Edge | Specifies EXTI line Edge used. This parameter can be one of the following values :
|
| None |
Definition at line 1094 of file stm32h7xx_hal.c.
References __IO, assert_param, CLEAR_BIT, EXTI, EXTI_FALLING_EDGE, EXTI_RISING_EDGE, IS_EXTI_EDGE_LINE, IS_HAL_EXTI_CONFIG_LINE, and SET_BIT.
| void HAL_EXTI_GenerateSWInterrupt | ( | uint32_t | EXTI_Line | ) |
Generates a Software interrupt on selected EXTI line.
| EXTI_Line | Specifies the EXTI LINE, it can be one of the following values, (EXTI_LINE0..EXTI_LINE21),EXTI_LINE49,EXTI_LINE51,EXTI_LINE82,EXTI_LINE84,EXTI_LINE85 and EXTI_LINE86. |
| None |
Definition at line 1120 of file stm32h7xx_hal.c.
References __IO, assert_param, EXTI, IS_HAL_EXTI_CONFIG_LINE, and SET_BIT.
| uint32_t HAL_GetDEVID | ( | void | ) |
Returns the device identifier.
| Device | identifier |
Definition at line 475 of file stm32h7xx_hal.c.
References DBGMCU, and IDCODE_DEVID_MASK.
| uint32_t HAL_GetFMCMemorySwappingConfig | ( | void | ) |
Get FMC Bank mapping mode.
| The | FMC Bank mapping mode. This parameter can be FMC_SWAPBMAP_DISABLE, FMC_SWAPBMAP_SDRAM_SRAM, FMC_SWAPBMAP_SDRAMB2 |
Definition at line 1077 of file stm32h7xx_hal.c.
References FMC_Bank1_R, FMC_BCR1_BMAP, and READ_BIT.
| uint32_t HAL_GetHalVersion | ( | void | ) |
Returns the HAL revision.
| version | : 0xXYZR (8bits for each decimal, R for RC) |
Definition at line 457 of file stm32h7xx_hal.c.
References __STM32H7xx_HAL_VERSION.
| uint32_t HAL_GetREVID | ( | void | ) |
Returns the device revision identifier.
| Device | revision identifier |
Definition at line 466 of file stm32h7xx_hal.c.
References DBGMCU.
| uint32_t HAL_GetTick | ( | void | ) |
Provides a tick value in millisecond.
| tick | value |
Definition at line 338 of file stm32h7xx_hal.c.
References uwTick.
Referenced by board_now_ms(), HAL_Delay(), and HAL_SYSCFG_EnableVREFBUF().
| HAL_TickFreqTypeDef HAL_GetTickFreq | ( | void | ) |
Return tick frequency.
| Tick | frequency. Value of HAL_TickFreqTypeDef. |
Definition at line 389 of file stm32h7xx_hal.c.
References uwTickFreq.
| uint32_t HAL_GetTickPrio | ( | void | ) |
This function returns a tick priority.
| tick | priority |
Definition at line 347 of file stm32h7xx_hal.c.
References uwTickPrio.
| uint32_t HAL_GetUIDw0 | ( | void | ) |
Return the first word of the unique device identifier (UID based on 96 bits).
| Device | identifier |
Definition at line 484 of file stm32h7xx_hal.c.
| uint32_t HAL_GetUIDw1 | ( | void | ) |
Return the second word of the unique device identifier (UID based on 96 bits).
| Device | identifier |
Definition at line 493 of file stm32h7xx_hal.c.
| uint32_t HAL_GetUIDw2 | ( | void | ) |
Return the third word of the unique device identifier (UID based on 96 bits).
| Device | identifier |
Definition at line 502 of file stm32h7xx_hal.c.
| void HAL_IncTick | ( | void | ) |
This function is called to increment a global variable "uwTick" used as application time base.
| None |
Definition at line 327 of file stm32h7xx_hal.c.
References uwTick, and uwTickFreq.
Referenced by HAL_TIM_PeriodElapsedCallback().
| void HAL_ResumeTick | ( | void | ) |
Resume Tick increment.
| None |
| None |
| None |
Definition at line 126 of file stm32h7xx_hal_timebase_tim.c.
References __HAL_TIM_ENABLE_IT, htim6, SysTick, SysTick_CTRL_TICKINT_Msk, and TIM_IT_UPDATE.
Referenced by board_sleep().
| void HAL_SetFMCMemorySwappingConfig | ( | uint32_t | BankMapConfig | ) |
Set the FMC Memory Mapping Swapping config.
| BankMapConfig | Defines the FMC Bank mapping configuration. This parameter can be FMC_SWAPBMAP_DISABLE, FMC_SWAPBMAP_SDRAM_SRAM, FMC_SWAPBMAP_SDRAMB2 |
| HAL | state |
Definition at line 1065 of file stm32h7xx_hal.c.
References assert_param, FMC_Bank1_R, FMC_BCR1_BMAP, IS_FMC_SWAPBMAP_MODE, and MODIFY_REG.
| HAL_StatusTypeDef HAL_SetTickFreq | ( | HAL_TickFreqTypeDef | Freq | ) |
Set new tick Freq.
| Status |
Definition at line 356 of file stm32h7xx_hal.c.
References assert_param, HAL_InitTick(), HAL_OK, IS_TICKFREQ, uwTickFreq, and uwTickPrio.
| void HAL_SuspendTick | ( | void | ) |
Suspend Tick increment.
| None |
| None |
| None |
Definition at line 114 of file stm32h7xx_hal_timebase_tim.c.
References __HAL_TIM_DISABLE_IT, htim6, SysTick, SysTick_CTRL_TICKINT_Msk, and TIM_IT_UPDATE.
Referenced by board_sleep().
| void HAL_SYSCFG_AnalogSwitchConfig | ( | uint32_t | SYSCFG_AnalogSwitch, |
| uint32_t | SYSCFG_SwitchState ) |
Analog Switch control for dual analog pads.
| SYSCFG_AnalogSwitch | Selects the analog pad This parameter can be one or a combination of the following values:
|
| SYSCFG_SwitchState | Open or Close the analog switch between dual pads (PXn and PXn_C) This parameter can be one or a combination of the following values:
|
| None |
Definition at line 631 of file stm32h7xx_hal.c.
References assert_param, IS_SYSCFG_ANALOG_SWITCH, IS_SYSCFG_SWITCH_STATE, MODIFY_REG, and SYSCFG.
| void HAL_SYSCFG_CompensationCodeConfig | ( | uint32_t | SYSCFG_PMOSCode, |
| uint32_t | SYSCFG_NMOSCode ) |
Code selection for the I/O Compensation cell.
| SYSCFG_PMOSCode | PMOS compensation code This code is applied to the I/O compensation cell when the CS bit of the SYSCFG_CMPCR is set |
| SYSCFG_NMOSCode | NMOS compensation code This code is applied to the I/O compensation cell when the CS bit of the SYSCFG_CMPCR is set |
| None |
Definition at line 850 of file stm32h7xx_hal.c.
References assert_param, IS_SYSCFG_CODE_CONFIG, MODIFY_REG, SYSCFG, SYSCFG_CCCR_NCC, and SYSCFG_CCCR_PCC.
| void HAL_SYSCFG_CompensationCodeSelect | ( | uint32_t | SYSCFG_CompCode | ) |
Code selection for the I/O Compensation cell.
| SYSCFG_CompCode | Selects the code to be applied for the I/O compensation cell This parameter can be one of the following values:
|
| None |
Definition at line 833 of file stm32h7xx_hal.c.
References assert_param, IS_SYSCFG_CODE_SELECT, MODIFY_REG, SYSCFG, and SYSCFG_CCCSR_CS.
| void HAL_SYSCFG_DisableIOSpeedOptimize | ( | void | ) |
To Disable optimize the I/O speed when the product voltage is low.
| None |
Definition at line 816 of file stm32h7xx_hal.c.
References CLEAR_BIT, SYSCFG, and SYSCFG_CCCSR_HSLV.
| void HAL_SYSCFG_DisableVREFBUF | ( | void | ) |
Disable the Internal Voltage Reference buffer (VREFBUF).
| None |
Definition at line 587 of file stm32h7xx_hal.c.
References CLEAR_BIT, VREFBUF, and VREFBUF_CSR_ENVR.
| void HAL_SYSCFG_EnableIOSpeedOptimize | ( | void | ) |
To Enable optimize the I/O speed when the product voltage is low.
| None |
Definition at line 800 of file stm32h7xx_hal.c.
References SET_BIT, SYSCFG, and SYSCFG_CCCSR_HSLV.
| HAL_StatusTypeDef HAL_SYSCFG_EnableVREFBUF | ( | void | ) |
Enable the Internal Voltage Reference buffer (VREFBUF).
| HAL_OK/HAL_TIMEOUT |
Definition at line 561 of file stm32h7xx_hal.c.
References HAL_GetTick(), HAL_OK, HAL_TIMEOUT, READ_BIT, SET_BIT, VREFBUF, VREFBUF_CSR_ENVR, VREFBUF_CSR_VRR, and VREFBUF_TIMEOUT_VALUE.
| void HAL_SYSCFG_VREFBUF_HighImpedanceConfig | ( | uint32_t | Mode | ) |
Configure the internal voltage reference buffer high impedance mode.
| Mode | specifies the high impedance mode This parameter can be one of the following values:
|
| None |
Definition at line 537 of file stm32h7xx_hal.c.
References assert_param, IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE, MODIFY_REG, VREFBUF, and VREFBUF_CSR_HIZ.
| void HAL_SYSCFG_VREFBUF_TrimmingConfig | ( | uint32_t | TrimmingValue | ) |
Tune the Internal Voltage Reference buffer (VREFBUF).
| None |
Definition at line 549 of file stm32h7xx_hal.c.
References assert_param, IS_SYSCFG_VREFBUF_TRIMMING, MODIFY_REG, VREFBUF, and VREFBUF_CCR_TRIM.
| void HAL_SYSCFG_VREFBUF_VoltageScalingConfig | ( | uint32_t | VoltageScaling | ) |
Configure the internal voltage reference buffer voltage scale.
| VoltageScaling | specifies the output voltage to achieve This parameter can be one of the following values:
|
| None |
Definition at line 521 of file stm32h7xx_hal.c.
References assert_param, IS_SYSCFG_VREFBUF_VOLTAGE_SCALE, MODIFY_REG, VREFBUF, and VREFBUF_CSR_VRS.