Synergy Software Package User's Manual

#include <r_transfer_api.h>

Data Fields

transfer_addr_mode_t dest_addr_mode: 2
 
transfer_repeat_area_t repeat_area: 1
 
transfer_irq_t irq: 1
 
transfer_chain_mode_t chain_mode: 2
 
transfer_addr_mode_t src_addr_mode: 2
 
transfer_size_t size: 2
 
transfer_mode_t mode: 2
 
void const *volatile p_src
 Source pointer.
 
void *volatile p_dest
 Destination pointer.
 
volatile uint16_t num_blocks
 
volatile uint16_t length
 

Detailed Description

This structure specifies the properties of the transfer.

Warning
When using DTC, this structure corresponds to the descriptor block registers required by the DTC. The following components may be modified by the driver: p_src, p_dest, num_blocks, and length.
When using DTC, do NOT reuse this structure to configure multiple transfers. Each transfer must have a unique transfer_info_t.
When using DTC, this structure must not be allocated in a temporary location. Any instance of this structure must remain in scope until the transfer it is used for is closed.
Note
When using DTC, consider placing instances of this structure in a protected section of memory.

Field Documentation

◆ chain_mode

transfer_chain_mode_t transfer_info_t::chain_mode

Select when the chain transfer ends.

◆ dest_addr_mode

transfer_addr_mode_t transfer_info_t::dest_addr_mode

Select what happens to destination pointer after each transfer.

◆ irq

transfer_irq_t transfer_info_t::irq

Select if interrupts should occur after each individual transfer or after the completion of all planned transfers.

◆ length

volatile uint16_t transfer_info_t::length

Length of each transfer. Range limited for TRANSFER_MODE_BLOCK and TRANSFER_MODE_REPEAT, see HAL driver for details.

◆ mode

transfer_mode_t transfer_info_t::mode

Select mode from transfer_mode_t.

◆ num_blocks

volatile uint16_t transfer_info_t::num_blocks

Number of blocks to transfer when using TRANSFER_MODE_BLOCK (both DTC an DMAC) and TRANSFER_MODE_REPEAT (DMAC only), unused in other modes.

◆ repeat_area

transfer_repeat_area_t transfer_info_t::repeat_area

Select to repeat source or destination area, unused in TRANSFER_MODE_NORMAL.

◆ size

transfer_size_t transfer_info_t::size

Select number of bytes to transfer at once.

See also
transfer_info_t::length.

◆ src_addr_mode

transfer_addr_mode_t transfer_info_t::src_addr_mode

Select what happens to source pointer after each transfer.


The documentation for this struct was generated from the following file: