mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 18:20:49 -04:00
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:
parent
33520e90b2
commit
fed318596c
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue