File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class GPIO {
3333
3434 /* *
3535 * Binary representation of the flow of information, either input or
36- * output.
36+ * output
3737 */
3838 enum class Direction {
3939 INPUT = 0u ,
@@ -76,23 +76,23 @@ class GPIO {
7676 GPIO (Pin pin, Direction direction, Pull pull = Pull::PULL_DOWN );
7777
7878 /* *
79- * Set the direction of the pin .
79+ * Sets whether this pin is configured for input or output .
8080 *
81- * @param[in] direction The direction of information .
81+ * @param[in] direction Pin direction: Direction::Input or Direction::Output .
8282 */
8383 virtual void setDirection (Direction direction) = 0;
8484
8585 /* *
86- * Used for writing a state to a pin .
86+ * Set the output of this pin to the given logic state .
8787 *
88- * @param[in] state The state to write to the pin
88+ * @param[in] state Logic level to set: State::LOW or State::HIGH.
8989 */
9090 virtual void writePin (State state) = 0;
9191
9292 /* *
93- * Used for reading the state of a pin.
93+ * Read the current logic state of this pin.
9494 *
95- * @return The state of the pin .
95+ * @return The pin's logic level: State::LOW or State::HIGH .
9696 */
9797 virtual State readPin () = 0;
9898
Original file line number Diff line number Diff line change 11/* *
22 * The functions defined in here are used for time based operations. All
33 * operations are platform independent.
4- *
54 */
65
76#ifndef _EVT_TIME_
You can’t perform that action at this time.
0 commit comments