Lines Matching refs:config

19 	const struct i2c_nrfx_twim_common_config *config = dev->config;  in i2c_nrfx_twim_recover_bus()  local
25 scl_pin = nrf_twim_scl_pin_get(config->twim.p_twim); in i2c_nrfx_twim_recover_bus()
26 sda_pin = nrf_twim_sda_pin_get(config->twim.p_twim); in i2c_nrfx_twim_recover_bus()
31 nrfx_twim_disable(&config->twim); in i2c_nrfx_twim_recover_bus()
38 (void)pinctrl_apply_state(config->pcfg, PINCTRL_STATE_DEFAULT); in i2c_nrfx_twim_recover_bus()
39 nrfx_twim_enable(&config->twim); in i2c_nrfx_twim_recover_bus()
47 const struct i2c_nrfx_twim_common_config *config = dev->config; in i2c_nrfx_twim_configure() local
55 nrf_twim_frequency_set(config->twim.p_twim, NRF_TWIM_FREQ_100K); in i2c_nrfx_twim_configure()
58 nrf_twim_frequency_set(config->twim.p_twim, NRF_TWIM_FREQ_400K); in i2c_nrfx_twim_configure()
62 nrf_twim_frequency_set(config->twim.p_twim, NRF_TWIM_FREQ_1000K); in i2c_nrfx_twim_configure()
76 const struct i2c_nrfx_twim_common_config *config = dev->config; in i2c_nrfx_twim_msg_transfer() local
86 if (buf_len > config->max_transfer_size) { in i2c_nrfx_twim_msg_transfer()
89 buf_len, config->max_transfer_size); in i2c_nrfx_twim_msg_transfer()
93 res = nrfx_twim_xfer(&config->twim, &cur_xfer, in i2c_nrfx_twim_msg_transfer()
107 const struct i2c_nrfx_twim_common_config *config = dev->config; in twim_nrfx_pm_action() local
111 (void)pinctrl_apply_state(config->pcfg, PINCTRL_STATE_DEFAULT); in twim_nrfx_pm_action()
112 nrfx_twim_enable(&config->twim); in twim_nrfx_pm_action()
115 nrfx_twim_disable(&config->twim); in twim_nrfx_pm_action()
116 (void)pinctrl_apply_state(config->pcfg, PINCTRL_STATE_SLEEP); in twim_nrfx_pm_action()
127 const struct i2c_nrfx_twim_common_config *config = dev->config; in i2c_nrfx_twim_common_init() local
129 config->irq_connect(); in i2c_nrfx_twim_common_init()
131 (void)pinctrl_apply_state(config->pcfg, PINCTRL_STATE_SLEEP); in i2c_nrfx_twim_common_init()
133 if (nrfx_twim_init(&config->twim, &config->twim_config, config->event_handler, in i2c_nrfx_twim_common_init()