7.6.4.5 Function dma_descriptor_get_config_defaults()

Initializes DMA transfer configuration with predefined default values.

void dma_descriptor_get_config_defaults( struct dma_descriptor_config * config)

This function will initialize a given DMA descriptor configuration structure to a set of known default values. This function should be called on any new instance of the configuration structure before being modified by the user application.

The default configuration is as follows:
  • Set the descriptor as valid

  • Disable event output

  • No block action

  • Set beat size as byte

  • Enable source increment

  • Enable destination increment

  • Step size is applied to the destination address

  • Address increment is beat size multiplied by 1

  • Default transfer size is set to 0

  • Default source address is set to NULL

  • Default destination address is set to NULL

  • Default next descriptor not available
    Table 7-11. Parameters
    Data directionParameter nameDescription

    [out]

    config

    Pointer to the configuration