Peripheral State functions.
More...
Peripheral State functions.
==============================================================================
##### NOR State functions #####
==============================================================================
[..]
This subsection permits to get in run-time the status of the NOR controller
and the data flow.
◆ HAL_NOR_GetState()
Return the NOR controller state.
- Parameters
-
| hnor | pointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module. |
- Return values
-
Definition at line 945 of file stm32l4xx_hal_nor.c.
__IO HAL_NOR_StateTypeDef State
◆ HAL_NOR_GetStatus()
Return the NOR operation status.
- Parameters
-
| hnor | pointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module. |
| Address | Device address |
| Timeout | NOR programming Timeout |
- Return values
-
| NOR_Status | The returned value can be: HAL_NOR_STATUS_SUCCESS, HAL_NOR_STATUS_ERROR or HAL_NOR_STATUS_TIMEOUT |
Definition at line 960 of file stm32l4xx_hal_nor.c.
963 uint16_t tmpSR1 = 0, tmpSR2 = 0;
964 uint32_t tickstart = 0;
976 if(Timeout != HAL_MAX_DELAY)
978 if((Timeout == 0)||((
HAL_GetTick() - tickstart ) > Timeout))
985 tmpSR1 = *(__IO uint16_t *)Address;
986 tmpSR2 = *(__IO uint16_t *)Address;
989 if ((tmpSR1 & NOR_MASK_STATUS_DQ6) == (tmpSR2 & NOR_MASK_STATUS_DQ6))
994 if((tmpSR1 & NOR_MASK_STATUS_DQ5) != NOR_MASK_STATUS_DQ5)
999 tmpSR1 = *(__IO uint16_t *)Address;
1000 tmpSR2 = *(__IO uint16_t *)Address;
1003 if ((tmpSR1 & NOR_MASK_STATUS_DQ6) == (tmpSR2 & NOR_MASK_STATUS_DQ6))
1007 if ((tmpSR1 & NOR_MASK_STATUS_DQ5) == NOR_MASK_STATUS_DQ5)
void HAL_NOR_MspWait(NOR_HandleTypeDef *hnor, uint32_t Timeout)
NOR MSP Wait for Ready/Busy signal.
uint32_t HAL_GetTick(void)
Provide a tick value in millisecond.
HAL_NOR_StatusTypeDef
FMC NOR Status typedef.