LibDriver NRF24L01  1.0.0
NRF24L01 full-featured driver
driver_nrf24l01_basic.h File Reference

driver nrf24l01 basic header file More...

Go to the source code of this file.

Macros

#define NRF24L01_BASIC_DEFAULT_CRCO   NRF24L01_BOOL_TRUE
 nrf24l01 basic example default definition More...
 
#define NRF24L01_BASIC_DEFAULT_ENABLE_CRC   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PIPE_0_AUTO_ACKNOWLEDGMENT   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PIPE_1_AUTO_ACKNOWLEDGMENT   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PIPE_2_AUTO_ACKNOWLEDGMENT   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PIPE_3_AUTO_ACKNOWLEDGMENT   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PIPE_4_AUTO_ACKNOWLEDGMENT   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PIPE_5_AUTO_ACKNOWLEDGMENT   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_RX_PIPE_0   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_RX_PIPE_1   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_RX_PIPE_2   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_RX_PIPE_3   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_RX_PIPE_4   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_RX_PIPE_5   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_ADDRESS_WIDTH   NRF24L01_ADDRESS_WIDTH_5_BYTES
 
#define NRF24L01_BASIC_DEFAULT_RETRANSMIT_DELAY   750
 
#define NRF24L01_BASIC_DEFAULT_RETRANSMIT_COUNT   10
 
#define NRF24L01_BASIC_DEFAULT_CHANNEL_FREQUENCY   20
 
#define NRF24L01_BASIC_DEFAULT_DATA_RATE   NRF24L01_DATA_RATE_2M
 
#define NRF24L01_BASIC_DEFAULT_OUTPUT_POWER   NRF24L01_OUTPUT_POWER_0_DBM
 
#define NRF24L01_BASIC_DEFAULT_PIPE_0_PAYLOAD   32
 
#define NRF24L01_BASIC_DEFAULT_PIPE_1_PAYLOAD   32
 
#define NRF24L01_BASIC_DEFAULT_PIPE_2_PAYLOAD   32
 
#define NRF24L01_BASIC_DEFAULT_PIPE_3_PAYLOAD   32
 
#define NRF24L01_BASIC_DEFAULT_PIPE_4_PAYLOAD   32
 
#define NRF24L01_BASIC_DEFAULT_PIPE_5_PAYLOAD   32
 
#define NRF24L01_BASIC_DEFAULT_PIPE_0_DYNAMIC_PAYLOAD   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PIPE_1_DYNAMIC_PAYLOAD   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PIPE_2_DYNAMIC_PAYLOAD   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PIPE_3_DYNAMIC_PAYLOAD   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PIPE_4_DYNAMIC_PAYLOAD   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PIPE_5_DYNAMIC_PAYLOAD   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_DYNAMIC_PAYLOAD   NRF24L01_BOOL_TRUE
 
#define NRF24L01_BASIC_DEFAULT_PAYLOAD_WITH_ACK   NRF24L01_BOOL_FALSE
 
#define NRF24L01_BASIC_DEFAULT_TX_PAYLOAD_WITH_NO_ACK   NRF24L01_BOOL_FALSE
 
#define NRF24L01_BASIC_DEFAULT_RX_ADDR_0   {0x1A, 0x01, 0x02, 0x03, 0x00}
 
#define NRF24L01_BASIC_DEFAULT_RX_ADDR_1   {0x1B, 0x01, 0x02, 0x03, 0x01}
 
#define NRF24L01_BASIC_DEFAULT_RX_ADDR_2   {0x1B, 0x01, 0x02, 0x03, 0x02}
 
#define NRF24L01_BASIC_DEFAULT_RX_ADDR_3   {0x1B, 0x01, 0x02, 0x03, 0x03}
 
#define NRF24L01_BASIC_DEFAULT_RX_ADDR_4   {0x1B, 0x01, 0x02, 0x03, 0x04}
 
#define NRF24L01_BASIC_DEFAULT_RX_ADDR_5   {0x1B, 0x01, 0x02, 0x03, 0x05}
 

Enumerations

enum  nrf24l01_type_t { NRF24L01_TYPE_TX = 0x00 , NRF24L01_TYPE_RX = 0x01 }
 nrf24l01 type enumeration definition More...
 

Functions

uint8_t nrf24l01_interrupt_irq_handler (void)
 nrf24l01 irq More...
 
uint8_t nrf24l01_basic_init (nrf24l01_type_t type, void(*callback)(uint8_t type, uint8_t num, uint8_t *buf, uint8_t len))
 basic example init More...
 
uint8_t nrf24l01_basic_deinit (void)
 basic example deinit More...
 
uint8_t nrf24l01_basic_send (uint8_t *addr, uint8_t *buf, uint8_t len)
 basic example send More...
 

Detailed Description

driver nrf24l01 basic header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
1.0.0
Author
Shifeng Li
Date
2021-11-28

history

Date Version Author Description
2021/11/28 1.0 Shifeng Li first upload

Definition in file driver_nrf24l01_basic.h.