Added closeReadingPipe.
This commit is contained in:
@@ -860,6 +860,14 @@ void RF24::openReadingPipe(uint8_t child, uint64_t address)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/****************************************************************************/
|
||||||
|
|
||||||
|
void RF24::closeReadingPipe( uint8_t pipe )
|
||||||
|
{
|
||||||
|
write_register(EN_RXADDR,read_register(EN_RXADDR) & ~_BV(pgm_read_byte(&child_pipe_enable[pipe])));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
void RF24::toggle_features(void)
|
void RF24::toggle_features(void)
|
||||||
|
|||||||
@@ -208,6 +208,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
void openReadingPipe(uint8_t number, uint64_t address);
|
void openReadingPipe(uint8_t number, uint64_t address);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Close a pipe after it has been previously opened.
|
||||||
|
* Can be safely called without having previously opened a pipe.
|
||||||
|
* @param pipe Which pipe # to close, 0-5.
|
||||||
|
*/
|
||||||
|
void closeReadingPipe( uint8_t pipe ) ;
|
||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
/**
|
/**
|
||||||
* @name Advanced Operation
|
* @name Advanced Operation
|
||||||
|
|||||||
Reference in New Issue
Block a user