Jump to main content

# 3.3.4.15 EMAFE_SetDataFormat Function

## C

    void EMAFE_SetDataFormat ( uint32_t format );

## Summary

Set data format of the captured samples.

## Description

Set data format of the captured samples.

## Precondition

None.

## Parameters

Parameters | Description
--- | ---
format | Data Format

## Returns

None.

## Example

    EMAFE_SetDataFormat(EMAFE_EMR_FORMAT_FULLRANGE);

## Remarks

Table 3-12.Data Format Values
Format Value | Description
--- | ---
EMAFE_EMR_FORMAT_NB_CHANNEL | Index of channel is added in register EMAFE_DMA_DATA. 24-bit dynamic range (default). Only valid when DMA is enabled.
EMAFE_EMR_FORMAT_SIGNEXTEND | 24-bit value with sign extension up to 32-bit applied to registers EMAFE_DMA_DATA and EMAFE _DATAx. 24-bit dynamic range.
EMAFE_EMR_FORMAT_FULLRANGE | 32-bit full range signed extension is applied in EMAFE_DMA_DATA and EMAFE _DATAx. 32-bit dynamic range.

Rev: E