Ignore:
Timestamp:
2010-05-14T13:45:28Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c47e1a8
Parents:
04c7003f
Message:

get/set parameters of the serial communication (baud rate, parity, number of stop bits, word size)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/ipc/serial_ctl.h

    r04c7003f rcf8cc36  
    3232#include <ipc/dev_iface.h>
    3333
     34/** ipc methods for getting/setting serial communication properties
     35 *      1st ipc arg: baud rate
     36 *      2nd ipc arg: parity
     37 *      3rd ipc arg: number of bits in one word
     38 *      4th ipc arg: number of stop bits
     39 */
    3440typedef enum { 
    35         SERIAL_SET_BAUD_RATE = DEV_FIRST_CUSTOM_METHOD,
    36         SERIAL_SET_PARITY,
    37         SERIAL_SET_STOP_BITS
     41        SERIAL_GET_COM_PROPS = DEV_FIRST_CUSTOM_METHOD,
     42        SERIAL_SET_COM_PROPS
    3843} serial_ctl_t;
    3944
     45typedef enum {
     46        SERIAL_NO_PARITY = 0,
     47        SERIAL_ODD_PARITY = 1,
     48        SERIAL_EVEN_PARITY = 3,
     49        SERIAL_MARK_PARITY = 5,
     50        SERIAL_SPACE_PARITY = 7
     51} serial_parity_t;
    4052
    4153#endif
Note: See TracChangeset for help on using the changeset viewer.