mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-10 14:18:12 +00:00
Added NRF24L01_ReadPayloadLength
This commit is contained in:
parent
48258dd9dd
commit
8b67049863
@ -76,6 +76,16 @@ uint8_t NRF24L01_ReadReg(uint8_t reg)
|
||||
NRF_CSN_on;
|
||||
}
|
||||
*/
|
||||
|
||||
static uint8_t __attribute__((unused)) NRF24L01_ReadPayloadLength()
|
||||
{
|
||||
NRF_CSN_off;
|
||||
SPI_Write(R_RX_PL_WID);
|
||||
uint8_t len = SPI_Read();
|
||||
NRF_CSN_on;
|
||||
return len;
|
||||
}
|
||||
|
||||
static void NRF24L01_ReadPayload(uint8_t * data, uint8_t length)
|
||||
{
|
||||
NRF_CSN_off;
|
||||
@ -221,6 +231,7 @@ uint8_t NRF24L01_packet_ack()
|
||||
return PKT_PENDING;
|
||||
}
|
||||
|
||||
|
||||
///////////////
|
||||
// XN297 emulation layer
|
||||
uint8_t xn297_scramble_enabled=XN297_SCRAMBLED; //enabled by default
|
||||
|
Loading…
x
Reference in New Issue
Block a user