#include
typedef
typedef
#define TX_ADDR_WITDH 5//发送地址宽度设置为5个字节
#define RX_ADDR_WITDH 5
#define TX_DATA_WITDH 8
#define RX_DATA_WITDH 8
#define R_REGISTER
#define W_REGISTER
#define R_RX_PLOAD
#define W_TX_PLOAD
#define FLUSH_TX
#define FLUSH_RX
#define REUSE_TX_PL 0xE3
#define NOP
#define CONFIG
#define EN_AA
#define EN_RX_ADDR
#define SETUP_AW
#define SETUP_RETR
#define RF_CH
#define RF_SETUP
#define STATUS
#define OBSERVE_TX
#define CD
#define RX_ADDR_P0
#define RX_ADDR_P1
#define RX_ADDR_P2
#define RX_ADDR_P3
#define RX_ADDR_P4
#define RX_ADDR_P5
#define TX_ADDR
#define RX_PW_P0
#define RX_PW_P1
#define RX_PW_P2
#define RX_PW_P3
#define RX_PW_P4
#define RX_PW_P5
#define FIFO_STATUS 0x17
//*********************************************************************************
uchar
#define RX_DR
#define TX_DS
#define MAX_RT (sta & 0x10)
sbit CE=P1^5;
sbit IRQ=P1^0;
sbit CSN=P1^4;
sbit MOSI=P1^2;
sbit MISO=P1^1;
sbit SCK=P1^3;
sbit LED=P0^0;
uchar code TX_Addr[]={0x34,0x43,0x10,0x10,0x01};
uchar code TX_Buffer[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
uchar RX_Buffer[RX_DATA_WITDH];
void _delay_us(uint x)
{
}
void _delay_ms(uint x)
{
}
void nRF24L01_Init(void)
{
}
uchar SPI_RW(uchar byte)
{
}
uchar SPI_W_Reg(uchar reg,uchar value)
{
}
uchar SPI_R_byte(uchar reg)
{
}
uchar SPI_R_DBuffer(uchar reg,uchar *Dat_Buffer,uchar Dlen)
{
}
uchar SPI_W_DBuffer(uchar reg,uchar *TX_Dat_Buffer,uchar Dlen)
{
}
void nRF24L01_Set_RX_Mode(void)
{
}
uchar nRF24L01_RX_Data(void)
{
}
void main(void)
{
}
上一篇:单片机教程及学习之LCD1602显示DS18B20温度实验
下一篇:NRF24L01发送程序(单片机是STC89C52)
推荐阅读最新更新时间:2024-03-16 14:30