Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: RC_Green Drown RC_RX
Diff: nRF24L01P.h
- Revision:
- 1:c41959327807
- Parent:
- 0:4caead137300
- Child:
- 2:bee3d3ba881f
--- a/nRF24L01P.h Mon Dec 09 03:07:01 2019 +0000
+++ b/nRF24L01P.h Mon Dec 09 06:23:05 2019 +0000
@@ -51,6 +51,9 @@
#define DYNPD 0x1C // per pipe DPL control
#define FEATURE 0x1D // ¡°Feature¡± register address
+
+
+
extern uint8_t NRF24L01_RXDATA[32];
extern uint8_t NRF24L01_TXDATA[32];
@@ -61,18 +64,23 @@
nRF24L01P(PinName mosi, PinName miso, PinName sck, PinName csn, PinName ce, PinName irq = NC);
- void NRF_Send_TX(uint8_t * tx_buf, uint8_t len);
+
uint8_t NRF_Read_Reg(uint8_t reg);
uint8_t NRF_Write_Reg(uint8_t reg, uint8_t value);
uint8_t NRF_Read_Buff(uint8_t reg, uint8_t *pBuf, uint8_t uchars);
uint8_t NRF_Write_Buf(uint8_t reg, uint8_t *pBuf, uint8_t uchars);
+
void NRF24L01_Set_TX(void);
void NRF24L01_Set_RX(void);
void NRF24L01_Check(void);
void NRF24L01_Init(uint8_t Chanal,uint8_t Mode);
+ void NRF_Send_TX(uint8_t * tx_buf, uint8_t len);
void NRF24L01_IRQ(void);
+
+ void Nrf_Connect(void);
+
SPI spi_;
DigitalOut nCS_;
DigitalOut ce_;