37 lines
971 B
C
37 lines
971 B
C
|
#ifndef __DEBUG_RF_H_
|
|||
|
#define __DEBUG_RF_H_
|
|||
|
|
|||
|
#include "stdint.h"
|
|||
|
#include <string.h>
|
|||
|
|
|||
|
#include "Mini58Series.h"
|
|||
|
|
|||
|
// DEBUG RF <20><><EFBFBD>ݰ<EFBFBD><DDB0><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
#define __RF_DONGLE_PAYLOAD 32
|
|||
|
|
|||
|
// DEBUG RF ͨ<><CDA8>
|
|||
|
#define __RF_DONGLE_CHN 2
|
|||
|
|
|||
|
// <20><>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD> 3<>ֽ<EFBFBD>
|
|||
|
#define __RF_DONGLE_ADDR_LEN 3
|
|||
|
|
|||
|
#define __RF_DONGLE_POWER 0x27
|
|||
|
|
|||
|
#define __RF_DONGLE_RATE 0x40
|
|||
|
|
|||
|
// <20><>ַ
|
|||
|
#define __RF_DONGLE_ADDR_BYTE0 0xA5
|
|||
|
#define __RF_DONGLE_ADDR_BYTE1 0x5A
|
|||
|
#define __RF_DONGLE_ADDR_BYTE2 0x11
|
|||
|
#define __RF_DONGLE_ADDR_BYTE3 0xE7
|
|||
|
#define __RF_DONGLE_ADDR_BYTE4 0xE7
|
|||
|
#define __RF_DONGLE_ADDR {__RF_DONGLE_ADDR_BYTE0,__RF_DONGLE_ADDR_BYTE1,__RF_DONGLE_ADDR_BYTE2,__RF_DONGLE_ADDR_BYTE3,__RF_DONGLE_ADDR_BYTE4}
|
|||
|
|
|||
|
#define RF_MODE_NORMAL 0x00 /** RF<52><46><EFBFBD><EFBFBD>ģʽ */
|
|||
|
#define RF_MODE_DEBUG 0x10 /** RF<52><46><EFBFBD><EFBFBD>ģʽ */
|
|||
|
|
|||
|
void rf_set_debug(void);
|
|||
|
uint8_t donglex_ex_send(void* p_dat,uint8_t len);
|
|||
|
|
|||
|
#endif
|