Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
tc_ioctl.h File Reference
#include "freertos/stropts.h"

Go to the source code of this file.

Macros

#define TERMIOS_IOC_MAGIC   ('T')
 Magic number for this driver's ioctl calls.
 
#define TCSBRK   IO(TERMIOS_IOC_MAGIC, 9)
 
#define TCPARNONE   IO(TERMIOS_IOC_MAGIC, 0xF0)
 
#define TCPARODD   IO(TERMIOS_IOC_MAGIC, 0xF1)
 
#define TCPAREVEN   IO(TERMIOS_IOC_MAGIC, 0xF2)
 
#define TCPARONE   IO(TERMIOS_IOC_MAGIC, 0xF3)
 
#define TCPARZERO   IO(TERMIOS_IOC_MAGIC, 0xF4)
 
#define TCNINEBITRX   IO(TERMIOS_IOC_MAGIC, 0xF5)
 Use 9-bit reception mode.
 
#define TCSTOPONE   IO(TERMIOS_IOC_MAGIC, 0xF8)
 One stop bit.
 
#define TCSTOPTWO   IO(TERMIOS_IOC_MAGIC, 0xF9)
 Two stop bits.
 
#define TCDRAINNOTIFY   IOW(TERMIOS_IOC_MAGIC, 0xE0, 4)
 Argument is a Notifiable* pointer.
 
#define TCBAUDRATE   IOW(TERMIOS_IOC_MAGIC, 0xE1, 4)
 Argument is the desired baud rate for the port.
 

Detailed Description

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

This file implements can specific ioctl() keys for serial devices.

Author
Balazs Racz
Date
28 Feb 2018

Definition in file tc_ioctl.h.

Macro Definition Documentation

◆ TCBAUDRATE

#define TCBAUDRATE   IOW(TERMIOS_IOC_MAGIC, 0xE1, 4)

Argument is the desired baud rate for the port.

Definition at line 61 of file tc_ioctl.h.

◆ TCDRAINNOTIFY

#define TCDRAINNOTIFY   IOW(TERMIOS_IOC_MAGIC, 0xE0, 4)

Argument is a Notifiable* pointer.

This notifiable will be invoked when all bytes have completed transferring and the transmit engine is idle.

Definition at line 58 of file tc_ioctl.h.

◆ TCNINEBITRX

#define TCNINEBITRX   IO(TERMIOS_IOC_MAGIC, 0xF5)

Use 9-bit reception mode.

Definition at line 50 of file tc_ioctl.h.

◆ TCPAREVEN

#define TCPAREVEN   IO(TERMIOS_IOC_MAGIC, 0xF2)

Definition at line 46 of file tc_ioctl.h.

◆ TCPARNONE

#define TCPARNONE   IO(TERMIOS_IOC_MAGIC, 0xF0)

Definition at line 44 of file tc_ioctl.h.

◆ TCPARODD

#define TCPARODD   IO(TERMIOS_IOC_MAGIC, 0xF1)

Definition at line 45 of file tc_ioctl.h.

◆ TCPARONE

#define TCPARONE   IO(TERMIOS_IOC_MAGIC, 0xF3)

Definition at line 47 of file tc_ioctl.h.

◆ TCPARZERO

#define TCPARZERO   IO(TERMIOS_IOC_MAGIC, 0xF4)

Definition at line 48 of file tc_ioctl.h.

◆ TCSBRK

#define TCSBRK   IO(TERMIOS_IOC_MAGIC, 9)

Definition at line 42 of file tc_ioctl.h.

◆ TCSTOPONE

#define TCSTOPONE   IO(TERMIOS_IOC_MAGIC, 0xF8)

One stop bit.

Definition at line 52 of file tc_ioctl.h.

◆ TCSTOPTWO

#define TCSTOPTWO   IO(TERMIOS_IOC_MAGIC, 0xF9)

Two stop bits.

Definition at line 54 of file tc_ioctl.h.

◆ TERMIOS_IOC_MAGIC

#define TERMIOS_IOC_MAGIC   ('T')

Magic number for this driver's ioctl calls.

Definition at line 40 of file tc_ioctl.h.