You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "acassis (via GitHub)" <gi...@apache.org> on 2023/06/13 19:10:28 UTC

[GitHub] [nuttx] acassis commented on a diff in pull request #9530: Smartcard for stm32h7 uart

acassis commented on code in PR #9530:
URL: https://github.com/apache/nuttx/pull/9530#discussion_r1228585795


##########
include/nuttx/serial/tioctl.h:
##########
@@ -202,6 +202,23 @@
 
 #define TIOCSLINID      _TIOC(0x0037) /* Master send one LIN header with specified LIN identifier: uint8_t */
 
+/* Smart Card Support */
+
+#define TIOCSSMARTCARD  _TIOC(0x0038) /* Set smart card mode */
+#define TIOCGSMARTCARD  _TIOC(0x0039) /* Get Smart card mode */
+
+struct serial_smartcard_s
+  {
+    uint8_t enabled : 1; /* Enable smart card mode */
+    uint8_t clken   : 1; /* Enable smart card clock */
+    uint8_t inverse : 1; /* Use inverse convention */
+    uint32_t clkout;     /* Clock output frequency requested,
+                          * updated with actual value, which is the largest
+                          * value inferior to the request */
+    uint16_t etu;        /* Elementary time unit, eg baud rate in clock counts */
+    uint8_t  cgt;        /* Character guard time in ETU units */
+  };

Review Comment:
   Please align { and } to start of the line, see "struct winsize" below for reference!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org