ÎļþÃû´Ó keil/dw_app_anchor.h ÐÞ¸Ä |
| | |
| | | #ifndef __DW_APP_H__ |
| | | #define __DW_APP_H__ |
| | | #include "stdint.h" |
| | | void SetANCTimestap(uint8_t i,uint8_t* pollrx,uint8_t* resptx,uint32_t resprx,uint8_t* distoffset,int32_t anc_clockoffset); |
| | | void SetANCTimestap(uint8_t i,uint8_t* pollrx,uint8_t* resptx,uint32_t resprx,uint8_t* distoffset,int32_t anc_clockoffset_from_MK,uint32_t polltx); |
| | | void CalculateDists1(int64_t poll_tx_ts); |
| | | void CalculateDists(int64_t poll_tx_ts); |
| | | int64_t ranging_timestamp_diff(int64_t ts_a, int64_t ts_b); |
| | | #define MBX_RESPONSE 0x21 |
| | | #define MBX_POLL 0x20 |
| | | #define MBX_RESPONSE 0x21 |
| | | #define MBX_FINAL 0x22 |
| | | #define MBX_PRAAREPLY 0x23 |
| | | #define MBX_REG 0x24 |
| | | |
| | | #define MESSAGE_TYPE_IDX 9 |
| | | #define TAG_ID_IDX 5 |
| | | #define GROUP_ID_IDX 0 |
| | |
| | | #define TAG_KEEPTIMES 30 //æ ç¾åæ´»æ¶é´ |
| | | #define KEEP_TIMES 5 |
| | | #define TAG_NUM_IN_SYS 25 |
| | | #define FZ_NEARBASENUM_INDEX 10 |
| | | #define FZ_NEARBASEID_INDEX 11 |
| | | |
| | | #define DIST_IDX 10 |
| | | #define SEQUENCE_IDX 3 |
| | | #define BATTARY_IDX 4 |
| | | #define BATTARY_IDX 4 |
| | | //NEAR POLL |
| | | #define RESP_MSG_POLL_RX_TS_IDX 26 |
| | | #define RESP_MSG_RESP_TX_TS_IDX 30 |
| | | #define RESP_MSG_ANC_DISTOFFSET 34 |
| | | |
| | | //NEAR MSG |
| | | #define NEARBASENUM_INDEX 10 |
| | | #define NEARBASEID_INDEX 11 |
| | | |
| | | #define TAG_KEEPTIMES 30 //æ ç¾åæ´»æ¶é´ |
| | | #define MAX_TAG_LIST_NUM 200 //åæ¶é讯æ ç¾æå¤§æ°é |
| | | |