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
This commit is contained in:
Nathan Whitehorn 2010-06-05 17:48:26 +00:00
parent 33520e90b2
commit fed318596c

View file

@ -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;
};