gonzui


Format: Advanced Search

mtkernel_3/device/ser/sysdepend/rx231/ser_mode_rx231.hbare sourcepermlink (0.01 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    Device Driver for micro T-Kernel for μT-Kernel 3.0
    4:  *
    5:  *    Copyright (C) 2020 by Ken Sakamura.
    6:  *    This software is distributed under the T-License 2.2.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by TRON Forum(http://www.tron.org) at 2020/12.
   10:  *
   11:  *----------------------------------------------------------------------
   12:  */
   13: 
   14: 
   15: /*
   16:  *      ser_mode_rx231.h
   17:  *      Serial communication device driver
   18:  *      Communication mode definition for RX231
   19:  */
   20: 
   21: #ifndef __DEV_SER_MODE_RX231_H__
   22: #define __DEV_SER_MODE_RX231_H__
   23: 
   24: #define DEV_SER_MODE_7BIT       (0x00000040)  /* Word length 7bit */
   25: #define DEV_SER_MODE_8BIT       (0x00000000)  /* Word length 8bit */
   26: 
   27: #define DEV_SER_MODE_1STOP      (0x00000000) /* Stop-bit 1bit */
   28: #define DEV_SER_MODE_2STOP      (0x00000008) /* Stop-bit 2bit */
   29: 
   30: #define DEV_SER_MODE_PODD       (0x00000030)  /* parity Odd */
   31: #define DEV_SER_MODE_PEVEN      (0x00000020) /* parity Even */
   32: #define DEV_SER_MODE_PNON       (0x00000000)  /* parity None */
   33: 
   34: #define DEV_SER_MODE_CTSEN      (0x00008000) /* CTS Hard flow control enable */
   35: #define DEV_SER_MODE_RTSEN      (0x00004000) /* RTS Hard flow control enable */
   36: 
   37: /* Communication Error */
   38: #define DEV_SER_ERR_PE          (1<<3)  /* Parity Error */
   39: #define DEV_SER_ERR_FE          (1<<4)  /* Framing Error */
   40: #define DEV_SER_ERR_OE          (1<<5)  /* Overrun Error */
   41: 
   42: 
   43: #endif /* __DEV_SER_MODE_RX231_H__ */