Our website is under construction. Please stay tuned!

dwm_i2c_read

Reads data from I2C slave.

void dwm_i2c_read(const uint8_t, uint8_t*, uint8_t)
Parameters
  • input – addr, data, len

  • addr – ? 8-bit integer ? (Address of a slave device (only 7 LSB))

  • data – ? 8-bit integer ? (Pointer to a receive buffer)

  • len – ? 8-bit integer ? (Number of bytes to be received)

  • outputStatus code

C code example

uint8_t data[2];
const uint8_t addr = 1; // some address of the slave device**
dwm_i2c_read(addr ,data, 2);

SPI/UART example

Not available on these interfaces.