57 lines
1.0 KiB
C
57 lines
1.0 KiB
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Includes ----------------------------------------------------------------- */
|
|
#include "bsp/can.h"
|
|
#include "device/device.h"
|
|
/* USER INCLUDE BEGIN */
|
|
|
|
/* USER INCLUDE END */
|
|
|
|
/* USER DEFINE BEGIN */
|
|
|
|
/* USER DEFINE END */
|
|
|
|
/* Exported constants ------------------------------------------------------- */
|
|
/* Exported macro ----------------------------------------------------------- */
|
|
/* Exported types ----------------------------------------------------------- */
|
|
|
|
typedef enum {
|
|
RC_CAN_SW_ERR = 0,
|
|
RC_CAN_SW_UP = 1,
|
|
RC_CAN_SW_MID = 3,
|
|
RC_CAN_SW_DOWN = 2,
|
|
} RC_CAN_SW_t;
|
|
|
|
typedef struct {
|
|
float ch_l_x;
|
|
float ch_l_y;
|
|
float ch_r_x;
|
|
float ch_r_y;
|
|
RC_CAN_SW_t sw_l;
|
|
RC_CAN_SW_t sw_r;
|
|
flaot res;
|
|
} RC_CAN_DR16_t;
|
|
|
|
typedef struct {
|
|
f
|
|
} RC_CAN_DR16_t;
|
|
|
|
|
|
/* USER STRUCT BEGIN */
|
|
|
|
/* USER STRUCT END */
|
|
|
|
/* Exported functions prototypes -------------------------------------------- */
|
|
|
|
/* USER FUNCTION BEGIN */
|
|
|
|
/* USER FUNCTION END */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|