-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSerialDebug.h
More file actions
29 lines (24 loc) · 1.02 KB
/
SerialDebug.h
File metadata and controls
29 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
******************************************************************************
* @file SerialDebug.h
* @author Hongxi Wong
* @version V1.0.1
* @date 2020/2/17
* @brief UWP Serial debug assistant lib based on HAL
******************************************************************************
* @attention
* usart.h is generated by STM32CubeMX
******************************************************************************
*/
#ifndef _SERIALDEBUG_H
#define _SERIALDEBUG_H
#include "usart.h"
#include "stdint.h"
extern uint8_t DebugBuffer[100];
extern uint8_t Debug_Count;
extern uint8_t Debug_Period;
void Serial_Debug(UART_HandleTypeDef *huart, uint16_t debug_period, float a, float b, float c, float d, float e, float f);
void Debug_Buf_Send(UART_HandleTypeDef *huart, uint8_t *data, uint8_t length);
void float2char(float floatdata, uint8_t *buffer, uint8_t n, uint8_t *position);
void Debug_Buf_Generate(UART_HandleTypeDef *huart, float a, float b, float c, float d, float e, float f, uint8_t *data);
#endif