#[repr(C)]pub struct __DMA_HandleTypeDef {
pub Instance: *mut DMA_Channel_TypeDef,
pub Init: DMA_InitTypeDef,
pub Lock: HAL_LockTypeDef,
pub State: HAL_DMA_StateTypeDef,
pub Parent: *mut c_void,
pub XferCpltCallback: Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>,
pub XferHalfCpltCallback: Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>,
pub XferErrorCallback: Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>,
pub XferAbortCallback: Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>,
pub ErrorCode: u32,
pub DmaBaseAddress: *mut DMA_TypeDef,
pub ChannelIndex: u32,
}Expand description
@brief DMA handle Structure definition
Fields§
§Instance: *mut DMA_Channel_TypeDef< Register base address
Init: DMA_InitTypeDef< DMA communication parameters
Lock: HAL_LockTypeDef< DMA locking object
State: HAL_DMA_StateTypeDef< DMA transfer state
Parent: *mut c_void< Parent object state
XferCpltCallback: Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>< DMA transfer complete callback
XferHalfCpltCallback: Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>< DMA Half transfer complete callback
XferErrorCallback: Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>< DMA transfer error callback
XferAbortCallback: Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>< DMA transfer abort callback
ErrorCode: u32< DMA Error code
DmaBaseAddress: *mut DMA_TypeDef< DMA Channel Base Address
ChannelIndex: u32< DMA Channel Index
Trait Implementations§
Source§impl Clone for __DMA_HandleTypeDef
impl Clone for __DMA_HandleTypeDef
Source§fn clone(&self) -> __DMA_HandleTypeDef
fn clone(&self) -> __DMA_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 __DMA_HandleTypeDef
Auto Trait Implementations§
impl !Send for __DMA_HandleTypeDef
impl !Sync for __DMA_HandleTypeDef
impl Freeze for __DMA_HandleTypeDef
impl RefUnwindSafe for __DMA_HandleTypeDef
impl Unpin for __DMA_HandleTypeDef
impl UnsafeUnpin for __DMA_HandleTypeDef
impl UnwindSafe for __DMA_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