Morse Micro IoT SDK
2.9.7
mmlog.h
1
/*
2
* Morse logging API
3
*
4
* Copyright 2023 Morse Micro
5
*
6
* SPDX-License-Identifier: Apache-2.0
7
*/
8
9
#pragma once
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
#include <stddef.h>
16
#include <stdint.h>
17
22
#define MM_X64_VAL(value) ((uint32_t) (value>>32)), ((uint32_t)value)
23
25
#define MM_X64_FMT "%08lx%08lx"
26
37
#define MM_MAC_ADDR_VAL(value) \
38
((value)[0]), ((value)[1]), ((value)[2]), ((value)[3]), ((value)[4]), ((value)[5])
39
41
#define MM_MAC_ADDR_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
42
49
void
mm_logging_init(
void
);
50
61
void
mm_hexdump(
char
level,
const
char
*function,
unsigned
line_number,
62
const
char
*title,
const
uint8_t *
buf
,
size_t
len);
63
64
#ifdef __cplusplus
65
}
66
#endif
buf
char buf[1408]
Statically allocated buffer for HTTP GET request, just under 1 packet size.
Definition:
sslclient.c:177
framework
morselib
include
mmlog.h
Copyright 2021 Morse Micro