linux/drivers/usb/serial/kobil_sct.h

/* SPDX-License-Identifier: GPL-2.0 */
#define SUSBCRequest_SetBaudRateParityAndStopBits
#define SUSBCR_SBR_MASK
#define SUSBCR_SBR_1200
#define SUSBCR_SBR_9600
#define SUSBCR_SBR_19200
#define SUSBCR_SBR_28800
#define SUSBCR_SBR_38400
#define SUSBCR_SBR_57600
#define SUSBCR_SBR_115200

#define SUSBCR_SPASB_MASK
#define SUSBCR_SPASB_NoParity
#define SUSBCR_SPASB_OddParity
#define SUSBCR_SPASB_EvenParity

#define SUSBCR_SPASB_STPMASK
#define SUSBCR_SPASB_1StopBit
#define SUSBCR_SPASB_2StopBits

#define SUSBCRequest_SetStatusLinesOrQueues
#define SUSBCR_SSL_SETRTS
#define SUSBCR_SSL_CLRRTS
#define SUSBCR_SSL_SETDTR
#define SUSBCR_SSL_CLRDTR

/* Kill the pending/current writes to the comm port. */
#define SUSBCR_SSL_PURGE_TXABORT
/* Kill the pending/current reads to the comm port. */
#define SUSBCR_SSL_PURGE_RXABORT
/* Kill the transmit queue if there. */
#define SUSBCR_SSL_PURGE_TXCLEAR
/* Kill the typeahead buffer if there. */
#define SUSBCR_SSL_PURGE_RXCLEAR

#define SUSBCRequest_GetStatusLineState
/* Any Character received */
#define SUSBCR_GSL_RXCHAR
/* Transmitt Queue Empty */
#define SUSBCR_GSL_TXEMPTY
/* CTS changed state */
#define SUSBCR_GSL_CTS
/* DSR changed state */
#define SUSBCR_GSL_DSR
/* RLSD changed state */
#define SUSBCR_GSL_RLSD
/* BREAK received */
#define SUSBCR_GSL_BREAK
/* Line status error occurred */
#define SUSBCR_GSL_ERR
/* Ring signal detected */
#define SUSBCR_GSL_RING

#define SUSBCRequest_Misc
/* use a predefined reset sequence */
#define SUSBCR_MSC_ResetReader
/* use a predefined sequence to reset the internal queues */
#define SUSBCR_MSC_ResetAllQueues

#define SUSBCRequest_GetMisc

/*
 * get the firmware version from device, coded like this 0xHHLLBBPP with
 * HH = Firmware Version High Byte
 * LL = Firmware Version Low Byte
 * BB = Build Number
 * PP = Further Attributes
 */
#define SUSBCR_MSC_GetFWVersion

/*
 * get the hardware version from device coded like this 0xHHLLPPRR with
 * HH = Software Version High Byte
 * LL = Software Version Low Byte
 * PP = Further Attributes
 * RR = Reserved for the hardware ID
 */
#define SUSBCR_MSC_GetHWVersion