node_modules/rpio/src/rpio.cc
/*
 * i2c read/write.  The underlying bcm2835_i2c_read/bcm2835_i2c_write functions
 * do not return the number of bytes read/written, only a status code.  The JS
 * layer handles ensuring that the buffer is large enough to accommodate the
 * requested length.
 */
i2c read/write.  The underlying bcm2835_i2c_read/bcm2835_i2c_write functions
do not return the number of bytes read/written, only a status code.  The JS
layer handles ensuring that the buffer is large enough to accommodate the
requested length.
i2c read / write . The underlying bcm2835_i2c_read / bcm2835_i2c_write functions do not return the number of bytes read / written only a status code . The JS layer handles ensuring that the buffer is large enough to accommodate the requested length .
NAN_METHOD(i2c_read)
{
	ASSERT_ARGC2(IS_OBJ, IS_U32);
	char *buf = FROM_OBJ(0);
	uint32_t len = FROM_U32(1);
	NAN_RETURN(bcm2835_i2c_read(buf, len));
}
NAN_METHOD ( i2c_read ) { ASSERT_ARGC2 ( IS_OBJ , IS_U32 ) ; char * buf = FROM_OBJ ( 0 ) ; uint32_t len = FROM_U32 ( 1 ) ; NAN_RETURN ( bcm2835_i2c_read ( buf , len ) ) ; }
i2c read/write.
i2c read / write .