Changeset 1196226 in rtems


Ignore:
Timestamp:
Sep 30, 2008, 10:00:50 AM (11 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
29cc1477
Parents:
57a40406
Message:

Added definitions for asynchronous read and write IO commands.

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r57a40406 r1196226  
     12008-09-30      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * libi2c/libi2c.h: Added definitions for asynchronous read and write IO
     4        commands.
     5
    162008-09-26      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • cpukit/libi2c/libi2c.h

    r57a40406 r1196226  
    415415
    416416#define RTEMS_LIBI2C_IOCTL_GET_DRV_T 4
     417
    417418/*
    418419 * retval = rtems_libi2c_ioctl(rtems_device_minor_number minor,
     
    424425 *
    425426 */
     427
     428/**
     429 * @brief IO control command for asynchronous read and write.
     430 *
     431 * @see rtems_libi2c_read_write_done_t and rtems_libi2c_read_write_async_t.
     432 *
     433 * @warning This is work in progress!
     434 */
     435#define RTEMS_LIBI2C_IOCTL_READ_WRITE_ASYNC 5
    426436
    427437/*
     
    449459} rtems_libi2c_tfm_read_write_t;
    450460
     461/**
     462 * @brief Notification function type for asynchronous read and write.
     463 *
     464 * @see RTEMS_LIBI2C_IOCTL_READ_WRITE_ASYNC and
     465 * rtems_libi2c_read_write_async_t.
     466 *
     467 * @warning This is work in progress!
     468 */
     469typedef void (*rtems_libi2c_read_write_done_t) \
     470  ( int /* return value */, int /* nbytes */, void * /* arg */);
     471
     472/**
     473 * @brief IO command data for asynchronous read and write.
     474 *
     475 * @see RTEMS_LIBI2C_IOCTL_READ_WRITE_ASYNC and
     476 * rtems_libi2c_read_write_done_t.
     477 *
     478 * @warning This is work in progress!
     479 */
     480typedef struct {
     481  unsigned char                 *rd_buf;
     482  const unsigned char           *wr_buf;
     483  int                            byte_cnt;
     484  rtems_libi2c_read_write_done_t done;
     485  void                          *arg;
     486} rtems_libi2c_read_write_async_t;
    451487
    452488#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.