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]
Rating:
Author: Ebrahim Rahmanian
Last Updated: 2018-12-19
Package Version: 1.0.0.0
Category: Communication
Downloaded: 267 times
Not followed.
License: MIT license
All in One - 16 function and sub_ NRF24L01P Lib in avr :)
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 :)".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1545177572_all_in_one___16__mikroc_avr.rar [752.77KB] | mikroC PRO for AVR |
|
//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);