123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- /*******************************************************************************************
- * @file dm_scaner.h
- *
- * @brief ��ά��ɨ��������
- *
- * (c) Copyright 2020, Shandong Huali electromechanical Co., Ltd..
- * This is protected by international copyright laws. Knowledge of the
- * source code may not be used to write a similar product. This file may
- * only be used in accordance with a license and should not be redistributed
- * in any way. We appreciate your understanding and fairness.
- *
- *
- * @author Deman
- * @date Created: 2020.08.06-T13:43:10+0800
- *
- *******************************************************************************************/
- #ifndef _DM_SCANER_H
- #define _DM_SCANER_H
- #include "stdint.h"
- #include "stdbool.h"
- #define UART_RECV_MAX (200)
- typedef enum
- {
- DMSCANER_INIT,
- DMSCANER_POWEROFF,
- DMSCANER_SCANOFF,
- DMSCANER_POWERON,
- DMSCANER_SCANON,
- DMSCANER_VALUE_UPDATE,
- DMSCANER_VALUE_READED,
- DMSCANER_VALUE_INVALID,
- DMSCANER_ERR
- }DmScanerSta_t;
- typedef struct
- {
- DmScanerSta_t Sta;
- int16_t xOffset; //X��ƫ��ֵ�ֱ���Ϊ 1mm������ 32bit �з�������
- int16_t yOffset; //Y��ƫ��ֵ�ֱ���Ϊ 1mm������ 32bit �з�������
- uint32_t xValue; //DM��Xֵ
- uint32_t yValue; //DM��Yֵ
- bool Ready; //��ǰ����֡��ά���Ƿ���Ч
- }DmScanerData_t;
- typedef struct
- {
- uint32_t TagNum;
- uint32_t xValue; //巷值
- uint32_t yValue; //坡值
- uint32_t cValue; //层值
- uint32_t Set_cValue; //设置层值
- } Scaner_TypeDef;
- extern Scaner_TypeDef scan;
- #endif /* _DM_SCANER_H */
|