WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
log_uart.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2018-2020. All rights reserved.
3 * Description: LOG UART MODULE INTERFACE
4 */
5
6#ifndef LOG_UART_H
7#define LOG_UART_H
8
13#if defined USE_CMSIS_OS
14
16#include "log_oam_msg.h"
17
18#define LOG_UART_LOG_WATERMARK_VALUE_ON_INIT 0
19#define LOG_UART_BT_LOG_WATERMARK_VALUE_HIGH ((BT_CORE_LOGGING_LENGTH)*8 / 10)
20
28
29#if SYS_DEBUG_MODE_ENABLE == YES
31#endif /* end of SYS_DEBUG_MODE_ENABLE == YES */
32
36void log_uart_init(void);
37
41void log_uart_send_buffer(const uint8_t *buffer, uint16_t length);
45void log_uart_write_blocking(const void *buf, uint32_t len);
46
51typedef void (*log_uart_output_response_to_at_uart_callback)(const char *at_string, uint16_t len);
52
58
63void log_uart_trigger(void);
64
70
75
80void log_main(const void *unused_p);
81
86void log_uart_update_watermark_level(log_memory_region_section_t log_mem_region, uint16_t new_watermark_val);
87
88#if (CORE_NUMS > 1) && (defined CONFIG_DFX_SUPPORT_CUSTOM_LOG) && (defined DFX_YES) && \
89 (CONFIG_DFX_SUPPORT_CUSTOM_LOG == DFX_YES)
93void log_reader_info_action_handler(void);
94#endif
95
96#else
97#error "log to uart not implemented in non-os version"
98#endif // defined USE_CMSIS_OS
99
103#endif
log_memory_region_section_t
LOG MEMORY REGIONS
Definition log_memory_definitions.h:20
nxlog_operation_t
Definition log_uart.h:21
void log_uart_write_blocking(const void *buf, uint32_t len)
Send buffer used log uart by write uart tx FIFO
Definition log_uart.c:352
void log_uart_update_watermark_level(log_memory_region_section_t log_mem_region, uint16_t new_watermark_val)
Update the watermark level for a given logging region.
Definition log_uart.c:189
void log_uart_reset_baud_rate(void)
Reconfigure the baud rate when the frequency changes.
Definition log_uart.c:380
void log_uart_init_after_rtos(void)
Initialises the UART logging when RTOS functions are available. This should be called before the RTOS...
Definition log_uart.c:206
uint32_t log_uart_get_nxlog_state(void)
Check if the xlog is enabled.
void log_register_default_rx_callback(void)
void log_uart_trigger(void)
Triggers the uart logger. It can be called from program context or ISR.
Definition log_uart.c:277
void log_main(const void *unused_p)
Main log uart task
Definition log_uart.c:392
void(* log_uart_output_response_to_at_uart_callback)(const char *at_string, uint16_t len)
output response to at uart callback
Definition log_uart.h:51
void log_uart_init(void)
Initialises the uart logger before RTOS functions are available.
Definition log_uart.c:136
void log_uart_send_buffer(const uint8_t *buffer, uint16_t length)
Send buffer used log uart by write uart tx FIFO
Definition log_uart.c:184
@ NXLOG_OPERATION_ENABLE
Definition log_uart.h:22
@ NXLOG_OPERATION_DELETE
Definition log_uart.h:24
@ NXLOG_OPERATION_DISABLE
Definition log_uart.h:23
@ NXLOG_OPERATION_DUMP_TO_DEBUG_UART
Definition log_uart.h:26
@ NXLOG_OPERATION_DUMP_TO_AT_UART
Definition log_uart.h:25