Lines Matching refs:ios_cfg
40 am_hal_ios_config_t ios_cfg; member
104 data->ios_cfg.ui32InterfaceSelect = AM_HAL_IOS_USE_SPI; in spi_config()
133 data->ios_cfg.ui32InterfaceSelect |= AM_HAL_IOS_SPIMODE_3; in spi_config()
135 data->ios_cfg.ui32InterfaceSelect |= AM_HAL_IOS_SPIMODE_2; in spi_config()
139 data->ios_cfg.ui32InterfaceSelect |= AM_HAL_IOS_SPIMODE_1; in spi_config()
141 data->ios_cfg.ui32InterfaceSelect |= AM_HAL_IOS_SPIMODE_0; in spi_config()
163 data->ios_cfg.ui32ROBase = AMBIQ_SPID_FIFO_BASE; in spi_config()
165 data->ios_cfg.ui32FIFOBase = AMBIQ_SPID_FIFO_BASE; in spi_config()
169 data->ios_cfg.ui32RAMBase = AMBIQ_SPID_FIFO_END; in spi_config()
171 data->ios_cfg.ui32FIFOThreshold = AMBIQ_SPID_FIFO_LENGTH >> 1; in spi_config()
173 data->ios_cfg.pui8SRAMBuffer = ambiq_spid_sram_buffer, in spi_config()
174 data->ios_cfg.ui32SRAMBufferCap = AMBIQ_SPID_TX_BUFSIZE_MAX, in spi_config()
178 ret = am_hal_ios_configure(data->ios_handler, &data->ios_cfg); in spi_config()