Searched refs:ssel_idx (Results 1 – 2 of 2) sorted by relevance
503 static inline cy_en_smif_slave_select_t _cyhal_qspi_slave_idx_to_smif_ss(uint8_t ssel_idx) in _cyhal_qspi_slave_idx_to_smif_ss() argument505 return (cy_en_smif_slave_select_t)(1 << ssel_idx); in _cyhal_qspi_slave_idx_to_smif_ss()546 …nst cyhal_resource_pin_mapping_t *_cyhal_qspi_get_slaveselect(cyhal_gpio_t ssel, uint8_t *ssel_idx) in _cyhal_qspi_get_slaveselect() argument558 *ssel_idx = 0; in _cyhal_qspi_get_slaveselect()568 *ssel_idx = 1; in _cyhal_qspi_get_slaveselect()580 *ssel_idx = 2; in _cyhal_qspi_get_slaveselect()592 *ssel_idx = 3; in _cyhal_qspi_get_slaveselect()821 …for (size_t ssel_idx = 0; ssel_idx < sizeof(cfg->gpios.ssel) / sizeof(cfg->gpios.ssel[0]); ++ssel_… in _cyhal_qspi_init_common() local823 if (NC != cfg->gpios.ssel[ssel_idx]) in _cyhal_qspi_init_common()825 ssel = cfg->gpios.ssel[ssel_idx]; in _cyhal_qspi_init_common()[all …]
135 static void _cyhal_ssel_switch_state(cyhal_spi_t *obj, uint8_t ssel_idx, bool ssel_activate);1008 …for (size_t ssel_idx = 0; ssel_idx < sizeof(cfg->gpios.ssel) / sizeof(cfg->gpios.ssel[0]); ++ssel_… in cyhal_spi_init_cfg() local1010 if (NC != cfg->gpios.ssel[ssel_idx]) in cyhal_spi_init_cfg()1012 obj->pin_ssel[ssel_idx] = cfg->gpios.ssel[ssel_idx]; in cyhal_spi_init_cfg()1013 obj->active_ssel = ssel_idx; in cyhal_spi_init_cfg()1014 result = _cyhal_spi_ssel_config(obj, obj->pin_ssel[ssel_idx], in cyhal_spi_init_cfg()1015 …(cyhal_spi_ssel_polarity_t)((obj->ssel_pol[ssel_idx] >> obj->active_ssel) & 0x1), !obj->dc_configu… in cyhal_spi_init_cfg()1061 size_t ssel_idx = obj->active_ssel; in cyhal_spi_init_cfg() local1062 …while ((result == CY_RSLT_SUCCESS) && ((ssel_idx + 1) < sizeof(cfg->gpios.ssel) / sizeof(cfg->gpio… in cyhal_spi_init_cfg()1064 ++ssel_idx; in cyhal_spi_init_cfg()[all …]