1234567891011121314151617181920212223242526272829303132 |
- #ifndef __bsp_protocol_h__
- #define __bsp_protocol_h__
- #include "main.h"
- #define DEX_NUM 0
- enum _cmd{
- CMD_HEART = 0,
- CMD_MOTION,
- };
- enum _CMD_MOTION{
- MOTION_STOP = 0,
- MOTION_RUN,
- MOTION_JUMP,
- MOTION_DOWN,
- MOTION_LEFT,
- MOTION_RIGHT,
- MOTION_FRONT,
- MOTION_BACK,
- MOTION_LEFT_UP,
- MOTION_LEFT_DOWN,
- MOTION_RIGHT_UP,
- MOTION_RIGHT_DOWN,
- MOTION_STEP,
-
- NUMBERS_OF_MOTION,
- };
- void send_protocol(uint8_t index,uint8_t cmd,uint8_t* dat,uint8_t datLen);
- #endif
|