123456789101112131415161718192021222324252627282930313233 |
- /**
- *********************************************************************************************************
- * xmk guide
- *
- * (c) Copyright 2016-2020, hualijidian.com
- * All Rights Reserved
- *
- * @file mns.h
- * @author eric
- * @brief
- * @date 2017年7月22日
- * @version V0.0.1
- *********************************************************************************************************
- */
- #ifndef __MNS_H_
- #define __MNS_H_
- #include "stdint.h"
- #include "stdbool.h"
- #define NS_MAX 80
- typedef struct _NavSenser{
- uint32_t CanId;
- uint8_t NsType;
- uint8_t Data[8];
- uint16_t Max;
- short (*calcOffset)(struct _NavSenser *Ns, uint16_t branch, uint16_t *Online);
- bool (*recvCan)(struct _NavSenser *Ns, uint32_t canId, uint8_t *data);
- struct _NavSenser *next;
- } NavSenser;
- NavSenser* NavSenserNew(uint8_t NsType, uint32_t canId);
- bool NavSenserIsOnline(NavSenser * ns);
- short NavSenserGetOffset(NavSenser * ns, uint16_t branch, uint16_t *Online);
- #endif /* __MNS_H_ */
|