FreeBSD kernel IICBUS device code
iic.h File Reference
#include <sys/ioccom.h>
Include dependency graph for iic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  iic_msg
 
struct  iiccmd
 
struct  iic_rdwr_data
 

Macros

#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 */
 
#define IIC_RDRW_MAX_MSGS   42
 
#define I2CSTART   _IOW('i', 1, struct iiccmd) /* start condition */
 
#define I2CSTOP   _IO('i', 2) /* stop condition */
 
#define I2CRSTCARD   _IOW('i', 3, struct iiccmd) /* reset the card */
 
#define I2CWRITE   _IOW('i', 4, struct iiccmd) /* send data */
 
#define I2CREAD   _IOW('i', 5, struct iiccmd) /* receive data */
 
#define I2CRDWR   _IOW('i', 6, struct iic_rdwr_data) /* General read/write interface */
 
#define I2CRPTSTART   _IOW('i', 7, struct iiccmd) /* repeated start */
 
#define I2CSADDR   _IOW('i', 8, uint8_t) /* set slave address for future I/O */
 

Macro Definition Documentation

◆ I2CRDWR

#define I2CRDWR   _IOW('i', 6, struct iic_rdwr_data) /* General read/write interface */

Definition at line 68 of file iic.h.

◆ I2CREAD

#define I2CREAD   _IOW('i', 5, struct iiccmd) /* receive data */

Definition at line 67 of file iic.h.

◆ I2CRPTSTART

#define I2CRPTSTART   _IOW('i', 7, struct iiccmd) /* repeated start */

Definition at line 69 of file iic.h.

◆ I2CRSTCARD

#define I2CRSTCARD   _IOW('i', 3, struct iiccmd) /* reset the card */

Definition at line 65 of file iic.h.

◆ I2CSADDR

#define I2CSADDR   _IOW('i', 8, uint8_t) /* set slave address for future I/O */

Definition at line 70 of file iic.h.

◆ I2CSTART

#define I2CSTART   _IOW('i', 1, struct iiccmd) /* start condition */

Definition at line 63 of file iic.h.

◆ I2CSTOP

#define I2CSTOP   _IO('i', 2) /* stop condition */

Definition at line 64 of file iic.h.

◆ I2CWRITE

#define I2CWRITE   _IOW('i', 4, struct iiccmd) /* send data */

Definition at line 66 of file iic.h.

◆ IIC_M_NOSTART

#define IIC_M_NOSTART   0x0004 /* do not send a I2C start before message */

Definition at line 44 of file iic.h.

◆ IIC_M_NOSTOP

#define IIC_M_NOSTOP   0x0002 /* do not send a I2C stop after message */

Definition at line 43 of file iic.h.

◆ IIC_M_RD

#define IIC_M_RD   0x0001 /* read vs write */

Definition at line 42 of file iic.h.

◆ IIC_M_WR

#define IIC_M_WR   0 /* Fake flag for write */

Definition at line 41 of file iic.h.

◆ IIC_RDRW_MAX_MSGS

#define IIC_RDRW_MAX_MSGS   42

Definition at line 61 of file iic.h.