From fed318596ca45b303efad99ae4117ea65f2e23cb Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Sat, 5 Jun 2010 17:48:26 +0000 Subject: [PATCH] Add two new flags (IIC_M_NOSTOP and IIC_M_NOSTART) to struct iic_msg to allow consumers of iicbus_transfer() to send messages with repeated starts. Reviewed by: imp --- sys/dev/iicbus/iic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/iicbus/iic.h b/sys/dev/iicbus/iic.h index bc29fa01518..bc2c81e2949 100644 --- a/sys/dev/iicbus/iic.h +++ b/sys/dev/iicbus/iic.h @@ -38,6 +38,8 @@ struct iic_msg uint16_t flags; #define IIC_M_WR 0 /* Fake flag for write */ #define IIC_M_RD 0x0001 /* read vs write */ +#define IIC_M_NOSTOP 0x0002 /* do not send a I2C stop after message */ +#define IIC_M_NOSTART 0x0004 /* do not send a I2C start before message */ uint16_t len; /* msg legnth */ uint8_t * buf; };