|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
DMAC channel configuration. More...
#include <ra8_dmac.h>
Data Fields | |
| uint32_t | src |
| Source address (DMSAR). | |
| uint32_t | dst |
| Destination address (DMDAR). | |
| uint16_t | count |
| Transfer count (DMCRA low). | |
| ra8_dmac_width_t | width |
| Transfer element width. | |
| bool | src_inc |
| true: SM = increment, else fixed. | |
| bool | dst_inc |
| true: DM = increment, else fixed. | |
| ra8_dmac_mode_t | mode |
| Transfer mode (DMTMD.MD). | |
| uint16_t | block_count |
| DMCRB block/repeat count. | |
| ra8_dmac_repeat_area_t | repeat_area |
| DMTMD.DTS area select. | |
| bool | irq_each |
| Enable RPTIE/ESIE per repeat. | |
| bool | enable_dtie |
| Enable DMINT.DTIE on full end. | |
DMAC channel configuration.
Mirrors the subset of FSP transfer_info_t that this project currently programmes. Defaults (zero-initialized struct) yield a software-triggered, normal-mode transfer with both pointers fixed and no IRQ – safe for the existing CEU / SSIE / SCI / SPI / GPT call sites.
Fields:
Definition at line 121 of file ra8_dmac.h.
| uint16_t ra8_dmac_config_t::block_count |
DMCRB block/repeat count.
Definition at line 129 of file ra8_dmac.h.
Referenced by internal_program_channel(), and ra8_dmac_start_block().
| uint16_t ra8_dmac_config_t::count |
Transfer count (DMCRA low).
Definition at line 124 of file ra8_dmac.h.
Referenced by internal_dmcra_value(), and internal_pack_dmac_cfg().
| uint32_t ra8_dmac_config_t::dst |
Destination address (DMDAR).
Definition at line 123 of file ra8_dmac.h.
Referenced by internal_pack_dmac_cfg(), and internal_program_channel().
| bool ra8_dmac_config_t::dst_inc |
true: DM = increment, else fixed.
Definition at line 127 of file ra8_dmac.h.
Referenced by internal_pack_dmac_cfg(), and internal_program_channel().
| bool ra8_dmac_config_t::enable_dtie |
Enable DMINT.DTIE on full end.
Definition at line 132 of file ra8_dmac.h.
Referenced by internal_dmint_value().
| bool ra8_dmac_config_t::irq_each |
Enable RPTIE/ESIE per repeat.
Definition at line 131 of file ra8_dmac.h.
Referenced by internal_dmint_value().
| ra8_dmac_mode_t ra8_dmac_config_t::mode |
Transfer mode (DMTMD.MD).
Definition at line 128 of file ra8_dmac.h.
Referenced by internal_dmcra_value(), internal_dmint_value(), internal_dmtmd_value(), internal_program_channel(), internal_start_with_mode(), and internal_validate_cfg().
| ra8_dmac_repeat_area_t ra8_dmac_config_t::repeat_area |
DMTMD.DTS area select.
Definition at line 130 of file ra8_dmac.h.
Referenced by internal_dmtmd_value().
| uint32_t ra8_dmac_config_t::src |
Source address (DMSAR).
Definition at line 122 of file ra8_dmac.h.
Referenced by internal_pack_dmac_cfg(), and internal_program_channel().
| bool ra8_dmac_config_t::src_inc |
true: SM = increment, else fixed.
Definition at line 126 of file ra8_dmac.h.
Referenced by internal_pack_dmac_cfg(), and internal_program_channel().
| ra8_dmac_width_t ra8_dmac_config_t::width |
Transfer element width.
Definition at line 125 of file ra8_dmac.h.
Referenced by internal_dmtmd_value(), internal_pack_dmac_cfg(), and internal_validate_cfg().