|
static constexpr auto | get_stream_ptr () |
| Gets a pointer to a stream DMA object, suitable for use with SPL. More...
|
|
static constexpr auto | get_stream_number () |
| Gets stream DMA number, according to RM. More...
|
|
static constexpr auto | get_size_div (dma_data_sz data_size) |
| Gets size divider for given data size bits from DMA control register. More...
|
|
static constexpr auto | get_rcc () |
| Gets RCC peripheral, associated with DMA. More...
|
|
static constexpr auto | get_err_flag () |
| Gets error flag of the DMA. More...
|
|
static constexpr auto | get_ht_flag () |
| Gets half-transfer flag of the DMA. More...
|
|
static constexpr auto | get_tc_flag () |
| Gets transfer-complete flag of the DMA. More...
|
|
static constexpr auto | get_err_if () |
| Gets error interrupt flag of the DMA. More...
|
|
static constexpr auto | get_ht_if () |
| Gets half-transfer interrupt flag of the DMA. More...
|
|
static constexpr auto | get_tc_if () |
| Gets transfer-complete interrupt flag of the DMA. More...
|
|
static constexpr auto | get_spl_channel () |
| Gets a pointer to a channel object, compatible with SPL functions. More...
|
|
static constexpr auto | get_size_div (dma_data_sz data_sz) |
| Gets size divider according to the size given. More...
|
|
static constexpr auto | get_rcc () |
| Gets RCC peripheral, associated with DMA. More...
|
|
static constexpr auto | get_err_flag () |
| Gets error flag of the DMA. More...
|
|
static constexpr auto | get_ht_flag () |
| Gets half-transfer flag of the DMA. More...
|
|
static constexpr auto | get_tc_flag () |
| Gets transfer-complete flag of the DMA. More...
|
|
static constexpr auto | get_global_flag () |
| Gets global flag of the DMA. More...
|
|
static constexpr auto | get_err_if () |
| Gets error interrupt flag of the DMA. More...
|
|
static constexpr auto | get_ht_if () |
| Gets half-transfer interrupt flag of the DMA. More...
|
|
static constexpr auto | get_tc_if () |
| Gets transfer-complete interrupt flag of the DMA. More...
|
|
static constexpr auto | get_global_if () |
| Gets global interrupt flag of the DMA. More...
|
|
static constexpr auto | get_irqn () |
| Gets IRQ number of given DMA entity. More...
|
|
static void | init () |
| Initializes DMA. More...
|
|
static void | mem_to_periph (const uint8_t *src, size_t size, volatile uint16_t *periph) |
| Prepares DMA transaction from the memory buffer to the given peripheral. More...
|
|
static void | mem_to_periph (uint16_t filler, size_t cnt, volatile uint16_t *periph) |
| Prepares DMA transaction that sends given data unit to the given peripheral. More...
|
|
static void | periph_to_mem (volatile uint16_t *periph, uint8_t *dst, size_t size) |
| Prepares DMA transaction from the peripheral to the given memory buffer. More...
|
|
static void | periph_to_mem (volatile uint16_t *periph, size_t size) |
| Prepares DMA transaction that reads data from peripheral without storing it. More...
|
|
static void | enable_events_irq () |
| Enables IRQ for the events from DMA entity. More...
|
|
static void | disable_events_irq () |
| Disables IRQ for the events from DMA entity. More...
|
|
static void | enable () |
| Enables DMA transaction. More...
|
|
static void | disable () |
| Disables DMA transaction. More...
|
|
static bool | tc () |
| Checks if TC event occurred. More...
|
|
static bool | ht () |
| Checks if HT event occurred. More...
|
|
static bool | err () |
| Checks if TC event occurred. More...
|
|
static void | clear_tc () |
| Clears TC event. More...
|
|
static void | clear_ht () |
| Clears HT event. More...
|
|
static void | clear_err () |
| Clears ERR event. More...
|
|
static auto | bytes_left () |
| Checks how many bytes left to transmit via DMA entity. More...
|
|
static constexpr auto | get_irqn () |
| Gets IRQ number of given DMA entity. More...
|
|
static void | init () |
| Initializes DMA. More...
|
|
static void | mem_to_periph (const uint8_t *src, size_t size, volatile uint16_t *periph) |
| Prepares DMA transaction from the memory buffer to the given peripheral. More...
|
|
static void | mem_to_periph (uint16_t filler, size_t cnt, volatile uint16_t *periph) |
| Prepares DMA transaction that sends given data unit to the given peripheral. More...
|
|
static void | periph_to_mem (volatile uint16_t *periph, uint8_t *dst, size_t size) |
| Prepares DMA transaction from the peripheral to the given memory buffer. More...
|
|
static void | periph_to_mem (volatile uint16_t *periph, size_t size) |
| Prepares DMA transaction that reads data from peripheral without storing it. More...
|
|
static void | enable_events_irq () |
| Enables IRQ for the events from DMA entity. More...
|
|
static void | disable_events_irq () |
| Disables IRQ for the events from DMA entity. More...
|
|
static void | enable () |
| Enables DMA transaction. More...
|
|
static void | disable () |
| Disables DMA transaction. More...
|
|
static bool | tc () |
| Checks if TC event occurred. More...
|
|
static bool | ht () |
| Checks if HT event occurred. More...
|
|
static bool | err () |
| Checks if TC event occurred. More...
|
|
static void | clear_tc () |
| Clears TC event. More...
|
|
static void | clear_ht () |
| Clears HT event. More...
|
|
static void | clear_err () |
| Clears ERR event. More...
|
|
static auto | bytes_left () |
| Checks how many bytes left to transmit via DMA entity. More...
|
|
template<dma_stream Stream, dma_channel Channel>
struct ecl::dma_wrap< Stream, Channel >
DMA wrapper for STM32F4XX.
DMA wrapper for STM32L1XX.
- Template Parameters
-
DMA | stream, acoording to RM. |
DMA | channel, according to RM. |
Channel | DMA channel, according to RM. |