10#define _RTEMS_LIBI2C_H
78extern int rtems_libi2c_initialize (
void);
140#define RTEMS_LIBI2C_DRIVER_TABLE_ENTRY \
142 initialization_entry: rtems_i2c_init, \
143 open_entry: rtems_i2c_open, \
144 close_entry: rtems_i2c_close, \
145 read_entry: rtems_i2c_read, \
146 write_entry: rtems_i2c_write, \
147 control_entry: rtems_i2c_ioctl, \
185 uint32_t addr,
int rw);
219#define RTEMS_LIBI2C_MAKE_MINOR(busno, i2caddr) \
220 ((((busno)&((1<<3)-1))<<10) | ((i2caddr)&((1<<10)-1)))
317 unsigned bus,
unsigned i2caddr);
352 unsigned char *bytes,
int nbytes);
356 const unsigned char *bytes,
int nbytes);
361 unsigned char *bytes,
367 const unsigned char *bytes,
383#define RTEMS_LIBI2C_IOCTL_READ_WRITE 1
396#define RTEMS_LIBI2C_IOCTL_START_TFM_READ_WRITE 2
418#define RTEMS_LIBI2C_IOCTL_SET_TFRMODE 3
432#define RTEMS_LIBI2C_IOCTL_GET_DRV_T 4
451#define RTEMS_LIBI2C_IOCTL_READ_WRITE_ASYNC 5
457 unsigned char *rd_buf;
458 const unsigned char *wr_buf;
465 uint8_t bits_per_char;
486 (
int ,
int ,
void * );
497 unsigned char *rd_buf;
498 const unsigned char *wr_buf;
This header file defines the IO Manager API.
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
void(* rtems_libi2c_read_write_done_t)(int, int, void *)
Notification function type for asynchronous read and write.
Definition: libi2c.h:486
This header file defines the RTEMS Classic API.
This structure contains the device driver entries.
Definition: io.h:140
IO command data for asynchronous read and write.
Definition: libi2c.h:496
unsigned size
Definition: tte.h:1