CMSIS-Driver  
Peripheral Interface for Middleware and Application Code
 
Loading...
Searching...
No Matches

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.
 
#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)
 

Description

Defines frame.

Macro Definition Documentation

◆ ARM_SAI_FRAME_LENGTH

#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.

◆ ARM_SAI_FRAME_SYNC_WIDTH

#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)

◆ ARM_SAI_FRAME_SYNC_POLARITY_HIGH

#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)

◆ ARM_SAI_FRAME_SYNC_POLARITY_LOW

#define ARM_SAI_FRAME_SYNC_POLARITY_LOW   (1UL << ARM_SAI_FRAME_SYNC_POLARITY_Pos)

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

◆ ARM_SAI_FRAME_SYNC_EARLY

#define ARM_SAI_FRAME_SYNC_EARLY   (1UL << 19)

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