Lines Matching defs:buffer
51 mraa::Result MPR121::writeBytes(uint8_t reg, uint8_t *buffer, int len)
53 if (!len || !buffer)
56 // create a buffer 1 byte larger than the supplied buffer,
62 // copy in the buffer after the reg byte
64 buf2[i] = buffer[i-1];
71 int MPR121::readBytes(uint8_t reg, uint8_t *buffer, int len)
73 if (!len || !buffer)
79 buffer[i] = m_i2c.readReg(reg + i);
194 uint8_t buffer[2];
199 readBytes(0x00, buffer, 2);
201 m_buttonStates = (buffer[0] | ((buffer[1] & 0x1f) << 8));
202 if (buffer[1] & 0x80)