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

Macros

#define MXC_F_SPI_CTRL2_CLKPHA_POS   0
 
#define MXC_F_SPI_CTRL2_CLKPHA   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_CLKPHA_POS))
 
#define MXC_F_SPI_CTRL2_CLKPOL_POS   1
 
#define MXC_F_SPI_CTRL2_CLKPOL   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_CLKPOL_POS))
 
#define MXC_F_SPI_CTRL2_NUMBITS_POS   8
 
#define MXC_F_SPI_CTRL2_NUMBITS   ((uint32_t)(0xFUL << MXC_F_SPI_CTRL2_NUMBITS_POS))
 
#define MXC_V_SPI_CTRL2_NUMBITS_16   ((uint32_t)0x0UL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_16   (MXC_V_SPI_CTRL2_NUMBITS_16 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_1   ((uint32_t)0x1UL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_1   (MXC_V_SPI_CTRL2_NUMBITS_1 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_2   ((uint32_t)0x2UL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_2   (MXC_V_SPI_CTRL2_NUMBITS_2 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_3   ((uint32_t)0x3UL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_3   (MXC_V_SPI_CTRL2_NUMBITS_3 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_4   ((uint32_t)0x4UL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_4   (MXC_V_SPI_CTRL2_NUMBITS_4 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_5   ((uint32_t)0x5UL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_5   (MXC_V_SPI_CTRL2_NUMBITS_5 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_6   ((uint32_t)0x6UL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_6   (MXC_V_SPI_CTRL2_NUMBITS_6 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_7   ((uint32_t)0x7UL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_7   (MXC_V_SPI_CTRL2_NUMBITS_7 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_8   ((uint32_t)0x8UL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_8   (MXC_V_SPI_CTRL2_NUMBITS_8 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_9   ((uint32_t)0x9UL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_9   (MXC_V_SPI_CTRL2_NUMBITS_9 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_10   ((uint32_t)0xAUL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_10   (MXC_V_SPI_CTRL2_NUMBITS_10 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_11   ((uint32_t)0xBUL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_11   (MXC_V_SPI_CTRL2_NUMBITS_11 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_12   ((uint32_t)0xCUL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_12   (MXC_V_SPI_CTRL2_NUMBITS_12 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_13   ((uint32_t)0xDUL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_13   (MXC_V_SPI_CTRL2_NUMBITS_13 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_14   ((uint32_t)0xEUL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_14   (MXC_V_SPI_CTRL2_NUMBITS_14 << MXC_F_SPI_CTRL2_NUMBITS_POS)
 
#define MXC_V_SPI_CTRL2_NUMBITS_15   ((uint32_t)0xFUL)
 
#define MXC_S_SPI_CTRL2_NUMBITS_15   (MXC_V_SPI_CTRL2_NUMBITS_15 << MXC_F_SPI_CTRL2_NUMBITS_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)(0xFFUL << MXC_F_SPI_CTRL2_SS_POL_POS))
 
#define MXC_V_SPI_CTRL2_SS_POL_SS0_HIGH   ((uint32_t)0x1UL)
 
#define MXC_S_SPI_CTRL2_SS_POL_SS0_HIGH   (MXC_V_SPI_CTRL2_SS_POL_SS0_HIGH << MXC_F_SPI_CTRL2_SS_POL_POS)
 
#define MXC_V_SPI_CTRL2_SS_POL_SS1_HIGH   ((uint32_t)0x2UL)
 
#define MXC_S_SPI_CTRL2_SS_POL_SS1_HIGH   (MXC_V_SPI_CTRL2_SS_POL_SS1_HIGH << MXC_F_SPI_CTRL2_SS_POL_POS)
 
#define MXC_V_SPI_CTRL2_SS_POL_SS2_HIGH   ((uint32_t)0x4UL)
 
#define MXC_S_SPI_CTRL2_SS_POL_SS2_HIGH   (MXC_V_SPI_CTRL2_SS_POL_SS2_HIGH << MXC_F_SPI_CTRL2_SS_POL_POS)
 
#define MXC_V_SPI_CTRL2_SS_POL_SS3_HIGH   ((uint32_t)0x8UL)
 
#define MXC_S_SPI_CTRL2_SS_POL_SS3_HIGH   (MXC_V_SPI_CTRL2_SS_POL_SS3_HIGH << MXC_F_SPI_CTRL2_SS_POL_POS)
 

Detailed Description

Register for controlling SPI peripheral.

Macro Definition Documentation

◆ MXC_F_SPI_CTRL2_CLKPHA

#define MXC_F_SPI_CTRL2_CLKPHA   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_CLKPHA_POS))

CTRL2_CLKPHA Mask

◆ MXC_F_SPI_CTRL2_CLKPHA_POS

#define MXC_F_SPI_CTRL2_CLKPHA_POS   0

CTRL2_CLKPHA Position

◆ MXC_F_SPI_CTRL2_CLKPOL

#define MXC_F_SPI_CTRL2_CLKPOL   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_CLKPOL_POS))

CTRL2_CLKPOL Mask

◆ MXC_F_SPI_CTRL2_CLKPOL_POS

#define MXC_F_SPI_CTRL2_CLKPOL_POS   1

CTRL2_CLKPOL 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_NUMBITS

#define MXC_F_SPI_CTRL2_NUMBITS   ((uint32_t)(0xFUL << MXC_F_SPI_CTRL2_NUMBITS_POS))

CTRL2_NUMBITS Mask

◆ MXC_F_SPI_CTRL2_NUMBITS_POS

#define MXC_F_SPI_CTRL2_NUMBITS_POS   8

CTRL2_NUMBITS Position

◆ MXC_F_SPI_CTRL2_SS_POL

#define MXC_F_SPI_CTRL2_SS_POL   ((uint32_t)(0xFFUL << 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_NUMBITS_1

#define MXC_S_SPI_CTRL2_NUMBITS_1   (MXC_V_SPI_CTRL2_NUMBITS_1 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_1 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_10

#define MXC_S_SPI_CTRL2_NUMBITS_10   (MXC_V_SPI_CTRL2_NUMBITS_10 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_10 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_11

#define MXC_S_SPI_CTRL2_NUMBITS_11   (MXC_V_SPI_CTRL2_NUMBITS_11 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_11 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_12

#define MXC_S_SPI_CTRL2_NUMBITS_12   (MXC_V_SPI_CTRL2_NUMBITS_12 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_12 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_13

#define MXC_S_SPI_CTRL2_NUMBITS_13   (MXC_V_SPI_CTRL2_NUMBITS_13 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_13 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_14

#define MXC_S_SPI_CTRL2_NUMBITS_14   (MXC_V_SPI_CTRL2_NUMBITS_14 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_14 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_15

#define MXC_S_SPI_CTRL2_NUMBITS_15   (MXC_V_SPI_CTRL2_NUMBITS_15 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_15 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_16

#define MXC_S_SPI_CTRL2_NUMBITS_16   (MXC_V_SPI_CTRL2_NUMBITS_16 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_16 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_2

#define MXC_S_SPI_CTRL2_NUMBITS_2   (MXC_V_SPI_CTRL2_NUMBITS_2 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_2 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_3

#define MXC_S_SPI_CTRL2_NUMBITS_3   (MXC_V_SPI_CTRL2_NUMBITS_3 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_3 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_4

#define MXC_S_SPI_CTRL2_NUMBITS_4   (MXC_V_SPI_CTRL2_NUMBITS_4 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_4 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_5

#define MXC_S_SPI_CTRL2_NUMBITS_5   (MXC_V_SPI_CTRL2_NUMBITS_5 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_5 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_6

#define MXC_S_SPI_CTRL2_NUMBITS_6   (MXC_V_SPI_CTRL2_NUMBITS_6 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_6 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_7

#define MXC_S_SPI_CTRL2_NUMBITS_7   (MXC_V_SPI_CTRL2_NUMBITS_7 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_7 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_8

#define MXC_S_SPI_CTRL2_NUMBITS_8   (MXC_V_SPI_CTRL2_NUMBITS_8 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_8 Setting

◆ MXC_S_SPI_CTRL2_NUMBITS_9

#define MXC_S_SPI_CTRL2_NUMBITS_9   (MXC_V_SPI_CTRL2_NUMBITS_9 << MXC_F_SPI_CTRL2_NUMBITS_POS)

CTRL2_NUMBITS_9 Setting

◆ MXC_S_SPI_CTRL2_SS_POL_SS0_HIGH

#define MXC_S_SPI_CTRL2_SS_POL_SS0_HIGH   (MXC_V_SPI_CTRL2_SS_POL_SS0_HIGH << MXC_F_SPI_CTRL2_SS_POL_POS)

CTRL2_SS_POL_SS0_HIGH Setting

◆ MXC_S_SPI_CTRL2_SS_POL_SS1_HIGH

#define MXC_S_SPI_CTRL2_SS_POL_SS1_HIGH   (MXC_V_SPI_CTRL2_SS_POL_SS1_HIGH << MXC_F_SPI_CTRL2_SS_POL_POS)

CTRL2_SS_POL_SS1_HIGH Setting

◆ MXC_S_SPI_CTRL2_SS_POL_SS2_HIGH

#define MXC_S_SPI_CTRL2_SS_POL_SS2_HIGH   (MXC_V_SPI_CTRL2_SS_POL_SS2_HIGH << MXC_F_SPI_CTRL2_SS_POL_POS)

CTRL2_SS_POL_SS2_HIGH Setting

◆ MXC_S_SPI_CTRL2_SS_POL_SS3_HIGH

#define MXC_S_SPI_CTRL2_SS_POL_SS3_HIGH   (MXC_V_SPI_CTRL2_SS_POL_SS3_HIGH << MXC_F_SPI_CTRL2_SS_POL_POS)

CTRL2_SS_POL_SS3_HIGH 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_NUMBITS_1

#define MXC_V_SPI_CTRL2_NUMBITS_1   ((uint32_t)0x1UL)

CTRL2_NUMBITS_1 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_10

#define MXC_V_SPI_CTRL2_NUMBITS_10   ((uint32_t)0xAUL)

CTRL2_NUMBITS_10 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_11

#define MXC_V_SPI_CTRL2_NUMBITS_11   ((uint32_t)0xBUL)

CTRL2_NUMBITS_11 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_12

#define MXC_V_SPI_CTRL2_NUMBITS_12   ((uint32_t)0xCUL)

CTRL2_NUMBITS_12 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_13

#define MXC_V_SPI_CTRL2_NUMBITS_13   ((uint32_t)0xDUL)

CTRL2_NUMBITS_13 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_14

#define MXC_V_SPI_CTRL2_NUMBITS_14   ((uint32_t)0xEUL)

CTRL2_NUMBITS_14 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_15

#define MXC_V_SPI_CTRL2_NUMBITS_15   ((uint32_t)0xFUL)

CTRL2_NUMBITS_15 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_16

#define MXC_V_SPI_CTRL2_NUMBITS_16   ((uint32_t)0x0UL)

CTRL2_NUMBITS_16 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_2

#define MXC_V_SPI_CTRL2_NUMBITS_2   ((uint32_t)0x2UL)

CTRL2_NUMBITS_2 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_3

#define MXC_V_SPI_CTRL2_NUMBITS_3   ((uint32_t)0x3UL)

CTRL2_NUMBITS_3 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_4

#define MXC_V_SPI_CTRL2_NUMBITS_4   ((uint32_t)0x4UL)

CTRL2_NUMBITS_4 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_5

#define MXC_V_SPI_CTRL2_NUMBITS_5   ((uint32_t)0x5UL)

CTRL2_NUMBITS_5 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_6

#define MXC_V_SPI_CTRL2_NUMBITS_6   ((uint32_t)0x6UL)

CTRL2_NUMBITS_6 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_7

#define MXC_V_SPI_CTRL2_NUMBITS_7   ((uint32_t)0x7UL)

CTRL2_NUMBITS_7 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_8

#define MXC_V_SPI_CTRL2_NUMBITS_8   ((uint32_t)0x8UL)

CTRL2_NUMBITS_8 Value

◆ MXC_V_SPI_CTRL2_NUMBITS_9

#define MXC_V_SPI_CTRL2_NUMBITS_9   ((uint32_t)0x9UL)

CTRL2_NUMBITS_9 Value

◆ MXC_V_SPI_CTRL2_SS_POL_SS0_HIGH

#define MXC_V_SPI_CTRL2_SS_POL_SS0_HIGH   ((uint32_t)0x1UL)

CTRL2_SS_POL_SS0_HIGH Value

◆ MXC_V_SPI_CTRL2_SS_POL_SS1_HIGH

#define MXC_V_SPI_CTRL2_SS_POL_SS1_HIGH   ((uint32_t)0x2UL)

CTRL2_SS_POL_SS1_HIGH Value

◆ MXC_V_SPI_CTRL2_SS_POL_SS2_HIGH

#define MXC_V_SPI_CTRL2_SS_POL_SS2_HIGH   ((uint32_t)0x4UL)

CTRL2_SS_POL_SS2_HIGH Value

◆ MXC_V_SPI_CTRL2_SS_POL_SS3_HIGH

#define MXC_V_SPI_CTRL2_SS_POL_SS3_HIGH   ((uint32_t)0x8UL)

CTRL2_SS_POL_SS3_HIGH Value