HALFRED
0.4.0
|
Diagnostics API. More...
Diagnostics API.
HAL diagnostic tools.
#include "hal_config.h"
#include "hal_defs.h"
#include "hal_iodevice.h"
#include "hal_iobuf.h"
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
Go to the source code of this file.
Macros | |
#define | DIAG_DEFAULT_CHANNEL 0 |
#define | HAL_ENABLE_DIAG 0 |
#define | HAL_DIAG_LEVEL 0 |
#define | HAL_DIAG_LOCK_TIMEOUT 1000 |
#define | HAL_DIAG_USE_CALENDAR_TIME 0 |
#define | DIAG_ASSERT(channel, condition) |
#define | DIAG_ASSERT_AND_EXECUTE(channel, condition) DIAG_ASSERT(channel, condition); else |
#define | DIAG_Lock(ignored1, ignored2) (HALRESULT_OK) |
#define | DIAG_Unlock(ignored) (void)0 |
Typedefs | |
typedef uint32_t(* | DIAGClockSource )(void) |
Functions | |
void | DIAG_Init (void) |
void | DIAG_Deinit (void) |
HALRESULT | DIAG_SetOutputDevice (unsigned int channel, IODevice iodevice) |
IODevice | DIAG_GetOutputDevice (unsigned int channel) |
HALRESULT | DIAG_ActivateChannel (unsigned int channel) |
HALRESULT | DIAG_DeactivateChannel (unsigned int channel) |
bool | DIAG_IsChannelActive (unsigned int channel) |
HALRESULT | DIAG_SetClockSource (unsigned int channel, DIAGClockSource clk_src) |
void | DIAG_Log (unsigned int channel, const char *str,...) |
void | DIAG_LogChar (unsigned int channel, char character) |
void | DIAG_LogMsg (unsigned int channel, const char *msg) |
void | DIAG_LogINT (unsigned int channel, int32_t value, uint8_t base) |
void | DIAG_LogUINT (unsigned int channel, uint32_t value, uint8_t base) |
void | DIAG_LogUINT64 (unsigned int channel, uint64_t value, uint8_t base) |
void | DIAG_LogINT64 (unsigned int channel, int64_t value, uint8_t base) |
void | DIAG_LogFLOAT (unsigned int channel, float value, uint8_t precision) |
void | DIAG_LogNL (unsigned int channel) |
void | DIAG_LogHeader (unsigned int channel, const char *module) |
void | DIAG_LogData (unsigned int channel, uint8_t *data, size_t size, int base, int spacing, const char *space) |
void | DIAG_LogIOBuf (unsigned int channel, IOBuf iobuf, int indent) |
void | DIAG_ReportError (unsigned int channel, uint16_t error_no, uint32_t code_line, void *user_data, const char *description) |
uint32_t | DIAG_ProcessErrors (size_t max_error_count) |
void | DIAG_SetErrorHandler (int(*error_handler)(unsigned int, uint16_t, uint16_t, void *, const char *)) |