Ioctl, Tsc_1x22_rs232_get, Tsc_1x22_rs232_set – Maxim Integrated 73M1822/73M1922 Hardware Module for SMDK412 User Manual
Page 21

UG_1x22_054
73M1822/73M1922 Hardware Module for SMDK412 User Guide
Rev. 1.1
21
4.6 ioctl
Description
The driver, while accessed from the kernel space, does not require the calling of a specific IOCTL
command. The following sections detail the equivalent exported direct function calls that are available in
the Kernel space.
4.6.1 tsc_1x22_rs232_get
Description
Retrieves the current status of the RS232 RTS, DTS, CTR and DTR pins.
IOCTL Equivalent
TSC_1X22_MAFE_GET_RS232
Prototype
unsigned char tsc_1x22_rs232_get(void);
Parameters
Data Type
Name
Description
Void
NA
NA
Return Values
Data Type
Description
unsigned char
4.6.2 tsc_1x22_rs232_set
Description
Sets the current status of the RS232 RTS,DTS,CTR and DTR pins and then returns the resulting status
via call to tsc_1x22_rs232_get.
IOCTL Equivalent
TSC_1X22_MAFE_SET_RS232
Prototype
unsigned char tsc_1x22_rs232_set(unsigned char RS232);
Parameters
Data Type
Name
Description
unsigned char
RS232
Bits to set. See
Return Values
Data Type
Description
unsigned char
See