Skip to content

Commit

Permalink
serial: add TIOCSSINGLEWIREDUPLEX ioctl
Browse files Browse the repository at this point in the history
  • Loading branch information
PetervdPerk committed May 7, 2024
1 parent c9a2e4a commit 9dcab75
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/nuttx/serial/tioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,14 @@

#define SER_SWAP_ENABLED (1 << 0) /* Enable/disable RX/TX swap */

/* Single-wire UART Duplex */

#define TIOCSSINGLEWIREDUPLEX _TIOC(0x0037) /* Set single-wire duplex mode */
#define TIOCGSINGLEWIREDUPLEX _TIOC(0x0038) /* Get single-wire duplex mode */

# define SER_SINGLEWIRE_DUPLEX_TX (1 << 0) /* Single-wire run in TX Mode */
# define SER_SINGLEWIRE_DUPLEX_RX (0) /* Single-wire run in RX Mode */

/* LIN Protocol Support */

#define TIOCSLINID _TIOC(0x0037) /* Master send one LIN header with specified LIN identifier: uint8_t */
Expand Down

0 comments on commit 9dcab75

Please sign in to comment.