Go to the source code of this file.
Provides general purpose debug facilities
Definition in file ocs_debug.c.
Macros | |
| #define | OCS_DEBUG_ENABLE(x) (x ? ~0 : 0) |
| #define | OCS_DEBUG_MASK |
| #define | MAX_BUF_BYTES 1024 |
| Dump 32 bit hex/ascii data after first swapping endianess. More... | |
| #define | MAX_BUF_WORDS (MAX_BUF_BYTES/sizeof(uint32_t)) |
| #define | OCS_EXPORT(...) |
Functions | |
| void | ocs_debug_enable (uint32_t mask) |
| enable debug options More... | |
| void | ocs_debug_disable (uint32_t mask) |
| disable debug options More... | |
| int | ocs_debug_is_enabled (uint32_t mask) |
| return true if debug bits are enabled More... | |
| void | ocs_dump32 (uint32_t mask, ocs_os_handle_t os, const char *label, void *buf, uint32_t buf_length) |
| Dump 32 bit hex/ascii data. More... | |
| void | ocs_swap_and_dump32 (uint32_t mask, ocs_os_handle_t os, const char *label, void *buf, uint32_t buf_length) |
| OCS_EXPORT (ocs_dump32) | |
| OCS_EXPORT (ocs_swap_and_dump32) | |
Variables | |
| static uint32_t | ocs_debug_mask = OCS_DEBUG_MASK |
| #define MAX_BUF_WORDS (MAX_BUF_BYTES/sizeof(uint32_t)) |
Definition at line 194 of file ocs_debug.c.
| #define OCS_DEBUG_ENABLE | ( | x | ) | (x ? ~0 : 0) |
Definition at line 44 of file ocs_debug.c.
| #define OCS_DEBUG_MASK |
Definition at line 47 of file ocs_debug.c.
| #define OCS_EXPORT | ( | ... | ) |
Definition at line 219 of file ocs_debug.c.
| OCS_EXPORT | ( | ocs_dump32 | ) |
| OCS_EXPORT | ( | ocs_swap_and_dump32 | ) |
| void ocs_swap_and_dump32 | ( | uint32_t | mask, |
| ocs_os_handle_t | os, | ||
| const char * | label, | ||
| void * | buf, | ||
| uint32_t | buf_length | ||
| ) |
Definition at line 196 of file ocs_debug.c.
|
static |
Definition at line 57 of file ocs_debug.c.