Go to the source code of this file.
◆ DMA_RFRX_LEN_HW_INFO
#define DMA_RFRX_LEN_HW_INFO 0 |
◆ DMA_RFRX_OFFSET_HEADER
#define DMA_RFRX_OFFSET_HEADER 4 |
◆ DMA_RFRX_OFFSET_RFLEN
#define DMA_RFRX_OFFSET_RFLEN 5 |
◆ DMA_RFRX_OFFSET_DATA
#define DMA_RFRX_OFFSET_DATA 6 |
◆ DMA_RFRX_OFFSET_CRC24
◆ DMA_RFRX_OFFSET_TIME_STAMP
◆ DMA_RFRX_OFFSET_FREQ_OFFSET
◆ DMA_RFRX_OFFSET_RSSI
◆ RFDMA_RX_DISABLE
◆ RFDMA_RX_ENABLE
◆ RFDMA_TX_DISABLE
◆ RFDMA_TX_ENABLE
◆ DMA_chn_Typdef
Enumerator |
---|
DMA0_UART_RX | |
DMA1_UART_TX | |
DMA2_RF_RX | |
DMA3_RF_TX | |
DMA4_AES_DECO | |
DMA5_AES_CODE | |
DMA6 | |
DMA7_PWM | |
◆ dma_reset()
static void dma_reset |
( |
void |
| ) |
|
|
inlinestatic |
This function resets the DMA module.
- Parameters
-
- Returns
- none
◆ dma_irq_enable()
static void dma_irq_enable |
( |
unsigned int |
msk | ) |
|
|
inlinestatic |
This function performs to enable DMA.
- Parameters
-
[in] | msk | - variable to config. |
- Returns
- none.
◆ dma_irq_disable()
static void dma_irq_disable |
( |
unsigned int |
msk | ) |
|
|
inlinestatic |
This function performs to enable DMA.
- Parameters
-
[in] | msk | - variable to config. |
- Returns
- none.
◆ dma_chn_enable()
static void dma_chn_enable |
( |
unsigned char |
chn, |
|
|
unsigned int |
en |
|
) |
| |
|
inlinestatic |
This function performs to enable DMA chnnel.
- Parameters
-
[in] | en | - en: 1 enable. 0 disable. |
- Returns
- none.
◆ dma_chn_irq_enable()
static void dma_chn_irq_enable |
( |
unsigned char |
chn, |
|
|
unsigned int |
en |
|
) |
| |
|
inlinestatic |
This function performs to enable DMA interrupt.
- Parameters
-
[in] | chn | - variable to config the DMA interrupt channel. |
[in] | en | - en: 1 enable. 0 disable. |
- Returns
- none.
◆ dma_chn_irq_status_clr()
static void dma_chn_irq_status_clr |
( |
unsigned char |
irq_status | ) |
|
|
inlinestatic |
Clear IRQ status of uart.
- Parameters
-
[in] | irq_src | - select tx or rx irq. |
- Returns
- none
◆ dma_chn_irq_status_get()
static unsigned char dma_chn_irq_status_get |
( |
void |
| ) |
|
|
inlinestatic |
Get IRQ status of uart.
- Parameters
-
[in] | irq_src | - select tx or rx irq. |
- Returns
- none
◆ dma_set_buff_size()
static void dma_set_buff_size |
( |
DMA_chn_Typdef |
chn, |
|
|
unsigned int |
size |
|
) |
| |
|
inlinestatic |
This function serves to set the size of dma buffer.
- Parameters
-
[in] | size | - select tx or rx irq. caution: max size = 2048 |
- Returns
- none