TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139251 times)
  2. FAT32 Library (71748 times)
  3. Network Ethernet Library (57120 times)
  4. USB Device Library (47430 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28077 times)
  9. PID Library (26885 times)
  10. microSD click (26198 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Library

All in One - 16 function and sub_ NRF24L01P Lib in avr :)

Rating:

0

Author: Ebrahim Rahmanian

Last Updated: 2018-12-19

Package Version: 1.0.0.0

Category: Communication

Downloaded: 265 times

Not followed.

License: MIT license  

All in One - 16 function and sub_ NRF24L01P Lib in avr :)

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "All in One - 16 function and sub_ NRF24L01P Lib in avr :)" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "All in One - 16 function and sub_ NRF24L01P Lib in avr :)" changes.

Do you want to report abuse regarding "All in One - 16 function and sub_ NRF24L01P Lib in avr :)".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Library Blog

//Version:940912_1
//+===============================================================================+
//|1.add "NRF24L01P.h","NRF24L01P.c" to Project                                   |
//|2.include "NRF24L01P.h" in project                                             |
//|3.Call NRF24l01P_ConfigL1_IoAndSpi_1OK0failed2ParameterNotValid ,              |
//|NRF24l01P_ConfigL2_ModuleSetting_1OK0failed2ParameterNotValid in main          |
//|4.Set mode whit call NRF24l01P_SetMode_1Ok2Failed                              |
//|5.if NRF24l01P work to Reciver Mode then :                                     |
//|- SREG_I=1 ==>General Intrrupt Enable                                          |
//|- Add This Code in INTx Intrrupt code :                                        |
//|     char a_char;                                                              |
//|     while(1){                                                                 |
//|         a_char=NRF24l01P_RecivePayload_1Ok0RxFIFoIsEmpty3SpiError(&a,&b,&c);  |
//|         if(a_char==1){//recive Successful                                     |
//|            //a[0] to a[x] is recived data Byte                                |
//|            //b is Transmitter Payload Number                                  |
//|            //c is Recived Payload Size(Byte)                                  |
//|         }else if(e==3){//SpiError                                             |
//|            //Add Spi Error Code                                               |
//|         }else{//Fifo is Empty                                                 |
//|              break;                                                           |
//|         }                                                                     |
//|     }                                                                         |
//|6.if NRF24l01P work to Transmitter Mode then :                                 |
//|- Send data with                                                               |
//|call NRF24l01P_TransmitPayload_1Ok2FailedTryTransmit3ParameterNotValid4SpiError|
//|(Please Read Transmit And Recive Sample)                                       |
//|3.Enjoy!                                                                       |
//|===============================================================================|
//|Mana Research Group©                                                           |
//|Simple lib for NRF24L01+ .                                                     |
//|Ver : 940912_1 (2015/12/4)                                                     |
//|Ebrahim Rahmanian www.mikroc.ir                                             |
//+===============================================================================+
char NRF24l01P_CheckSpi_1OK0SpiError();


char NRF24l01P_GetARC_CNT_CountHardwareTryLastTransmitPayload_0to15();


char NRF24l01P_GetRPD_AntenaPowerForRecivedLastPayload1Ok0LowPower();


char NRF24l01P_GetTX_FULL_TXFIFoIsFull_1Yes0No();


char NRF24l01P_GetTX_EMPTY_TXFIFoIsEmpty_1Yes0No();


char NRF24l01P_GetRX_FULL_RXFIFoIsFull_1Yes0No();


char NRF24l01P_GetRX_EMPTY_RXFIFoIsEmpty_1Yes0No();

char NRF24l01P_ConfigL1_IoAndSpi_1OK0failed2ParameterNotValid(char *DDRX_SCK,char SCK_PinNum0_7,
                                                              char SckSpeed_FoscDiv_2_4_8_16_32_64_128,
                                                              char *DDRX_MOSI,char MOSI_PinNum0_7,
                                                              char *DDRX_MISO,char MISO_PinNum0_7,
                                                              char *DDRX_SS_CSN,char SS_CSN_PinNum0_7,
                                                              char *DDRX_CE,char CE_PinNum0_7,
                                                              char *DDRX_IRQ,char IRQ_PinNum0_7,
                                                              char *ISCx0_RegAddress,char ISCx0_BitNum,
                                                              char *ISCx1_RegAddress,char ISCx1_BitNum,
                                                              char *INTFx_RegAddress,char INTFx_BitNum,
                                                              char *INTx_RegAddress,char INTx_BitNum);

 

 

                                                             

char NRF24l01P_ConfigL2_ModuleSetting_1OK0failed2ParameterNotValid(

char AddressWidthsForAllDataTXRXPipes_0ThreeByte_1FourByte_2FiveByte,

char ThisNRF24L01_AddressByte0,char ThisNRF24L01_AddressByte1,

char ThisNRF24L01_AddressByte2,
char ThisNRF24L01_AddressByte3,

char ThisNRF24L01_AddressByte4,

char NRF24L01_Pipe1_AddressByte0,
char NRF24L01_Pipe2_AddressByte0,

char NRF24L01_Pipe3_AddressByte0,

char NRF24L01_Pipe4_AddressByte0,
char NRF24L01_Pipe5_AddressByte0,

char NRF24L01_Pipe1to5_CommonAddressBytes_Byte1,
char NRF24L01_Pipe1to5_CommonAddressBytes_Byte2,

char NRF24L01_Pipe1to5_CommonAddressBytes_Byte3,
                                                                  

char NRF24L01_Pipe1to5_CommonAddressBytes_Byte4,char NRF24L01_Pipe1_1to255Active0UnActive,
                                                                  

char NRF24L01_Pipe2_1to255Active0UnActive,char NRF24L01_Pipe3_1to255Active0UnActive,
                                                                  

char NRF24L01_Pipe4_1to255Active0UnActive,char NRF24L01_Pipe5_1to255Active0UnActive,
                                                                  

char ThisNRF24L01_Pipe0_RXNumberOfBytesPayload_0to32,char NRF24L01_Pipe1_RXNumberOfBytesPayload_0to32,
                                                                  

char NRF24L01_Pipe2_RXNumberOfBytesPayload_0to32,char NRF24L01_Pipe3_RXNumberOfBytesPayload_0to32,
                                                                  

char NRF24L01_Pipe4_RXNumberOfBytesPayload_0to32,char NRF24L01_Pipe5_RXNumberOfBytesPayload_0to32,
                                                               

char CRC_EncodingScheme_0OneByteMode_1TwoByatesMode,

unsigned AutoRetransmitDelay_250to4000us,
 char AutoRetransmitCount_0to15,unsigned RF_Frequency_2400to2525MHZ,
 char SpeedDataRate_0_OneMbps_1_TwoMbps_2_250Kbps,
char TransmitRfPowerAmplifier_0_N18dBm_1_N12dBm_2_N6dBm_3_0dBm);

                                                                   
char NRF24l01P_FlushTXFIFO_ClearTXFIFO_1Ok0Failed();
 

char NRF24l01P_FlushRXFIFO_ClearRXFIFO_1Ok0Failed();
 

char NRF24l01P_TransmitPayload_1Ok2FailedTryTransmit3ParameterNotValid4SpiError

(char *TransmitDataArrayPayload,char ArrayPayloadSize_MustBeSameSizeAsReciverPayloadSizeConfig_1to32Byte,unsigned  SoftwareTryTransmitCount);


char NRF24l01P_RecivePayload_1Ok0RxFIFoIsEmpty3SpiError(char *ReciveDataArrayPayload_SizeMustBeSameSizeAsTransmitterPayloadSizeConfig,char *Return_Transmitter_PipeNum0_5,char *Return_PayloadSize0to32);

char NRF24l01P_GetMode_0Rx1StandbyI2PowerDown3TxOrStandbyII();
 

char NRF24l01P_SetMode_1Ok2Failed(char Mode_0Rx1StandbyI2PowerDown3TxOrStandbyII);

ALSO FROM THIS AUTHOR

All in One - 31 function and sub , RTC ds1307 1307 in Bascom Avr Compiler :)

0

All in One - 31 function and sub , RTC ds1307 1307 in Bascom avr Compiler :)

[Learn More]

All in One_ Save And Read Data to Internal Flash Memory_Stm32

0

Save And Read Data to Internal Flash Memory_Stm32 with Example for Stm32f030f4

[Learn More]