monitor.h 1.2 KB
/*
 * @Author: 李嘉亮 lijialiang@jzdrones.com
 * @Date: 2023-12-13 12:26:00
 * @LastEditors: 李嘉亮 lijialiang@jzdrones.com
 * @LastEditTime: 2024-01-16 10:37:03
 * @FilePath: \A1_IMU_Control_Boardd:\JZ_LJL_ESP32_WORKSPACE\STM32_DEV\Three-Axis_MES_BLDC_Gimbal\WorkSpace_ALL\ThreeAxisGimbal_Cre231213\Ext_Common\Communication\monitor.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#ifndef _MONITOR_VOFA_H_
#define _MONITOR_VOFA_H_

#include "stdint.h"
#include "stdbool.h"
#include "monitor_Config.h"

//==============================DEBUG OUTPUT FRAME==============================

#define CH_COUNT CH_COUNT_CONFIG

#pragma pack (1) /*指定按1字节对齐*/ 
typedef struct
{
	float fdata[CH_COUNT];
	const uint8_t tail[4];
} Frame;
#pragma pack () /*取消强制对齐*/

#define DEBUG_COL_BUSY 0xFF
#define DEBUG_COL_NOTBUSU 0x00

extern Frame debugFrame;
extern uint8_t debugControl_Bit;

#if DEBUG_FRAME_LOAD == MONITOR_CONFIG_ENABLE
    #define DebugFrameLoad_F(x,y) ( debugFrame.fdata[x] = y )
#else
    #define DebugFrameLoad_F(x,y) 
#endif

#endif