/seL4-camkes-master/projects/util_libs/libplatsupport/src/plat/tk1/ |
H A D | i2c.c | 26 * This driver only supports master mode. It doesn't support acting as a slave. 290 } slave; member in struct:tk1_i2c_state_ 392 * "If a master also incorporates a slave function and it loses arbitration 395 * immediately to its slave mode" 413 * If we are the slave-sender, we should not be sending a STOP signal. 418 * I2C slave." 437 /** Forces CLK pulses down the CLK line to trick a slave device that is holding 438 * SDA low, to release SDA eventually. The slave is expected to release SDA 444 * * Actual bus lockup caused by slave holding SDA low. 775 * or slave mod 1085 tk1_i2c_mmode_read(i2c_slave_t* slave, void* buf, size_t size, bool end_with_repeat_start, i2c_callback_fn cb, void* token) argument 1144 tk1_i2c_mmode_write(i2c_slave_t *slave, const void* buf, size_t size, bool end_with_repeat_start, i2c_callback_fn cb, void* token) argument [all...] |
/seL4-camkes-master/projects/util_libs/libplatsupport/src/arch/arm/ |
H A D | i2c.c | 66 assert(kvs->slave); 77 bytes = i2c_slave_write(kvs->slave, d, abytes, true, NULL, NULL); 84 bytes = i2c_slave_read(kvs->slave, d, dbytes * count, false, NULL, NULL); 105 assert(kvs->slave); 119 bytes = i2c_slave_write(kvs->slave, d, abytes + count * dbytes, false, NULL, NULL); 202 kvs->slave = is; 220 if (kvs->slave == NULL) { 221 ZF_LOGE("KV Slave lib doesn't have underlying slave instance."); 250 if (kvs->slave == NULL) { 251 ZF_LOGE("KV Slave lib doesn't have underlying slave instanc [all...] |
/seL4-camkes-master/projects/util_libs/libplatsupport/src/plat/am335x/ |
H A D | i2c.c | 152 static int omap4_i2c_do_xfer(i2c_slave_t *slave, void *data, size_t size, bool write, argument 155 ZF_LOGV("%s %zu bytes from slave 0x%x", write ? "writing" : "reading", size, slave->address); 156 i2c_bus_t *bus = slave->bus; 174 if (slave->max_speed < dev->speed) { 175 uint32_t freq = i2c_set_speed(bus, slave->max_speed); 176 if (freq != i2c_speed_freqs[slave->max_speed]) { 182 omap4_i2c_reg_write(dev, OMAP4_I2C_SA, slave->address); 230 static int omap4_i2c_slave_read(i2c_slave_t *slave, void *data, size_t size, argument 233 return omap4_i2c_do_xfer(slave, dat 236 omap4_i2c_slave_write(i2c_slave_t *slave, const void *data, size_t size, bool repeat_start, i2c_callback_fn cb, void *token) argument [all...] |
/seL4-camkes-master/projects/util_libs/libplatsupport/src/plat/imx6/ |
H A D | i2c.c | 258 /* Write slave address */ 269 /* Enter slave mode TX mode */ 287 ZF_LOGD("NACK from slave"); 330 master_txstart(struct i2c_bus_priv* dev, int slave) argument 332 master_start(dev, I2CDATA_WRITE(slave)); 336 master_rxstart(struct i2c_bus_priv* dev, int slave) argument 338 master_start(dev, I2CDATA_READ(slave)); 373 ZF_LOGD("Writing %d bytes to slave@0x%02x", len, sl->address); 404 ZF_LOGD("Reading %d bytes from slave@0x%02x", len, sl->address);
|
/seL4-camkes-master/projects/util_libs/libplatsupport/src/mach/exynos/ |
H A D | i2c.c | 223 master_txstart(struct i2c_bus_priv* dev, int slave) argument 228 /* Write slave address */ 229 dev->regs->data = I2CDATA_WRITE(slave); 236 master_rxstart(struct i2c_bus_priv* dev, int slave) argument 241 /* Write slave address */ 242 dev->regs->data = I2CDATA_READ(slave); 268 ZF_LOGD("Reading %d bytes as slave 0x%x", len, dev->regs->address); 297 ZF_LOGD("Writing %d bytes as slave 0x%x", len, dev->regs->address); 330 ZF_LOGD("Reading %d bytes from slave@0x%02x", len, sl->address); 363 ZF_LOGD("Writing %d bytes to slave [all...] |
/seL4-camkes-master/projects/util_libs/libplatsupport/arch_include/arm/platsupport/ |
H A D | i2c.h | 61 /// The slave sent NACK instead of ACK. 63 /// The slave lost its arbitration bid on the bus and the xfer must be retried. 92 /* If a slave device doesn't send ACK after each byte, set this flag in its 93 * slave data structure. 125 * This callback is called when the I2C bus is addressed as a slave. The application 144 /** I2C slave controller handle structure. 147 * for each slave controller you intend to communicate with 151 * structure to communicate with the desired slave controller. 185 * To read and write from/to a target slave in master mode, please see the 188 * You must initialize an i2c_slave_t structure for each slave usin 286 i2c_slave_t *slave; member in struct:i2c_kvslave_ [all...] |