Home
last modified time | relevance | path

Searched refs:lpc_i2c (Results 1 – 5 of 5) sorted by relevance

/bsp/nxp/lpc/lpc54114-lite/drivers/
A Ddrv_i2c.c13 struct lpc_i2c struct
41 struct lpc_i2c *lpc_i2c = RT_NULL; in master_xfer() argument
48 lpc_i2c = (struct lpc_i2c *)bus; in master_xfer()
58 result = I2C_MasterStart(lpc_i2c->base, msg->addr, direction); in master_xfer()
66 … result = I2C_MasterWriteBlocking(lpc_i2c->base, msg->buf, msg->len, kI2C_TransferDefaultFlag); in master_xfer()
71 … result = I2C_MasterReadBlocking(lpc_i2c->base, msg->buf, msg->len, kI2C_TransferDefaultFlag); in master_xfer()
81 I2C_MasterStop(lpc_i2c->base); in master_xfer()
103 static struct lpc_i2c i2c4 = {0};
/bsp/nxp/lpc/lpc55sxx/Libraries/drivers/
A Ddrv_i2c.c81 struct lpc_i2c_bus *lpc_i2c = (struct lpc_i2c_bus*)userData; in i2c_mst_dma_callback() local
82 lpc_i2c->status = status; in i2c_mst_dma_callback()
83 rt_sem_release(lpc_i2c->sem); in i2c_mst_dma_callback()
94 struct lpc_i2c_bus *lpc_i2c = (struct lpc_i2c_bus *)bus; in lpc_i2c_xfer() local
114 … if(I2C_MasterTransferDMA(lpc_i2c->I2C, &lpc_i2c->i2c_mst_dma_handle, &xfer) != kStatus_Success) in lpc_i2c_xfer()
119 rt_sem_take(lpc_i2c->sem, RT_WAITING_FOREVER); in lpc_i2c_xfer()
135 … if(I2C_MasterTransferDMA(lpc_i2c->I2C, &lpc_i2c->i2c_mst_dma_handle, &xfer) != kStatus_Success) in lpc_i2c_xfer()
140 rt_sem_take(lpc_i2c->sem, RT_WAITING_FOREVER); in lpc_i2c_xfer()
141 if(lpc_i2c->status != kStatus_Success) in lpc_i2c_xfer()
/bsp/nxp/mcx/mcxn/Libraries/drivers/
A Ddrv_i2c.c88 struct lpc_i2c_bus *lpc_i2c = (struct lpc_i2c_bus *)bus; in lpc_i2c_xfer() local
107 if (LPI2C_MasterTransferBlocking(lpc_i2c->I2C, &xfer) != kStatus_Success) in lpc_i2c_xfer()
126 if (LPI2C_MasterTransferBlocking(lpc_i2c->I2C, &xfer) != kStatus_Success) in lpc_i2c_xfer()
/bsp/nxp/mcx/mcxa/Libraries/drivers/
A Ddrv_i2c.c119 struct lpc_i2c_bus *lpc_i2c = (struct lpc_i2c_bus *)bus; in lpc_i2c_xfer() local
138 if (LPI2C_MasterTransferBlocking(lpc_i2c->I2C, &xfer) != kStatus_Success) in lpc_i2c_xfer()
157 if (LPI2C_MasterTransferBlocking(lpc_i2c->I2C, &xfer) != kStatus_Success) in lpc_i2c_xfer()
/bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/
A Ddrv_i2c.c154 struct lpc_i2c_bus *lpc_i2c = (struct lpc_i2c_bus *)bus; in lpc_i2c_xfer() local
170 if (I2C_MasterTransferBlocking(lpc_i2c->I2C, &xfer) != kStatus_Success) in lpc_i2c_xfer()
186 if (I2C_MasterTransferBlocking(lpc_i2c->I2C, &xfer) != kStatus_Success) in lpc_i2c_xfer()

Completed in 15 milliseconds