Lines Matching refs:base

26 #define DEV_BASE(dev) ((I2C_TypeDef *)((const struct i2c_gecko_config *const)(dev)->config)->base)
30 I2C_TypeDef *base; member
49 I2C_TypeDef *base = DEV_BASE(dev); in i2c_gecko_configure() local
81 I2C_Init(base, &i2cInit); in i2c_gecko_configure()
91 I2C_TypeDef *base = DEV_BASE(dev); in i2c_gecko_transfer() local
132 ret = I2C_TransferInit(base, &seq); in i2c_gecko_transfer()
134 ret = I2C_Transfer(base); in i2c_gecko_transfer()
193 I2C_SlaveAddressSet(config->base, cfg->address << _I2C_SADDR_ADDR_SHIFT); in i2c_gecko_target_register()
195 I2C_SlaveAddressMaskSet(config->base, _I2C_SADDRMASK_SADDRMASK_MASK); in i2c_gecko_target_register()
197 I2C_IntDisable(config->base, _I2C_IEN_MASK); in i2c_gecko_target_register()
198 I2C_IntEnable(config->base, I2C_IEN_ADDR | I2C_IEN_RXDATAV | I2C_IEN_ACK | I2C_IEN_SSTOP | in i2c_gecko_target_register()
213 I2C_IntDisable(config->base, _I2C_IEN_MASK); in i2c_gecko_target_unregister()
241 pending = config->base->IF; in i2c_gecko_isr()
246 I2C_IntClear(config->base, I2C_IF_BUSERR); in i2c_gecko_isr()
247 I2C_IntClear(config->base, I2C_IF_ARBLOST); in i2c_gecko_isr()
251 rx_byte = config->base->RXDATA; in i2c_gecko_isr()
252 config->base->CMD = I2C_CMD_ACK; in i2c_gecko_isr()
258 config->base->TXDATA = tx_byte; in i2c_gecko_isr()
263 I2C_IntClear(config->base, I2C_IF_ADDR | I2C_IF_RXDATAV); in i2c_gecko_isr()
265 rx_byte = config->base->RXDATA; in i2c_gecko_isr()
268 config->base->CMD = I2C_CMD_ACK; in i2c_gecko_isr()
270 I2C_IntClear(config->base, I2C_IF_RXDATAV); in i2c_gecko_isr()
276 config->base->TXDATA = tx_byte; in i2c_gecko_isr()
278 I2C_IntClear(config->base, I2C_IF_ACK); in i2c_gecko_isr()
284 I2C_IntClear(config->base, I2C_IF_SSTOP); in i2c_gecko_isr()
312 .base = (I2C_TypeDef *)DT_INST_REG_ADDR(idx), \