Skip to main content

__SPI_HandleTypeDef

Struct __SPI_HandleTypeDef 

Source
#[repr(C)]
pub struct __SPI_HandleTypeDef {
Show 15 fields pub Instance: *mut SPI_TypeDef, pub Init: SPI_InitTypeDef, pub pTxBuffPtr: *mut u8, pub TxXferSize: u16, pub TxXferCount: u16, pub pRxBuffPtr: *mut u8, pub RxXferSize: u16, pub RxXferCount: u16, pub RxISR: Option<unsafe extern "C" fn(hspi: *mut __SPI_HandleTypeDef)>, pub TxISR: Option<unsafe extern "C" fn(hspi: *mut __SPI_HandleTypeDef)>, pub hdmatx: *mut DMA_HandleTypeDef, pub hdmarx: *mut DMA_HandleTypeDef, pub Lock: HAL_LockTypeDef, pub State: HAL_SPI_StateTypeDef, pub ErrorCode: u32,
}
Expand description

@brief SPI handle Structure definition

Fields§

§Instance: *mut SPI_TypeDef

< SPI registers base address

§Init: SPI_InitTypeDef

< SPI communication parameters

§pTxBuffPtr: *mut u8

< Pointer to SPI Tx transfer Buffer

§TxXferSize: u16

< SPI Tx Transfer size

§TxXferCount: u16

< SPI Tx Transfer Counter

§pRxBuffPtr: *mut u8

< Pointer to SPI Rx transfer Buffer

§RxXferSize: u16

< SPI Rx Transfer size

§RxXferCount: u16

< SPI Rx Transfer Counter

§RxISR: Option<unsafe extern "C" fn(hspi: *mut __SPI_HandleTypeDef)>

< function pointer on Rx ISR

§TxISR: Option<unsafe extern "C" fn(hspi: *mut __SPI_HandleTypeDef)>

< function pointer on Tx ISR

§hdmatx: *mut DMA_HandleTypeDef

< SPI Tx DMA Handle parameters

§hdmarx: *mut DMA_HandleTypeDef

< SPI Rx DMA Handle parameters

§Lock: HAL_LockTypeDef

< Locking object

§State: HAL_SPI_StateTypeDef

< SPI communication state

§ErrorCode: u32

< SPI Error code

Trait Implementations§

Source§

impl Clone for __SPI_HandleTypeDef

Source§

fn clone(&self) -> __SPI_HandleTypeDef

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for __SPI_HandleTypeDef

Source§

impl Debug for __SPI_HandleTypeDef

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.