HomeSort by relevance Sort by last modified time
    Searched defs:rx_tx_buf (Results 1 - 2 of 2) sorted by null

  /hardware/bsp/intel/peripheral/libmraa/examples/c++/
I2c-compass.cpp 99 uint8_t rx_tx_buf[MAX_BUFFER_LENGTH]; local
106 rx_tx_buf[0] = HMC5883L_CONF_REG_B;
107 rx_tx_buf[1] = GA_1_3_REG;
108 i2c->write(rx_tx_buf, 2);
112 rx_tx_buf[0] = HMC5883L_MODE_REG;
113 rx_tx_buf[1] = HMC5883L_CONT_MODE;
114 i2c->write(rx_tx_buf, 2);
123 i2c->read(rx_tx_buf, DATA_REG_SIZE);
125 x = (rx_tx_buf[HMC5883L_X_MSB_REG] << 8) | rx_tx_buf[HMC5883L_X_LSB_REG]
    [all...]
  /hardware/bsp/intel/peripheral/libmraa/examples/
i2c_HMC5883L.c 84 uint8_t rx_tx_buf[MAX_BUFFER_LENGTH]; local
91 rx_tx_buf[0] = HMC5883L_CONF_REG_B;
92 rx_tx_buf[1] = GA_1_3_REG;
93 mraa_i2c_write(i2c, rx_tx_buf, 2);
97 rx_tx_buf[0] = HMC5883L_MODE_REG;
98 rx_tx_buf[1] = HMC5883L_CONT_MODE;
99 mraa_i2c_write(i2c, rx_tx_buf, 2);
119 mraa_i2c_read(i2c, rx_tx_buf, DATA_REG_SIZE);
121 x = (rx_tx_buf[HMC5883L_X_MSB_REG] << 8) | rx_tx_buf[HMC5883L_X_LSB_REG]
    [all...]

Completed in 331 milliseconds