[STM32WLx] Added missing interrupt actions (#844)
This commit is contained in:
parent
f4f00537c6
commit
0d43891070
2 changed files with 57 additions and 0 deletions
|
@ -126,4 +126,28 @@ void STM32WLx::clearDio1Action() {
|
||||||
SubGhz.detachInterrupt();
|
SubGhz.detachInterrupt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void STM32WLx::setPacketReceivedAction(void (*func)(void)) {
|
||||||
|
this->setDio1Action(func);
|
||||||
|
}
|
||||||
|
|
||||||
|
void STM32WLx::clearPacketReceivedAction() {
|
||||||
|
this->clearDio1Action();
|
||||||
|
}
|
||||||
|
|
||||||
|
void STM32WLx::setPacketSentAction(void (*func)(void)) {
|
||||||
|
this->setDio1Action(func);
|
||||||
|
}
|
||||||
|
|
||||||
|
void STM32WLx::clearPacketSentAction() {
|
||||||
|
this->clearDio1Action();
|
||||||
|
}
|
||||||
|
|
||||||
|
void STM32WLx::setChannelScanAction(void (*func)(void)) {
|
||||||
|
this->setDio1Action(func);
|
||||||
|
}
|
||||||
|
|
||||||
|
void STM32WLx::clearChannelScanAction() {
|
||||||
|
this->clearDio1Action();
|
||||||
|
}
|
||||||
|
|
||||||
#endif // !defined(RADIOLIB_EXCLUDE_STM32WLX)
|
#endif // !defined(RADIOLIB_EXCLUDE_STM32WLX)
|
||||||
|
|
|
@ -120,6 +120,39 @@ class STM32WLx : public SX1262 {
|
||||||
*/
|
*/
|
||||||
void clearDio1Action();
|
void clearDio1Action();
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Sets interrupt service routine to call when a packet is received.
|
||||||
|
\param func ISR to call.
|
||||||
|
*/
|
||||||
|
void setPacketReceivedAction(void (*func)(void));
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Clears interrupt service routine to call when a packet is received.
|
||||||
|
*/
|
||||||
|
void clearPacketReceivedAction();
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Sets interrupt service routine to call when a packet is sent.
|
||||||
|
\param func ISR to call.
|
||||||
|
*/
|
||||||
|
void setPacketSentAction(void (*func)(void));
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Clears interrupt service routine to call when a packet is sent.
|
||||||
|
*/
|
||||||
|
void clearPacketSentAction();
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Sets interrupt service routine to call when a channel scan is finished.
|
||||||
|
\param func ISR to call.
|
||||||
|
*/
|
||||||
|
void setChannelScanAction(void (*func)(void));
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Clears interrupt service routine to call when a channel scan is finished.
|
||||||
|
*/
|
||||||
|
void clearChannelScanAction();
|
||||||
|
|
||||||
#if !defined(RADIOLIB_GODMODE)
|
#if !defined(RADIOLIB_GODMODE)
|
||||||
protected:
|
protected:
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue