kopia lustrzana https://github.com/jgromes/RadioLib
				
				
				
			[SX126x] Added methods to clear DIO actions
							rodzic
							
								
									d00d07fe9c
								
							
						
					
					
						commit
						460a050a63
					
				|  | @ -62,6 +62,8 @@ receiveDirect	KEYWORD2 | |||
| packetMode	KEYWORD2 | ||||
| setDio0Action	KEYWORD2 | ||||
| setDio1Action	KEYWORD2 | ||||
| clearDio0Action	KEYWORD2 | ||||
| clearDio1Action	KEYWORD2 | ||||
| startTransmit	KEYWORD2 | ||||
| startReceive	KEYWORD2 | ||||
| readData	KEYWORD2 | ||||
|  | @ -107,7 +109,9 @@ setAmbientTemperature	KEYWORD2 | |||
| # CC1101-specific | ||||
| getLQI	KEYWORD2 | ||||
| setGdo0Action	KEYWORD2 | ||||
| setGdo1Action	KEYWORD2 | ||||
| setGdo2Action	KEYWORD2 | ||||
| clearGdo0Action	KEYWORD2 | ||||
| clearGdo2Action	KEYWORD2 | ||||
| 
 | ||||
| # SX126x-specific | ||||
| setTCXO	KEYWORD2 | ||||
|  |  | |||
|  | @ -393,6 +393,10 @@ void SX126x::setDio1Action(void (*func)(void)) { | |||
|   attachInterrupt(digitalPinToInterrupt(_mod->getIrq()), func, RISING); | ||||
| } | ||||
| 
 | ||||
| void SX126x::clearDio1Action() { | ||||
|   detachInterrupt(digitalPinToInterrupt(_mod->getIrq())); | ||||
| } | ||||
| 
 | ||||
| int16_t SX126x::startTransmit(uint8_t* data, size_t len, uint8_t addr) { | ||||
|   // suppress unused variable warning
 | ||||
|   (void)addr; | ||||
|  |  | |||
|  | @ -481,6 +481,11 @@ class SX126x: public PhysicalLayer { | |||
|     */ | ||||
|     void setDio1Action(void (*func)(void)); | ||||
| 
 | ||||
|     /*!
 | ||||
|       \brief Clears interrupt service routine to call when DIO1 activates. | ||||
|     */ | ||||
|     void clearDio1Action(); | ||||
| 
 | ||||
|     /*!
 | ||||
|       \brief Interrupt-driven binary transmit method. | ||||
|       Overloads for string-based transmissions are implemented in PhysicalLayer. | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 jgromes
						jgromes