Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 2:3c20a64d4c24, committed 2011-11-25
- Comitter:
- yamaguch
- Date:
- Fri Nov 25 05:11:51 2011 +0000
- Parent:
- 1:58a1c083cf8d
- Child:
- 3:48f7780963e2
- Commit message:
- Updated API document
Changed in this revision
| IOSample.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/IOSample.h Wed Nov 16 03:37:32 2011 +0000
+++ b/IOSample.h Fri Nov 25 05:11:51 2011 +0000
@@ -30,20 +30,20 @@
*/
class IOSample {
public:
- /**
- * class for defining a bit array
- */
+ /**
+ * class for defining a bit array
+ */
class BitArray {
public:
-
- /**
- * creates a BitArray object
- */
+
+ /**
+ * creates a BitArray object
+ */
BitArray(int mask, int values);
- /**
- * operator shorthand for representing the i-th value
- */
+ /**
+ * operator shorthand for representing the i-th value
+ */
int operator[](int i);
private:
@@ -53,20 +53,20 @@
int valueAt(int i);
};
- /**
- * class for defining an int array
- */
+ /**
+ * class for defining an int array
+ */
class IntArray {
public:
-
- /**
- * creates an IntArray object
- */
+
+ /**
+ * creates an IntArray object
+ */
IntArray(int mask, char *value);
- /**
- * operator shorthand for representing the i-th value
- */
+ /**
+ * operator shorthand for representing the i-th value
+ */
int operator[](int i);
private:
@@ -90,9 +90,14 @@
*/
void print(Serial& mon);
- //** DIO array
+ /**
+ * DIO array
+ */
BitArray dio;
- //** AD array
+
+ /**
+ * AD array
+ */
IntArray ad;
};