mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 21:58:10 +00:00
4a626eaf14
Loads of protocols have been touched by this change. Some testing has been done but please test on all your models. The XN297 emulation selects in this order: - the CC2500 if it is available and bitrate=250K. Configure the option field automatically for RF tune. - the NRF for all bitrates if it is available - if NRF is not available and bitrate=1M then an invalid protocol is sent automatically to the radio. CC2500 @250K can now receive normal and enhanced payloads. OMP protocol supports telemetry on CC2500 and is also for NRF only modules including telemetry. Separation of E016H (new protocol) from E01X due to different structure. MJXQ, MT99XX, Q303 and XK: some sub protocols available on CC2500 only.
29 lines
840 B
C
29 lines
840 B
C
#ifndef _IFACE_NRF250K_H_
|
|
#define _IFACE_NRF250K_H_
|
|
|
|
#ifdef CC2500_INSTALLED
|
|
#include "iface_cc2500.h"
|
|
#endif
|
|
#ifdef NRF24L01_INSTALLED
|
|
#include "iface_nrf24l01.h"
|
|
#endif
|
|
#include "iface_xn297.h"
|
|
|
|
#if defined (CC2500_INSTALLED) || defined (NRF24L01_INSTALLED)
|
|
|
|
//////////////
|
|
// Functions
|
|
#define NRF250K_Init() XN297_Configure(XN297_CRCEN, XN297_SCRAMBLED, XN297_250K)
|
|
#define NRF250K_HoppingCalib(X) XN297_HoppingCalib(X)
|
|
#define NRF250K_Hopping(X) XN297_Hopping(X)
|
|
#define NRF250K_RFChannel(X) XN297_RFChannel(X)
|
|
#define NRF250K_SetPower() XN297_SetPower()
|
|
#define NRF250K_SetFreqOffset() XN297_SetFreqOffset()
|
|
#define NRF250K_IsPacketSent() XN297_IsPacketSent()
|
|
static void __attribute__((unused)) NRF250K_SetTXAddr(uint8_t*, uint8_t);
|
|
static void __attribute__((unused)) NRF250K_WritePayload(uint8_t*, uint8_t);
|
|
|
|
#endif
|
|
|
|
#endif
|