@@ -80,7 +80,6 @@ use crate::{
8080 Channel ,
8181 ChannelRx ,
8282 ChannelTx ,
83- CompatibleWith ,
8483 DescriptorChain ,
8584 DmaChannelFor ,
8685 DmaDescriptor ,
@@ -90,11 +89,12 @@ use crate::{
9089 DmaTransferRxCircular ,
9190 DmaTransferTx ,
9291 DmaTransferTxCircular ,
92+ PeripheralDmaChannel ,
93+ PeripheralRxChannel ,
94+ PeripheralTxChannel ,
9395 ReadBuffer ,
9496 Rx ,
95- RxChannelFor ,
9697 Tx ,
97- TxChannelFor ,
9898 WriteBuffer ,
9999 } ,
100100 gpio:: interconnect:: PeripheralOutput ,
@@ -271,7 +271,7 @@ where
271271 standard : Standard ,
272272 data_format : DataFormat ,
273273 sample_rate : impl Into < fugit:: HertzU32 > ,
274- channel : PeripheralRef < ' d , DmaChannelFor < T > > ,
274+ channel : PeripheralRef < ' d , PeripheralDmaChannel < T > > ,
275275 rx_descriptors : & ' static mut [ DmaDescriptor ] ,
276276 tx_descriptors : & ' static mut [ DmaDescriptor ] ,
277277 ) -> Self {
@@ -377,7 +377,7 @@ impl<'d> I2s<'d, Blocking> {
377377 tx_descriptors : & ' static mut [ DmaDescriptor ] ,
378378 ) -> Self
379379 where
380- CH : CompatibleWith < AnyI2s > ,
380+ CH : DmaChannelFor < AnyI2s > ,
381381 {
382382 Self :: new_typed (
383383 i2s. map_into ( ) ,
@@ -408,7 +408,7 @@ where
408408 tx_descriptors : & ' static mut [ DmaDescriptor ] ,
409409 ) -> Self
410410 where
411- CH : CompatibleWith < T > ,
411+ CH : DmaChannelFor < T > ,
412412 {
413413 crate :: into_ref!( i2s) ;
414414 Self :: new_internal (
@@ -463,7 +463,7 @@ where
463463 DmaMode : Mode ,
464464{
465465 i2s : PeripheralRef < ' d , T > ,
466- tx_channel : ChannelTx < ' d , DmaMode , TxChannelFor < T > > ,
466+ tx_channel : ChannelTx < ' d , DmaMode , PeripheralTxChannel < T > > ,
467467 tx_chain : DescriptorChain ,
468468 _guard : PeripheralGuard ,
469469}
@@ -497,7 +497,7 @@ where
497497 T : RegisterAccess ,
498498 DmaMode : Mode ,
499499{
500- type TX = ChannelTx < ' d , DmaMode , TxChannelFor < T > > ;
500+ type TX = ChannelTx < ' d , DmaMode , PeripheralTxChannel < T > > ;
501501
502502 fn tx ( & mut self ) -> & mut Self :: TX {
503503 & mut self . tx_channel
@@ -596,7 +596,7 @@ where
596596 DmaMode : Mode ,
597597{
598598 i2s : PeripheralRef < ' d , T > ,
599- rx_channel : ChannelRx < ' d , DmaMode , RxChannelFor < T > > ,
599+ rx_channel : ChannelRx < ' d , DmaMode , PeripheralRxChannel < T > > ,
600600 rx_chain : DescriptorChain ,
601601 _guard : PeripheralGuard ,
602602}
@@ -630,7 +630,7 @@ where
630630 T : RegisterAccess ,
631631 DmaMode : Mode ,
632632{
633- type RX = ChannelRx < ' d , DmaMode , RxChannelFor < T > > ;
633+ type RX = ChannelRx < ' d , DmaMode , PeripheralRxChannel < T > > ;
634634
635635 fn rx ( & mut self ) -> & mut Self :: RX {
636636 & mut self . rx_channel
@@ -766,7 +766,7 @@ mod private {
766766 M : Mode ,
767767 {
768768 pub i2s : PeripheralRef < ' d , T > ,
769- pub tx_channel : ChannelTx < ' d , M , TxChannelFor < T > > ,
769+ pub tx_channel : ChannelTx < ' d , M , PeripheralTxChannel < T > > ,
770770 pub descriptors : & ' static mut [ DmaDescriptor ] ,
771771 pub ( crate ) guard : PeripheralGuard ,
772772 }
@@ -826,7 +826,7 @@ mod private {
826826 M : Mode ,
827827 {
828828 pub i2s : PeripheralRef < ' d , T > ,
829- pub rx_channel : ChannelRx < ' d , M , RxChannelFor < T > > ,
829+ pub rx_channel : ChannelRx < ' d , M , PeripheralRxChannel < T > > ,
830830 pub descriptors : & ' static mut [ DmaDescriptor ] ,
831831 pub ( crate ) guard : PeripheralGuard ,
832832 }
0 commit comments