HAL
__LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHAL__LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE

__LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE macro

Helper macro to get the ADC multimode conversion data of ADC master or ADC slave from raw value with both ADC conversion data concatenated.

Syntax

#define __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(__ADC_MULTI_MASTER_SLAVE__, __ADC_MULTI_CONV_DATA__) \     (((__ADC_MULTI_CONV_DATA__) >> POSITION_VAL((__ADC_MULTI_MASTER_SLAVE__))) & ADC_CDR_RDATA_MST)

Arguments

__ADC_MULTI_MASTER_SLAVE__

This parameter can be one of the following values: @arg LL_ADC_MULTI_MASTER @arg LL_ADC_MULTI_SLAVE

__ADC_MULTI_CONV_DATA__

Value between Min_Data=0x000 and Max_Data=0xFFF

Return value

Value between Min_Data=0x000 and Max_Data=0xFFF

Notes

This macro is intended to be used when multimode transfer by DMA is enabled: refer to function LL_ADC_SetMultiDMATransfer(). In this case the transferred data need to processed with this macro to separate the conversion data of ADC master and ADC slave.

References

LocationText
stm32f4xx_ll_adc.h:1533
#define __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(__ADC_MULTI_MASTER_SLAVE__, __ADC_MULTI_CONV_DATA__) \