Lines Matching refs:cfg
990 HAL_StatusTypeDef HAL_OSPI_HyperbusCfg(OSPI_HandleTypeDef *hospi, OSPI_HyperbusCfgTypeDef *cfg, uin… in HAL_OSPI_HyperbusCfg() argument
997 assert_param(IS_OSPI_RW_RECOVERY_TIME(cfg->RWRecoveryTime)); in HAL_OSPI_HyperbusCfg()
998 assert_param(IS_OSPI_ACCESS_TIME(cfg->AccessTime)); in HAL_OSPI_HyperbusCfg()
999 assert_param(IS_OSPI_WRITE_ZERO_LATENCY(cfg->WriteZeroLatency)); in HAL_OSPI_HyperbusCfg()
1000 assert_param(IS_OSPI_LATENCY_MODE(cfg->LatencyMode)); in HAL_OSPI_HyperbusCfg()
1012 WRITE_REG(hospi->Instance->HLCR, ((cfg->RWRecoveryTime << OCTOSPI_HLCR_TRWR_Pos) | in HAL_OSPI_HyperbusCfg()
1013 (cfg->AccessTime << OCTOSPI_HLCR_TACC_Pos) | in HAL_OSPI_HyperbusCfg()
1014 cfg->WriteZeroLatency | cfg->LatencyMode)); in HAL_OSPI_HyperbusCfg()
1649 HAL_StatusTypeDef HAL_OSPI_AutoPolling(OSPI_HandleTypeDef *hospi, OSPI_AutoPollingTypeDef *cfg, uin… in HAL_OSPI_AutoPolling() argument
1660 assert_param(IS_OSPI_MATCH_MODE(cfg->MatchMode)); in HAL_OSPI_AutoPolling()
1661 assert_param(IS_OSPI_AUTOMATIC_STOP(cfg->AutomaticStop)); in HAL_OSPI_AutoPolling()
1662 assert_param(IS_OSPI_INTERVAL(cfg->Interval)); in HAL_OSPI_AutoPolling()
1666 …if ((hospi->State == HAL_OSPI_STATE_CMD_CFG) && (cfg->AutomaticStop == HAL_OSPI_AUTOMATIC_STOP_ENA… in HAL_OSPI_AutoPolling()
1674 WRITE_REG(hospi->Instance->PSMAR, cfg->Match); in HAL_OSPI_AutoPolling()
1675 WRITE_REG(hospi->Instance->PSMKR, cfg->Mask); in HAL_OSPI_AutoPolling()
1676 WRITE_REG(hospi->Instance->PIR, cfg->Interval); in HAL_OSPI_AutoPolling()
1678 (cfg->MatchMode | cfg->AutomaticStop | OSPI_FUNCTIONAL_MODE_AUTO_POLLING)); in HAL_OSPI_AutoPolling()
1727 HAL_StatusTypeDef HAL_OSPI_AutoPolling_IT(OSPI_HandleTypeDef *hospi, OSPI_AutoPollingTypeDef *cfg) in HAL_OSPI_AutoPolling_IT() argument
1738 assert_param(IS_OSPI_MATCH_MODE(cfg->MatchMode)); in HAL_OSPI_AutoPolling_IT()
1739 assert_param(IS_OSPI_AUTOMATIC_STOP(cfg->AutomaticStop)); in HAL_OSPI_AutoPolling_IT()
1740 assert_param(IS_OSPI_INTERVAL(cfg->Interval)); in HAL_OSPI_AutoPolling_IT()
1752 WRITE_REG(hospi->Instance->PSMAR, cfg->Match); in HAL_OSPI_AutoPolling_IT()
1753 WRITE_REG(hospi->Instance->PSMKR, cfg->Mask); in HAL_OSPI_AutoPolling_IT()
1754 WRITE_REG(hospi->Instance->PIR, cfg->Interval); in HAL_OSPI_AutoPolling_IT()
1756 (cfg->MatchMode | cfg->AutomaticStop | OSPI_FUNCTIONAL_MODE_AUTO_POLLING)); in HAL_OSPI_AutoPolling_IT()
1802 HAL_StatusTypeDef HAL_OSPI_MemoryMapped(OSPI_HandleTypeDef *hospi, OSPI_MemoryMappedTypeDef *cfg) in HAL_OSPI_MemoryMapped() argument
1808 assert_param(IS_OSPI_TIMEOUT_ACTIVATION(cfg->TimeOutActivation)); in HAL_OSPI_MemoryMapped()
1821 if (cfg->TimeOutActivation == HAL_OSPI_TIMEOUT_COUNTER_ENABLE) in HAL_OSPI_MemoryMapped()
1823 assert_param(IS_OSPI_TIMEOUT_PERIOD(cfg->TimeOutPeriod)); in HAL_OSPI_MemoryMapped()
1826 WRITE_REG(hospi->Instance->LPTR, cfg->TimeOutPeriod); in HAL_OSPI_MemoryMapped()
1837 (cfg->TimeOutActivation | OSPI_FUNCTIONAL_MODE_MEMORY_MAPPED)); in HAL_OSPI_MemoryMapped()