CMSIS-Driver: SAI Frame

| CMSIS-Driver Version 2.8.0 Peripheral Interface for Middleware and Application Code

- Main Page
- Usage and Description
- Reference

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
SAI Frame
SAI Configuration

Defines frame. More...

## Macros

#define | ARM_SAI_FRAME_LENGTH(n) ((((n)-1UL)&0x3FFUL) << ARM_SAI_FRAME_LENGTH_Pos)
| Frame length in bits (8..1024); default depends on protocol and data. More...
#define | ARM_SAI_FRAME_SYNC_WIDTH(n) ((((n)-1UL)&0xFFUL) << ARM_SAI_FRAME_SYNC_WIDTH_Pos)
| Frame Sync width in bits (1..256); default=1; User Protocol only (ignored otherwise) More...
#define | ARM_SAI_FRAME_SYNC_POLARITY_HIGH (0UL << ARM_SAI_FRAME_SYNC_POLARITY_Pos)
| Frame Sync is active high (default); User Protocol only (ignored otherwise) More...
#define | ARM_SAI_FRAME_SYNC_POLARITY_LOW (1UL << ARM_SAI_FRAME_SYNC_POLARITY_Pos)
| Frame Sync is active low; User Protocol only (ignored otherwise) More...
#define | ARM_SAI_FRAME_SYNC_EARLY (1UL << 19)
| Frame Sync one bit before the first bit of the frame; User Protocol only (ignored otherwise) More...

## Description

Defines frame.

## Macro Definition Documentation

#define ARM_SAI_FRAME_LENGTH | ( |  | n | ) | ((((n)-1UL)&0x3FFUL) << ARM_SAI_FRAME_LENGTH_Pos)

Frame length in bits (8..1024); default depends on protocol and data.

#define ARM_SAI_FRAME_SYNC_WIDTH | ( |  | n | ) | ((((n)-1UL)&0xFFUL) << ARM_SAI_FRAME_SYNC_WIDTH_Pos)

Frame Sync width in bits (1..256); default=1; User Protocol only (ignored otherwise)

#define ARM_SAI_FRAME_SYNC_POLARITY_HIGH (0UL << ARM_SAI_FRAME_SYNC_POLARITY_Pos)

Frame Sync is active high (default); User Protocol only (ignored otherwise)

#define ARM_SAI_FRAME_SYNC_POLARITY_LOW (1UL << ARM_SAI_FRAME_SYNC_POLARITY_Pos)

Frame Sync is active low; User Protocol only (ignored otherwise)

#define ARM_SAI_FRAME_SYNC_EARLY (1UL << 19)

Frame Sync one bit before the first bit of the frame; User Protocol only (ignored otherwise)