blob: 9a661c9af0aba0917cf689561b99786caad72075 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/****************************************************************************
*
* 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.
* Post: A hex representation of value is printed.
*
****************************************************************************/
void print_hex_value(unsigned value);
/****************************************************************************
*
* print_hex_value (signed value, )
*
* Arguments: (typical)
* value: The integer which will be printed
* size: The width of the integer to 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, and the value must be
signed.
* Post: A hex representation of value is printed.
*
****************************************************************************/
void print_signed_hex_value(signed value, unsigned 6 size);
/****************************************************************************
*
* print_string (unsigned char *s)
*
* Arguments: (typical)
* s: Pointer to an array containg a string top print.
*
* Description: (typical)
* This function will print a string through the RS232 interface.
* Pre: The array must be /0 terminated.
* Post: The string is printed as is.
*
****************************************************************************/
void print_string(unsigned char *s);
void print_eol(void);
|