Reputation: 142
My struct has a member which is a SPI type from the docs.
pub struct TMC429<D, CS, const DS: u8>
where
D: SpiDevice,
CS: OutputPin,
CS::Error: core::fmt::Debug
{
spi: Spi<Enabled, D, DS>,
chip_select: CS,
motors: [MotorConfig; 3]
}
But I can't use the read/write/transfer functions, because it is not implemented for Spi<Enabled, SpiDevice, const DS>
.
I know that the trait Full Duplex has to be implemented by the SPI type, but this is done within a macro in the rp2040_hal .
How can I make my spi member have the trait FullDuplex in order to use the transfer function?
Upvotes: 1
Views: 103