Fishwaldo commented on code in PR #19871:
URL: https://github.com/apache/nuttx/pull/19871#discussion_r3801055149


##########
include/nuttx/pinctrl/pinctrl.h:
##########
@@ -189,6 +225,48 @@ struct pinctrl_param_s
   } para;
 };
 
+/* What a controller can say about one pad.  Self contained: the strings
+ * are embedded, so the same structure serves the get_pad method and the
+ * PINCTRLC_GETPAD ioctl across the user/kernel boundary.  An empty name
+ * means unnamed.
+ */
+
+struct pinctrl_padinfo_s
+{
+  uint32_t have;                       /* PINCTRL_HAVE_* validity bits */
+  char     name[PINCTRL_NAME_MAX];     /* Pad name */
+  uint32_t function;                   /* Current function select */
+  char     funcname[PINCTRL_NAME_MAX]; /* What that function selects */
+  uint32_t strength;                   /* Drive strength, hardware units */
+  bool     pullup;                     /* Pull up enabled */
+  bool     pulldown;                   /* Pull down enabled */
+  uint32_t slewrate;                   /* Slew rate, hardware units */
+  bool     input;                      /* Input buffer enabled */
+  bool     schmitt;                    /* Schmitt trigger enabled */
+  char     extra[PINCTRL_EXTRA_MAX];   /* Controller specific key:value
+                                        * fields, appended to the pad's
+                                        * /proc/pinctrl line */
+};
+
+/* PINCTRLC_GETPAD argument */
+
+struct pinctrl_getpad_s
+{
+  uint32_t pin;                        /* In */
+  struct pinctrl_padinfo_s info;       /* Out */
+};
+
+/* One pad in a controller's name table; declare entries with
+ * PINCTRL_PADNAME().
+ */
+
+struct pinctrl_padname_s
+{
+  FAR const char *name;                /* Pad name */
+  FAR const char *const *funcs;        /* Function select names, in order */
+  uint8_t nfuncs;                      /* Entries in funcs */

Review Comment:
   Done



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to