43 #define ERROR_DATA 0xCC 45 static uint8_t buffer[32];
61 for(i = 0; i < len; i++) {
75 buf[len] = ERROR_DATA;
Header file for the Sensortag I2C Driver.
static uip_ds6_addr_t * addr
Pointer to a nbr cache entry.
bool board_i2c_write_read(uint8_t *wdata, uint8_t wlen, uint8_t *rdata, uint8_t rlen)
Write and read in one operation.
void sensor_common_set_error_data(uint8_t *buf, uint8_t len)
Fill a result buffer with dummy error data.
bool board_i2c_write(uint8_t *data, uint8_t len)
Burst write to an I2C device.
bool sensor_common_read_reg(uint8_t addr, uint8_t *buf, uint8_t len)
Reads a sensor's register over I2C.
Header file for the Sensortag Common sensor utilities.
bool sensor_common_write_reg(uint8_t addr, uint8_t *buf, uint8_t len)
Write to a sensor's register over I2C.