#[repr(C)]pub struct GpdmaStreamConfig {Show 16 fields
pub channel: u16,
pub stream: u16,
pub controller: u16,
pub transfer_type: u16,
pub source: usize,
pub dest: usize,
pub transfer_len: usize,
pub circular_source: bool,
pub circular_dest: bool,
pub interrupts: u8,
pub is_triggered: bool,
pub trigger: u8,
pub priority: u8,
pub transfer_mode: u8,
pub src_beat_len: u8,
pub dest_beat_len: u8,
}Expand description
DMA static configuration information
§Usage
This structure is delivered by the kernel into svc_exchange when
calling successfully crate::syscall::dma_get_stream_info().
The structure content correspond to the static build-time information as defined in the device-tree and do not require any DTS manipulation in user-space.
§Example
let dmacfg: dma_stream_cfg;
match get_dma_stream_info(dmah) {
Status::Ok => (svc_exchange::copy_from(&dma_stream_cfg, mem::sizeof(dma_stream_cfg)))
}Fields§
§channel: u16§stream: u16§controller: u16§transfer_type: u16§source: usize§dest: usize§transfer_len: usize§circular_source: bool§circular_dest: bool§interrupts: u8§is_triggered: bool§trigger: u8§priority: u8§transfer_mode: u8§src_beat_len: u8§dest_beat_len: u8Trait Implementations§
Source§impl Clone for GpdmaStreamConfig
impl Clone for GpdmaStreamConfig
Source§fn clone(&self) -> GpdmaStreamConfig
fn clone(&self) -> GpdmaStreamConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GpdmaStreamConfig
impl Debug for GpdmaStreamConfig
Source§impl SentryExchangeable for GpdmaStreamConfig
SentryExchangeable trait implementation for dma::GpdmaStreamConfig.
dma::GpdmaStreamConfig is a typical structure which is returned by the kernel to the
userspace in order to delivers various DMA stream-related information to a given
task that is using the corresponding DMA handle.
impl SentryExchangeable for GpdmaStreamConfig
SentryExchangeable trait implementation for dma::GpdmaStreamConfig. dma::GpdmaStreamConfig is a typical structure which is returned by the kernel to the userspace in order to delivers various DMA stream-related information to a given task that is using the corresponding DMA handle.
In test mode only, this structure can be written back to the Exchange Area. In production mode, the application can’t write such a content to the exchange as the kernel as strictly no use of it.