#[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
impl Clone for __SPI_HandleTypeDef
Source§fn clone(&self) -> __SPI_HandleTypeDef
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for __SPI_HandleTypeDef
Auto Trait Implementations§
impl !Send for __SPI_HandleTypeDef
impl !Sync for __SPI_HandleTypeDef
impl Freeze for __SPI_HandleTypeDef
impl RefUnwindSafe for __SPI_HandleTypeDef
impl Unpin for __SPI_HandleTypeDef
impl UnsafeUnpin for __SPI_HandleTypeDef
impl UnwindSafe for __SPI_HandleTypeDef
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