pub struct PioGSpi<'a> { /* private fields */ }Expand description
The gSPI PIO peripheral driver
Implementations§
Trait Implementations§
Source§impl DmaChannelClient for PioGSpi<'_>
impl DmaChannelClient for PioGSpi<'_>
fn transfer_done(&self)
Source§impl<'a> SpiMasterDevice<'a> for PioGSpi<'a>
impl<'a> SpiMasterDevice<'a> for PioGSpi<'a>
Source§fn set_client(&self, client: &'a dyn SpiMasterClient)
fn set_client(&self, client: &'a dyn SpiMasterClient)
Set the callback for read_write operations.
Source§fn read_write_bytes(
&self,
write_buffer: SubSliceMut<'static, u8>,
read_buffer: Option<SubSliceMut<'static, u8>>,
) -> Result<(), (ErrorCode, SubSliceMut<'static, u8>, Option<SubSliceMut<'static, u8>>)>
fn read_write_bytes( &self, write_buffer: SubSliceMut<'static, u8>, read_buffer: Option<SubSliceMut<'static, u8>>, ) -> Result<(), (ErrorCode, SubSliceMut<'static, u8>, Option<SubSliceMut<'static, u8>>)>
Same as
SpiMaster::read_write_bytes.Source§fn set_polarity(&self, _: ClockPolarity) -> Result<(), ErrorCode>
fn set_polarity(&self, _: ClockPolarity) -> Result<(), ErrorCode>
Same as
SpiMaster::set_polarity.Source§fn set_phase(&self, _: ClockPhase) -> Result<(), ErrorCode>
fn set_phase(&self, _: ClockPhase) -> Result<(), ErrorCode>
Same as
SpiMaster::set_phase.Source§fn configure(
&self,
_: ClockPolarity,
_: ClockPhase,
_: u32,
) -> Result<(), ErrorCode>
fn configure( &self, _: ClockPolarity, _: ClockPhase, _: u32, ) -> Result<(), ErrorCode>
Configure the bus for this chip select.
Source§fn get_polarity(&self) -> ClockPolarity
fn get_polarity(&self) -> ClockPolarity
Return the current bus polarity.
Source§fn get_phase(&self) -> ClockPhase
fn get_phase(&self) -> ClockPhase
Get the current bus phase for the current chip select.
Auto Trait Implementations§
impl<'a> !Freeze for PioGSpi<'a>
impl<'a> !RefUnwindSafe for PioGSpi<'a>
impl<'a> !Send for PioGSpi<'a>
impl<'a> !Sync for PioGSpi<'a>
impl<'a> Unpin for PioGSpi<'a>
impl<'a> !UnwindSafe for PioGSpi<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more