PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
TextDevices
libsimpletext
putHex.c
1
/*
2
* @file putHex.c
3
* Function to print a hex number to the default terminal.
4
*
5
* Copyright (c) 2013, Parallax Inc.
6
* Written by Steve Denson
7
*/
8
#include "
simpletext.h
"
9
10
void
putHex
(
int
number)
11
{
12
extern
text_t
*dport_ptr;
13
printNumber(dport_ptr, number, 16, -1,
' '
);
14
}
15
16
/*
17
+--------------------------------------------------------------------
18
| TERMS OF USE: MIT License
19
+--------------------------------------------------------------------
20
Permission is hereby granted, free of charge, to any person obtaining
21
a copy of this software and associated documentation files
22
(the "Software"), to deal in the Software without restriction,
23
including without limitation the rights to use, copy, modify, merge,
24
publish, distribute, sublicense, and/or sell copies of the Software,
25
and to permit persons to whom the Software is furnished to do so,
26
subject to the following conditions:
27
28
The above copyright notice and this permission notice shall be
29
included in all copies or substantial portions of the Software.
30
31
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
33
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
34
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
35
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
36
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
37
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
38
+--------------------------------------------------------------------
39
*/
40
simpletext.h
This library provides a collection of functions for communicating with text devices such as SimpleIDE...
text_struct
Structure that contains data used by simple text device libraries.
Definition:
simpletext.h:81
putHex
void putHex(int value)
Print string representation of a hexadecimal number to the debug port.
Definition:
putHex.c:10
Generated on Fri May 20 2022 16:48:05 for PropWare by
1.8.17