添加文件1和文件2
This commit is contained in:
87
PTZ/Core/Inc/Remote.h
Normal file
87
PTZ/Core/Inc/Remote.h
Normal file
@@ -0,0 +1,87 @@
|
||||
#ifndef __Remote_H
|
||||
#define __Remote_H
|
||||
#include "main.h"
|
||||
|
||||
|
||||
|
||||
#define DBUS_MAX_LEN (50)
|
||||
#define DBUS_BUFLEN (18)
|
||||
#define DBUS_HUART huart3
|
||||
|
||||
typedef __packed struct
|
||||
{
|
||||
int16_t ch0;
|
||||
int16_t ch1;
|
||||
int16_t ch2;
|
||||
int16_t ch3;
|
||||
int16_t roll;
|
||||
uint8_t sw1;
|
||||
uint8_t sw2;
|
||||
} rc_info_t;
|
||||
|
||||
#define rc_Init \
|
||||
{ \
|
||||
0, \
|
||||
0, \
|
||||
0, \
|
||||
0, \
|
||||
0, \
|
||||
0, \
|
||||
0, \
|
||||
}
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint16_t Remote_R_RL;
|
||||
uint16_t Remote_R_UD;
|
||||
uint16_t Remote_L_RL;
|
||||
uint16_t Remote_L_UD;
|
||||
|
||||
uint8_t Remote_LS;
|
||||
uint8_t Remote_RS;
|
||||
|
||||
int16_t Remote_Mouse_RL;
|
||||
int16_t Remote_Mouse_DU;
|
||||
int16_t Remote_Mouse_Wheel;
|
||||
uint8_t Remote_Mouse_KeyL;
|
||||
uint8_t Remote_Mouse_KeyR;
|
||||
|
||||
uint8_t Remote_Key_W;
|
||||
uint8_t Remote_Key_S;
|
||||
uint8_t Remote_Key_A;
|
||||
uint8_t Remote_Key_D;
|
||||
uint8_t Remote_Key_Q;
|
||||
uint8_t Remote_Key_E;
|
||||
uint8_t Remote_Key_Shift;
|
||||
uint8_t Remote_Key_Ctrl;
|
||||
|
||||
uint8_t Remote_Key_Alpha1;
|
||||
uint8_t Remote_Key_Alpha2;
|
||||
|
||||
uint8_t Remote_KeyLast_Alpha1;
|
||||
uint8_t Remote_KeyLast_Alpha2;
|
||||
|
||||
uint8_t Remote_Mouse_KeyLastR;
|
||||
uint8_t Remote_KeyLast_Q;
|
||||
uint8_t Remote_KeyLast_E;
|
||||
uint8_t Remote_KeyLast_Shift;
|
||||
uint8_t Remote_KeyLast_Ctrl;
|
||||
uint8_t Remote_Mouse_KeyPushR;
|
||||
uint8_t Remote_KeyPush_Q;
|
||||
uint8_t Remote_KeyPush_E;
|
||||
uint8_t Remote_KeyPush_Shift;
|
||||
uint8_t Remote_KeyPush_Ctrl;
|
||||
|
||||
int16_t Remote_ThumbWheel;
|
||||
}Remote_Data;
|
||||
|
||||
extern uint8_t Remote_Status;
|
||||
extern uint8_t Remote_StartFlag;
|
||||
extern Remote_Data Remote_RxData;
|
||||
extern rc_info_t rc;
|
||||
extern uint8_t dbus_buf[];
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
extern void dbus_uart_init(void);
|
||||
extern void uart_receive_handler(UART_HandleTypeDef *huart);
|
||||
#endif
|
||||
Reference in New Issue
Block a user