mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-02-02 03:03:16 +00:00
WPL 5
This commit is contained in:
@@ -19,6 +19,7 @@ Multiprotocol is distributed in the hope that it will be useful,
|
||||
#include "iface_xn297.h"
|
||||
|
||||
#define FORCE_WPL_ORIGINAL_ID
|
||||
//#define WPL_TEST
|
||||
|
||||
#define WPL_PACKET_PERIOD 9875
|
||||
#define WPL_RF_NUM_CHANNELS 4
|
||||
@@ -30,6 +31,9 @@ static void __attribute__((unused)) WPL_send_packet()
|
||||
#if 0
|
||||
debug("no:%d, rf:%d, ",hopping_frequency_no + (IS_BIND_IN_PROGRESS?0:4),hopping_frequency[hopping_frequency_no + (IS_BIND_IN_PROGRESS?0:4)]);
|
||||
#endif
|
||||
#ifdef WPL_TEST
|
||||
memset(hopping_frequency+4,option,4);
|
||||
#endif
|
||||
XN297_Hopping(hopping_frequency_no + (IS_BIND_IN_PROGRESS?0:4) );
|
||||
hopping_frequency_no++;
|
||||
hopping_frequency_no &= WPL_RF_NUM_CHANNELS-1; // 4 RF channels
|
||||
@@ -87,6 +91,10 @@ static void __attribute__((unused)) WPL_initialize_txid()
|
||||
#ifdef FORCE_WPL_ORIGINAL_ID
|
||||
memcpy(rx_tx_addr,"\x96\x2A\xA9\x32\xB4",5);
|
||||
#endif
|
||||
#ifdef WPL_TEST
|
||||
memcpy(rx_tx_addr,"\x00\x00\x00\x00\x00",5);
|
||||
rx_tx_addr[0] = RX_num;
|
||||
#endif
|
||||
}
|
||||
|
||||
uint16_t WPL_callback()
|
||||
|
||||
Reference in New Issue
Block a user