aboutsummaryrefslogtreecommitdiff
path: root/embassy-lora/src
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-lora/src')
-rw-r--r--embassy-lora/src/sx127x/mod.rs22
1 files changed, 18 insertions, 4 deletions
diff --git a/embassy-lora/src/sx127x/mod.rs b/embassy-lora/src/sx127x/mod.rs
index 7d3280e05..c26628b0f 100644
--- a/embassy-lora/src/sx127x/mod.rs
+++ b/embassy-lora/src/sx127x/mod.rs
@@ -89,8 +89,15 @@ where
89{ 89{
90 type PhyError = Sx127xError; 90 type PhyError = Sx127xError;
91 91
92 #[rustfmt::skip] 92 type TxFuture<'m>
93 type TxFuture<'m> where SPI: 'm, CS: 'm, RESET: 'm, E: 'm, I: 'm, RFS: 'm = impl Future<Output = Result<u32, Self::PhyError>> + 'm; 93 where
94 SPI: 'm,
95 CS: 'm,
96 RESET: 'm,
97 E: 'm,
98 I: 'm,
99 RFS: 'm,
100 = impl Future<Output = Result<u32, Self::PhyError>> + 'm;
94 101
95 fn tx<'m>(&'m mut self, config: TxConfig, buf: &'m [u8]) -> Self::TxFuture<'m> { 102 fn tx<'m>(&'m mut self, config: TxConfig, buf: &'m [u8]) -> Self::TxFuture<'m> {
96 trace!("TX START"); 103 trace!("TX START");
@@ -130,8 +137,15 @@ where
130 } 137 }
131 } 138 }
132 139
133 #[rustfmt::skip] 140 type RxFuture<'m>
134 type RxFuture<'m> where SPI: 'm, CS: 'm, RESET: 'm, E: 'm, I: 'm, RFS: 'm = impl Future<Output = Result<(usize, RxQuality), Self::PhyError>> + 'm; 141 where
142 SPI: 'm,
143 CS: 'm,
144 RESET: 'm,
145 E: 'm,
146 I: 'm,
147 RFS: 'm,
148 = impl Future<Output = Result<(usize, RxQuality), Self::PhyError>> + 'm;
135 149
136 fn rx<'m>(&'m mut self, config: RfConfig, buf: &'m mut [u8]) -> Self::RxFuture<'m> { 150 fn rx<'m>(&'m mut self, config: RfConfig, buf: &'m mut [u8]) -> Self::RxFuture<'m> {
137 trace!("RX START"); 151 trace!("RX START");