diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2004-09-30 08:31:42 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2004-09-30 08:31:42 (GMT) |
commit | 6d8771fb182d835850111a3284148f1fdc37c52d (patch) | |
tree | 8bab67d90a09ac3b591c7756fa4163457b2c494b /Support_Libs/debug/debug.hch | |
parent | 25733e98aa4f4c0e6fe360b5410de75b808d0f2a (diff) | |
download | TASS-6d8771fb182d835850111a3284148f1fdc37c52d.zip TASS-6d8771fb182d835850111a3284148f1fdc37c52d.tar.gz TASS-6d8771fb182d835850111a3284148f1fdc37c52d.tar.bz2 |
Initial Checkin of support libs.
We can now print strings and integers to the RS232 port
Diffstat (limited to '')
-rw-r--r-- | Support_Libs/debug/debug.hch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Support_Libs/debug/debug.hch b/Support_Libs/debug/debug.hch new file mode 100644 index 0000000..abd8bea --- /dev/null +++ b/Support_Libs/debug/debug.hch @@ -0,0 +1,33 @@ +/****************************************************************************
+ *
+ * print_hex_value (unsigned value)
+ *
+ * Arguments: (typical)
+ * value: The integer which will be printed
+ *
+ * Description: (typical)
+ * This function will print the integer through the RS232 interface in a
+ * 32-bit hexadecimal representation.
+ * Pre: Value must be smaller or equal to 32-bits.
+ * RS232 must be available.
+ * Post: A hex representation of value is printed.
+ *
+ ****************************************************************************/
+void print_hex_value(unsigned value);
+
+/****************************************************************************
+ *
+ * print_string (unsigned 8 value[16])
+ *
+ * Arguments: (typical)
+ * value: An array of characters.
+ *
+ * Description: (typical)
+ * This function will print a string through the RS232 interface.
+ * Pre: Value must not be 16 characters in length. If less char's
+ * are used, termination with \0 is recommended.
+ * RS232 must be available.
+ * Post: The string is printed as is.
+ *
+ ****************************************************************************/
+void print_string(unsigned 8 s[16]);
|