|
| 1 | +use crate::ppi::Event; |
| 2 | + |
| 3 | +// Event impls |
| 4 | +// |
| 5 | +// To reproduce, in the pac crate, search |
| 6 | +// `rg 'type EVENTS_.*crate::Reg' --type rust` |
| 7 | +// Find (regex): |
| 8 | +// `^src/(.*)\.rs:pub type (.*) = .*$` |
| 9 | +// Replace (regex): |
| 10 | +// `impl Event for crate::target::$1::$2 { }` |
| 11 | +impl Event for crate::target::radio::EVENTS_READY {} |
| 12 | +impl Event for crate::target::radio::EVENTS_ADDRESS {} |
| 13 | +impl Event for crate::target::radio::EVENTS_PAYLOAD {} |
| 14 | +impl Event for crate::target::radio::EVENTS_END {} |
| 15 | +impl Event for crate::target::radio::EVENTS_DISABLED {} |
| 16 | +impl Event for crate::target::radio::EVENTS_DEVMATCH {} |
| 17 | +impl Event for crate::target::radio::EVENTS_DEVMISS {} |
| 18 | +impl Event for crate::target::radio::EVENTS_RSSIEND {} |
| 19 | +impl Event for crate::target::radio::EVENTS_BCMATCH {} |
| 20 | +impl Event for crate::target::radio::EVENTS_CRCOK {} |
| 21 | +impl Event for crate::target::radio::EVENTS_CRCERROR {} |
| 22 | +impl Event for crate::target::power::EVENTS_POFWARN {} |
| 23 | +impl Event for crate::target::power::EVENTS_SLEEPENTER {} |
| 24 | +impl Event for crate::target::power::EVENTS_SLEEPEXIT {} |
| 25 | +impl Event for crate::target::timer0::EVENTS_COMPARE {} |
| 26 | +impl Event for crate::target::rng::EVENTS_VALRDY {} |
| 27 | +impl Event for crate::target::uart0::EVENTS_CTS {} |
| 28 | +impl Event for crate::target::uart0::EVENTS_NCTS {} |
| 29 | +impl Event for crate::target::uart0::EVENTS_RXDRDY {} |
| 30 | +impl Event for crate::target::uart0::EVENTS_TXDRDY {} |
| 31 | +impl Event for crate::target::uart0::EVENTS_ERROR {} |
| 32 | +impl Event for crate::target::uart0::EVENTS_RXTO {} |
| 33 | +impl Event for crate::target::spis0::EVENTS_END {} |
| 34 | +impl Event for crate::target::spis0::EVENTS_ENDRX {} |
| 35 | +impl Event for crate::target::spis0::EVENTS_ACQUIRED {} |
| 36 | +impl Event for crate::target::gpiote::EVENTS_IN {} |
| 37 | +impl Event for crate::target::gpiote::EVENTS_PORT {} |
| 38 | +impl Event for crate::target::clock::EVENTS_HFCLKSTARTED {} |
| 39 | +impl Event for crate::target::clock::EVENTS_LFCLKSTARTED {} |
| 40 | +impl Event for crate::target::clock::EVENTS_DONE {} |
| 41 | +impl Event for crate::target::clock::EVENTS_CTTO {} |
| 42 | +impl Event for crate::target::spim0::EVENTS_STOPPED {} |
| 43 | +impl Event for crate::target::spim0::EVENTS_ENDRX {} |
| 44 | +impl Event for crate::target::spim0::EVENTS_END {} |
| 45 | +impl Event for crate::target::spim0::EVENTS_ENDTX {} |
| 46 | +impl Event for crate::target::spim0::EVENTS_STARTED {} |
| 47 | +impl Event for crate::target::spi0::EVENTS_READY {} |
| 48 | +impl Event for crate::target::wdt::EVENTS_TIMEOUT {} |
| 49 | +impl Event for crate::target::twim0::EVENTS_STOPPED {} |
| 50 | +impl Event for crate::target::twim0::EVENTS_ERROR {} |
| 51 | +impl Event for crate::target::twim0::EVENTS_SUSPENDED {} |
| 52 | +impl Event for crate::target::twim0::EVENTS_RXSTARTED {} |
| 53 | +impl Event for crate::target::twim0::EVENTS_TXSTARTED {} |
| 54 | +impl Event for crate::target::twim0::EVENTS_LASTRX {} |
| 55 | +impl Event for crate::target::twim0::EVENTS_LASTTX {} |
| 56 | +impl Event for crate::target::rtc0::EVENTS_TICK {} |
| 57 | +impl Event for crate::target::rtc0::EVENTS_OVRFLW {} |
| 58 | +impl Event for crate::target::rtc0::EVENTS_COMPARE {} |
| 59 | +impl Event for crate::target::twi0::EVENTS_STOPPED {} |
| 60 | +impl Event for crate::target::twi0::EVENTS_RXDREADY {} |
| 61 | +impl Event for crate::target::twi0::EVENTS_TXDSENT {} |
| 62 | +impl Event for crate::target::twi0::EVENTS_ERROR {} |
| 63 | +impl Event for crate::target::twi0::EVENTS_BB {} |
| 64 | +impl Event for crate::target::twi0::EVENTS_SUSPENDED {} |
| 65 | +impl Event for crate::target::egu0::EVENTS_TRIGGERED {} |
| 66 | +impl Event for crate::target::pdm::EVENTS_STARTED {} |
| 67 | +impl Event for crate::target::pdm::EVENTS_STOPPED {} |
| 68 | +impl Event for crate::target::pdm::EVENTS_END {} |
| 69 | +impl Event for crate::target::ecb::EVENTS_ENDECB {} |
| 70 | +impl Event for crate::target::ecb::EVENTS_ERRORECB {} |
| 71 | +impl Event for crate::target::lpcomp::EVENTS_READY {} |
| 72 | +impl Event for crate::target::lpcomp::EVENTS_DOWN {} |
| 73 | +impl Event for crate::target::lpcomp::EVENTS_UP {} |
| 74 | +impl Event for crate::target::lpcomp::EVENTS_CROSS {} |
| 75 | +impl Event for crate::target::temp::EVENTS_DATARDY {} |
| 76 | +impl Event for crate::target::ccm::EVENTS_ENDKSGEN {} |
| 77 | +impl Event for crate::target::ccm::EVENTS_ENDCRYPT {} |
| 78 | +impl Event for crate::target::ccm::EVENTS_ERROR {} |
| 79 | +impl Event for crate::target::i2s::EVENTS_RXPTRUPD {} |
| 80 | +impl Event for crate::target::i2s::EVENTS_STOPPED {} |
| 81 | +impl Event for crate::target::i2s::EVENTS_TXPTRUPD {} |
| 82 | +impl Event for crate::target::uarte0::EVENTS_CTS {} |
| 83 | +impl Event for crate::target::uarte0::EVENTS_NCTS {} |
| 84 | +impl Event for crate::target::uarte0::EVENTS_RXDRDY {} |
| 85 | +impl Event for crate::target::uarte0::EVENTS_ENDRX {} |
| 86 | +impl Event for crate::target::uarte0::EVENTS_TXDRDY {} |
| 87 | +impl Event for crate::target::uarte0::EVENTS_ENDTX {} |
| 88 | +impl Event for crate::target::uarte0::EVENTS_ERROR {} |
| 89 | +impl Event for crate::target::uarte0::EVENTS_RXTO {} |
| 90 | +impl Event for crate::target::uarte0::EVENTS_RXSTARTED {} |
| 91 | +impl Event for crate::target::uarte0::EVENTS_TXSTARTED {} |
| 92 | +impl Event for crate::target::uarte0::EVENTS_TXSTOPPED {} |
| 93 | +impl Event for crate::target::timer3::EVENTS_COMPARE {} |
| 94 | +impl Event for crate::target::comp::EVENTS_READY {} |
| 95 | +impl Event for crate::target::comp::EVENTS_DOWN {} |
| 96 | +impl Event for crate::target::comp::EVENTS_UP {} |
| 97 | +impl Event for crate::target::comp::EVENTS_CROSS {} |
| 98 | +impl Event for crate::target::twis0::EVENTS_STOPPED {} |
| 99 | +impl Event for crate::target::twis0::EVENTS_ERROR {} |
| 100 | +impl Event for crate::target::twis0::EVENTS_RXSTARTED {} |
| 101 | +impl Event for crate::target::twis0::EVENTS_TXSTARTED {} |
| 102 | +impl Event for crate::target::twis0::EVENTS_WRITE {} |
| 103 | +impl Event for crate::target::twis0::EVENTS_READ {} |
| 104 | +impl Event for crate::target::aar::EVENTS_END {} |
| 105 | +impl Event for crate::target::aar::EVENTS_RESOLVED {} |
| 106 | +impl Event for crate::target::aar::EVENTS_NOTRESOLVED {} |
| 107 | +impl Event for crate::target::qdec::EVENTS_SAMPLERDY {} |
| 108 | +impl Event for crate::target::qdec::EVENTS_REPORTRDY {} |
| 109 | +impl Event for crate::target::qdec::EVENTS_ACCOF {} |
| 110 | +impl Event for crate::target::qdec::EVENTS_DBLRDY {} |
| 111 | +impl Event for crate::target::qdec::EVENTS_STOPPED {} |
| 112 | +impl Event for crate::target::saadc::EVENTS_STARTED {} |
| 113 | +impl Event for crate::target::saadc::EVENTS_END {} |
| 114 | +impl Event for crate::target::saadc::EVENTS_DONE {} |
| 115 | +impl Event for crate::target::saadc::EVENTS_RESULTDONE {} |
| 116 | +impl Event for crate::target::saadc::EVENTS_CALIBRATEDONE {} |
| 117 | +impl Event for crate::target::saadc::EVENTS_STOPPED {} |
| 118 | +impl Event for crate::target::nfct::EVENTS_READY {} |
| 119 | +impl Event for crate::target::nfct::EVENTS_FIELDDETECTED {} |
| 120 | +impl Event for crate::target::nfct::EVENTS_FIELDLOST {} |
| 121 | +impl Event for crate::target::nfct::EVENTS_TXFRAMESTART {} |
| 122 | +impl Event for crate::target::nfct::EVENTS_TXFRAMEEND {} |
| 123 | +impl Event for crate::target::nfct::EVENTS_RXFRAMESTART {} |
| 124 | +impl Event for crate::target::nfct::EVENTS_RXFRAMEEND {} |
| 125 | +impl Event for crate::target::nfct::EVENTS_ERROR {} |
| 126 | +impl Event for crate::target::nfct::EVENTS_RXERROR {} |
| 127 | +impl Event for crate::target::nfct::EVENTS_ENDRX {} |
| 128 | +impl Event for crate::target::nfct::EVENTS_ENDTX {} |
| 129 | +impl Event for crate::target::nfct::EVENTS_AUTOCOLRESSTARTED {} |
| 130 | +impl Event for crate::target::nfct::EVENTS_COLLISION {} |
| 131 | +impl Event for crate::target::nfct::EVENTS_SELECTED {} |
| 132 | +impl Event for crate::target::nfct::EVENTS_STARTED {} |
| 133 | +impl Event for crate::target::pwm0::EVENTS_STOPPED {} |
| 134 | +impl Event for crate::target::pwm0::EVENTS_SEQSTARTED {} |
| 135 | +impl Event for crate::target::pwm0::EVENTS_SEQEND {} |
| 136 | +impl Event for crate::target::pwm0::EVENTS_PWMPERIODEND {} |
| 137 | +impl Event for crate::target::pwm0::EVENTS_LOOPSDONE {} |
0 commit comments