adc_dma_read

Read data from ADC.

int32_t adc_dma_read(
    struct adc_dma_descriptor *const descr,
    uint8_t *const buffer,
    const uint16_t length
)

Parameters

descr

Type: struct adc_dma_descriptor Struct *const

The pointer to the ADC descriptor

buf

A buffer to read data to

length

Type: const uint16_t

The size of a buffer

Returns

Type: int32_t

The number of bytes read.