PER Firmware
Loading...
Searching...
No Matches
PHAL_ADC_Handle_t Struct Reference

Runtime handle for one ADC instance. More...

#include <adc.h>

Collaboration diagram for PHAL_ADC_Handle_t:
[legend]

Public Attributes

const PHAL_ADC_Config_tconfig
 
PHAL_DMA_Handle_t dma
 
volatile bool busy
 
volatile bool transfer_error
 

Detailed Description

Runtime handle for one ADC instance.

Zero-initialize (or static declare) and pass to PHAL_ADC_init(). Do not touch the fields yourself.

Member Data Documentation

◆ busy

volatile bool PHAL_ADC_Handle_t::busy

true while a transfer is in flight

◆ config

const PHAL_ADC_Config_t* PHAL_ADC_Handle_t::config

the config passed to PHAL_ADC_init()

◆ dma

PHAL_DMA_Handle_t PHAL_ADC_Handle_t::dma

DMA channel claimed for this ADC

◆ transfer_error

volatile bool PHAL_ADC_Handle_t::transfer_error

set if the last in-flight transfer hit a DMA error


The documentation for this struct was generated from the following file: