Contiki-NG
Loading...
Searching...
No Matches

Implementation of the cc2538 micro-DMA driver. More...

#include "contiki.h"
#include "dev/udma.h"
#include "dev/nvic.h"
#include "reg.h"
#include "dev/cc2538-dev.h"
#include <stdint.h>
#include <string.h>

Go to the source code of this file.

Functions

bool udma_is_valid_source_address (uintptr_t address)
 Checks if data can be DMAed from the given address.
 
void udma_init (void)
 Initialise the uDMA driver.
 
void udma_set_channel_src (uint8_t channel, uint32_t src_end)
 Sets the channels source address.
 
void udma_set_channel_dst (uint8_t channel, uint32_t dst_end)
 Sets the channel's destination address.
 
void udma_set_channel_control_word (uint8_t channel, uint32_t ctrl)
 Configure the channel's control word.
 
void udma_set_channel_assignment (uint8_t channel, uint8_t enc)
 Choose an encoding for a uDMA channel.
 
void udma_channel_enable (uint8_t channel)
 Enables a uDMA channel.
 
void udma_channel_disable (uint8_t channel)
 Disables a uDMA channel.
 
void udma_channel_use_alternate (uint8_t channel)
 Use the alternate control data structure for a channel.
 
void udma_channel_use_primary (uint8_t channel)
 Use the primary control data structure for a channel.
 
void udma_channel_prio_set_high (uint8_t channel)
 Set a uDMA channel to high priority.
 
void udma_channel_prio_set_default (uint8_t channel)
 Set a uDMA channel to default priority.
 
void udma_channel_use_burst (uint8_t channel)
 Configure a channel to only use burst transfers.
 
void udma_channel_use_single (uint8_t channel)
 Configure a channel to use single as well as burst requests.
 
void udma_channel_mask_set (uint8_t channel)
 Disable peripheral triggers for a uDMA channel.
 
void udma_channel_mask_clr (uint8_t channel)
 Enable peripheral triggers for a uDMA channel.
 
void udma_channel_sw_request (uint8_t channel)
 Generate a software trigger to start a transfer.
 
uint8_t udma_channel_get_mode (uint8_t channel)
 Retrieve the current mode for a channel.
 

Detailed Description

Implementation of the cc2538 micro-DMA driver.

Definition in file udma.c.