MAX32660 Peripheral Driver API
Peripheral Driver API for the MAX32660
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
SPI_CTRL2

Macros

#define MXC_F_SPI_CTRL2_CLK_PHA_POS   0
 
#define MXC_F_SPI_CTRL2_CLK_PHA   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_CLK_PHA_POS))
 
#define MXC_F_SPI_CTRL2_CLK_POL_POS   1
 
#define MXC_F_SPI_CTRL2_CLK_POL   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_CLK_POL_POS))
 
#define MXC_F_SPI_CTRL2_NUM_BITS_POS   8
 
#define MXC_F_SPI_CTRL2_NUM_BITS   ((uint32_t)(0xFUL << MXC_F_SPI_CTRL2_NUM_BITS_POS))
 
#define MXC_V_SPI_CTRL2_NUM_BITS_0   ((uint32_t)0x0UL)
 
#define MXC_S_SPI_CTRL2_NUM_BITS_0   (MXC_V_SPI_CTRL2_NUM_BITS_0 << MXC_F_SPI_CTRL2_NUM_BITS_POS)
 
#define MXC_F_SPI_CTRL2_DATA_WIDTH_POS   12
 
#define MXC_F_SPI_CTRL2_DATA_WIDTH   ((uint32_t)(0x3UL << MXC_F_SPI_CTRL2_DATA_WIDTH_POS))
 
#define MXC_V_SPI_CTRL2_DATA_WIDTH_MONO   ((uint32_t)0x0UL)
 
#define MXC_S_SPI_CTRL2_DATA_WIDTH_MONO   (MXC_V_SPI_CTRL2_DATA_WIDTH_MONO << MXC_F_SPI_CTRL2_DATA_WIDTH_POS)
 
#define MXC_V_SPI_CTRL2_DATA_WIDTH_DUAL   ((uint32_t)0x1UL)
 
#define MXC_S_SPI_CTRL2_DATA_WIDTH_DUAL   (MXC_V_SPI_CTRL2_DATA_WIDTH_DUAL << MXC_F_SPI_CTRL2_DATA_WIDTH_POS)
 
#define MXC_V_SPI_CTRL2_DATA_WIDTH_QUAD   ((uint32_t)0x2UL)
 
#define MXC_S_SPI_CTRL2_DATA_WIDTH_QUAD   (MXC_V_SPI_CTRL2_DATA_WIDTH_QUAD << MXC_F_SPI_CTRL2_DATA_WIDTH_POS)
 
#define MXC_F_SPI_CTRL2_THREE_WIRE_POS   15
 
#define MXC_F_SPI_CTRL2_THREE_WIRE   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_THREE_WIRE_POS))
 
#define MXC_F_SPI_CTRL2_SS_POL_POS   16
 
#define MXC_F_SPI_CTRL2_SS_POL   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_SS_POL_POS))
 

Detailed Description

Register for controlling SPI peripheral.

Macro Definition Documentation

◆ MXC_F_SPI_CTRL2_CLK_PHA

#define MXC_F_SPI_CTRL2_CLK_PHA   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_CLK_PHA_POS))

CTRL2_CLK_PHA Mask

◆ MXC_F_SPI_CTRL2_CLK_PHA_POS

#define MXC_F_SPI_CTRL2_CLK_PHA_POS   0

CTRL2_CLK_PHA Position

◆ MXC_F_SPI_CTRL2_CLK_POL

#define MXC_F_SPI_CTRL2_CLK_POL   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_CLK_POL_POS))

CTRL2_CLK_POL Mask

◆ MXC_F_SPI_CTRL2_CLK_POL_POS

#define MXC_F_SPI_CTRL2_CLK_POL_POS   1

CTRL2_CLK_POL Position

◆ MXC_F_SPI_CTRL2_DATA_WIDTH

#define MXC_F_SPI_CTRL2_DATA_WIDTH   ((uint32_t)(0x3UL << MXC_F_SPI_CTRL2_DATA_WIDTH_POS))

CTRL2_DATA_WIDTH Mask

◆ MXC_F_SPI_CTRL2_DATA_WIDTH_POS

#define MXC_F_SPI_CTRL2_DATA_WIDTH_POS   12

CTRL2_DATA_WIDTH Position

◆ MXC_F_SPI_CTRL2_NUM_BITS

#define MXC_F_SPI_CTRL2_NUM_BITS   ((uint32_t)(0xFUL << MXC_F_SPI_CTRL2_NUM_BITS_POS))

CTRL2_NUM_BITS Mask

◆ MXC_F_SPI_CTRL2_NUM_BITS_POS

#define MXC_F_SPI_CTRL2_NUM_BITS_POS   8

CTRL2_NUM_BITS Position

◆ MXC_F_SPI_CTRL2_SS_POL

#define MXC_F_SPI_CTRL2_SS_POL   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_SS_POL_POS))

CTRL2_SS_POL Mask

◆ MXC_F_SPI_CTRL2_SS_POL_POS

#define MXC_F_SPI_CTRL2_SS_POL_POS   16

CTRL2_SS_POL Position

◆ MXC_F_SPI_CTRL2_THREE_WIRE

#define MXC_F_SPI_CTRL2_THREE_WIRE   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_THREE_WIRE_POS))

CTRL2_THREE_WIRE Mask

◆ MXC_F_SPI_CTRL2_THREE_WIRE_POS

#define MXC_F_SPI_CTRL2_THREE_WIRE_POS   15

CTRL2_THREE_WIRE Position

◆ MXC_S_SPI_CTRL2_DATA_WIDTH_DUAL

#define MXC_S_SPI_CTRL2_DATA_WIDTH_DUAL   (MXC_V_SPI_CTRL2_DATA_WIDTH_DUAL << MXC_F_SPI_CTRL2_DATA_WIDTH_POS)

CTRL2_DATA_WIDTH_DUAL Setting

◆ MXC_S_SPI_CTRL2_DATA_WIDTH_MONO

#define MXC_S_SPI_CTRL2_DATA_WIDTH_MONO   (MXC_V_SPI_CTRL2_DATA_WIDTH_MONO << MXC_F_SPI_CTRL2_DATA_WIDTH_POS)

CTRL2_DATA_WIDTH_MONO Setting

◆ MXC_S_SPI_CTRL2_DATA_WIDTH_QUAD

#define MXC_S_SPI_CTRL2_DATA_WIDTH_QUAD   (MXC_V_SPI_CTRL2_DATA_WIDTH_QUAD << MXC_F_SPI_CTRL2_DATA_WIDTH_POS)

CTRL2_DATA_WIDTH_QUAD Setting

◆ MXC_S_SPI_CTRL2_NUM_BITS_0

#define MXC_S_SPI_CTRL2_NUM_BITS_0   (MXC_V_SPI_CTRL2_NUM_BITS_0 << MXC_F_SPI_CTRL2_NUM_BITS_POS)

CTRL2_NUM_BITS_0 Setting

◆ MXC_V_SPI_CTRL2_DATA_WIDTH_DUAL

#define MXC_V_SPI_CTRL2_DATA_WIDTH_DUAL   ((uint32_t)0x1UL)

CTRL2_DATA_WIDTH_DUAL Value

◆ MXC_V_SPI_CTRL2_DATA_WIDTH_MONO

#define MXC_V_SPI_CTRL2_DATA_WIDTH_MONO   ((uint32_t)0x0UL)

CTRL2_DATA_WIDTH_MONO Value

◆ MXC_V_SPI_CTRL2_DATA_WIDTH_QUAD

#define MXC_V_SPI_CTRL2_DATA_WIDTH_QUAD   ((uint32_t)0x2UL)

CTRL2_DATA_WIDTH_QUAD Value

◆ MXC_V_SPI_CTRL2_NUM_BITS_0

#define MXC_V_SPI_CTRL2_NUM_BITS_0   ((uint32_t)0x0UL)

CTRL2_NUM_BITS_0 Value