BSPACM
20150113
Board Support Package for ARM Cortex-M Microcontrollers
|
Miscellaneous utility functions. More...
#include <bspacm/core.h>
Go to the source code of this file.
Functions | |
void | vBSPACMconsoleDisplayMemoryOctets (const uint8_t *dp, size_t count, uintptr_t base) |
void | vBSPACMconsoleDisplayMemoryWords (const uint32_t *dp, size_t count, uintptr_t base) |
void | vBSPACMconsoleDisplayOctets (const uint8_t *dp, size_t count) |
Miscellaneous utility functions.
void vBSPACMconsoleDisplayMemoryOctets | ( | const uint8_t * | dp, |
size_t | count, | ||
uintptr_t | base | ||
) |
Display the contents of a block of memory expressed as octets
This function displays on the console the contents of a memory region as octets and printable characters. The memory must by byte-addressable. One line is emitted for each 16-byte block: it begins with the address of the displayed data (per base
), followed by up to 16 octet values, followed by the values as printable characters. The emitted addresses are always 16-byte aligned; if base
is not aligned, the first line will be padded out to the location of the first data value.
dp | pointer to start of memory region |
count | number of octets to display |
base | base displayed address for first octet |
void vBSPACMconsoleDisplayMemoryWords | ( | const uint32_t * | dp, |
size_t | count, | ||
uintptr_t | base | ||
) |
Display the contents of a block of memory expressed as hex words
This function displays on the console the contents of a memory region as 32-bit words in hexadecimal. One line is emitted for each 4-word block: it begins with the address of the displayed data (per base
), followed by up to 4 word values. The emitted addresses are always 16-byte aligned; if base
is not aligned, the first line will be padded out to the location of the first data value.
dp | pointer to start of memory region |
count | number of words to display |
base | base displayed address for first octet |
void vBSPACMconsoleDisplayOctets | ( | const uint8_t * | dp, |
size_t | count | ||
) |
Display a short memory region contents of a block of memory.
This function displays a sequence of octets on the console. It differs from vBSPACMconsoleDisplayMemory() in that there is no address information, no printable character display, and no attempt to split the output into individual lines.
dp | pointer to start of memory region |
count | number of octetst to display |