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

Macros

#define MXC_F_SPI_CTRL0_SPI_EN_POS   0
 
#define MXC_F_SPI_CTRL0_SPI_EN   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_SPI_EN_POS))
 
#define MXC_V_SPI_CTRL0_SPI_EN_DIS   ((uint32_t)0x0UL)
 
#define MXC_S_SPI_CTRL0_SPI_EN_DIS   (MXC_V_SPI_CTRL0_SPI_EN_DIS << MXC_F_SPI_CTRL0_SPI_EN_POS)
 
#define MXC_V_SPI_CTRL0_SPI_EN_EN   ((uint32_t)0x1UL)
 
#define MXC_S_SPI_CTRL0_SPI_EN_EN   (MXC_V_SPI_CTRL0_SPI_EN_EN << MXC_F_SPI_CTRL0_SPI_EN_POS)
 
#define MXC_F_SPI_CTRL0_MM_EN_POS   1
 
#define MXC_F_SPI_CTRL0_MM_EN   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_MM_EN_POS))
 
#define MXC_V_SPI_CTRL0_MM_EN_DIS   ((uint32_t)0x0UL)
 
#define MXC_S_SPI_CTRL0_MM_EN_DIS   (MXC_V_SPI_CTRL0_MM_EN_DIS << MXC_F_SPI_CTRL0_MM_EN_POS)
 
#define MXC_V_SPI_CTRL0_MM_EN_EN   ((uint32_t)0x1UL)
 
#define MXC_S_SPI_CTRL0_MM_EN_EN   (MXC_V_SPI_CTRL0_MM_EN_EN << MXC_F_SPI_CTRL0_MM_EN_POS)
 
#define MXC_F_SPI_CTRL0_SS_IO_POS   4
 
#define MXC_F_SPI_CTRL0_SS_IO   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_SS_IO_POS))
 
#define MXC_V_SPI_CTRL0_SS_IO_OUTPUT   ((uint32_t)0x0UL)
 
#define MXC_S_SPI_CTRL0_SS_IO_OUTPUT   (MXC_V_SPI_CTRL0_SS_IO_OUTPUT << MXC_F_SPI_CTRL0_SS_IO_POS)
 
#define MXC_V_SPI_CTRL0_SS_IO_INPUT   ((uint32_t)0x1UL)
 
#define MXC_S_SPI_CTRL0_SS_IO_INPUT   (MXC_V_SPI_CTRL0_SS_IO_INPUT << MXC_F_SPI_CTRL0_SS_IO_POS)
 
#define MXC_F_SPI_CTRL0_START_POS   5
 
#define MXC_F_SPI_CTRL0_START   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_START_POS))
 
#define MXC_V_SPI_CTRL0_START_START   ((uint32_t)0x1UL)
 
#define MXC_S_SPI_CTRL0_START_START   (MXC_V_SPI_CTRL0_START_START << MXC_F_SPI_CTRL0_START_POS)
 
#define MXC_F_SPI_CTRL0_SS_CTRL_POS   8
 
#define MXC_F_SPI_CTRL0_SS_CTRL   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_SS_CTRL_POS))
 
#define MXC_V_SPI_CTRL0_SS_CTRL_DEASSERT   ((uint32_t)0x0UL)
 
#define MXC_S_SPI_CTRL0_SS_CTRL_DEASSERT   (MXC_V_SPI_CTRL0_SS_CTRL_DEASSERT << MXC_F_SPI_CTRL0_SS_CTRL_POS)
 
#define MXC_V_SPI_CTRL0_SS_CTRL_ASSERT   ((uint32_t)0x1UL)
 
#define MXC_S_SPI_CTRL0_SS_CTRL_ASSERT   (MXC_V_SPI_CTRL0_SS_CTRL_ASSERT << MXC_F_SPI_CTRL0_SS_CTRL_POS)
 
#define MXC_F_SPI_CTRL0_SS_SEL_POS   16
 
#define MXC_F_SPI_CTRL0_SS_SEL   ((uint32_t)(0xFUL << MXC_F_SPI_CTRL0_SS_SEL_POS))
 
#define MXC_V_SPI_CTRL0_SS_SEL_SS0   ((uint32_t)0x1UL)
 
#define MXC_S_SPI_CTRL0_SS_SEL_SS0   (MXC_V_SPI_CTRL0_SS_SEL_SS0 << MXC_F_SPI_CTRL0_SS_SEL_POS)
 
#define MXC_V_SPI_CTRL0_SS_SEL_SS1   ((uint32_t)0x2UL)
 
#define MXC_S_SPI_CTRL0_SS_SEL_SS1   (MXC_V_SPI_CTRL0_SS_SEL_SS1 << MXC_F_SPI_CTRL0_SS_SEL_POS)
 
#define MXC_V_SPI_CTRL0_SS_SEL_SS2   ((uint32_t)0x4UL)
 
#define MXC_S_SPI_CTRL0_SS_SEL_SS2   (MXC_V_SPI_CTRL0_SS_SEL_SS2 << MXC_F_SPI_CTRL0_SS_SEL_POS)
 
#define MXC_V_SPI_CTRL0_SS_SEL_SS3   ((uint32_t)0x8UL)
 
#define MXC_S_SPI_CTRL0_SS_SEL_SS3   (MXC_V_SPI_CTRL0_SS_SEL_SS3 << MXC_F_SPI_CTRL0_SS_SEL_POS)
 

Detailed Description

Register for controlling SPI peripheral.

Macro Definition Documentation

◆ MXC_F_SPI_CTRL0_MM_EN

#define MXC_F_SPI_CTRL0_MM_EN   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_MM_EN_POS))

CTRL0_MM_EN Mask

◆ MXC_F_SPI_CTRL0_MM_EN_POS

#define MXC_F_SPI_CTRL0_MM_EN_POS   1

CTRL0_MM_EN Position

◆ MXC_F_SPI_CTRL0_SPI_EN

#define MXC_F_SPI_CTRL0_SPI_EN   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_SPI_EN_POS))

CTRL0_SPI_EN Mask

◆ MXC_F_SPI_CTRL0_SPI_EN_POS

#define MXC_F_SPI_CTRL0_SPI_EN_POS   0

CTRL0_SPI_EN Position

◆ MXC_F_SPI_CTRL0_SS_CTRL

#define MXC_F_SPI_CTRL0_SS_CTRL   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_SS_CTRL_POS))

CTRL0_SS_CTRL Mask

◆ MXC_F_SPI_CTRL0_SS_CTRL_POS

#define MXC_F_SPI_CTRL0_SS_CTRL_POS   8

CTRL0_SS_CTRL Position

◆ MXC_F_SPI_CTRL0_SS_IO

#define MXC_F_SPI_CTRL0_SS_IO   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_SS_IO_POS))

CTRL0_SS_IO Mask

◆ MXC_F_SPI_CTRL0_SS_IO_POS

#define MXC_F_SPI_CTRL0_SS_IO_POS   4

CTRL0_SS_IO Position

◆ MXC_F_SPI_CTRL0_SS_SEL

#define MXC_F_SPI_CTRL0_SS_SEL   ((uint32_t)(0xFUL << MXC_F_SPI_CTRL0_SS_SEL_POS))

CTRL0_SS_SEL Mask

◆ MXC_F_SPI_CTRL0_SS_SEL_POS

#define MXC_F_SPI_CTRL0_SS_SEL_POS   16

CTRL0_SS_SEL Position

◆ MXC_F_SPI_CTRL0_START

#define MXC_F_SPI_CTRL0_START   ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_START_POS))

CTRL0_START Mask

◆ MXC_F_SPI_CTRL0_START_POS

#define MXC_F_SPI_CTRL0_START_POS   5

CTRL0_START Position

◆ MXC_S_SPI_CTRL0_MM_EN_DIS

#define MXC_S_SPI_CTRL0_MM_EN_DIS   (MXC_V_SPI_CTRL0_MM_EN_DIS << MXC_F_SPI_CTRL0_MM_EN_POS)

CTRL0_MM_EN_DIS Setting

◆ MXC_S_SPI_CTRL0_MM_EN_EN

#define MXC_S_SPI_CTRL0_MM_EN_EN   (MXC_V_SPI_CTRL0_MM_EN_EN << MXC_F_SPI_CTRL0_MM_EN_POS)

CTRL0_MM_EN_EN Setting

◆ MXC_S_SPI_CTRL0_SPI_EN_DIS

#define MXC_S_SPI_CTRL0_SPI_EN_DIS   (MXC_V_SPI_CTRL0_SPI_EN_DIS << MXC_F_SPI_CTRL0_SPI_EN_POS)

CTRL0_SPI_EN_DIS Setting

◆ MXC_S_SPI_CTRL0_SPI_EN_EN

#define MXC_S_SPI_CTRL0_SPI_EN_EN   (MXC_V_SPI_CTRL0_SPI_EN_EN << MXC_F_SPI_CTRL0_SPI_EN_POS)

CTRL0_SPI_EN_EN Setting

◆ MXC_S_SPI_CTRL0_SS_CTRL_ASSERT

#define MXC_S_SPI_CTRL0_SS_CTRL_ASSERT   (MXC_V_SPI_CTRL0_SS_CTRL_ASSERT << MXC_F_SPI_CTRL0_SS_CTRL_POS)

CTRL0_SS_CTRL_ASSERT Setting

◆ MXC_S_SPI_CTRL0_SS_CTRL_DEASSERT

#define MXC_S_SPI_CTRL0_SS_CTRL_DEASSERT   (MXC_V_SPI_CTRL0_SS_CTRL_DEASSERT << MXC_F_SPI_CTRL0_SS_CTRL_POS)

CTRL0_SS_CTRL_DEASSERT Setting

◆ MXC_S_SPI_CTRL0_SS_IO_INPUT

#define MXC_S_SPI_CTRL0_SS_IO_INPUT   (MXC_V_SPI_CTRL0_SS_IO_INPUT << MXC_F_SPI_CTRL0_SS_IO_POS)

CTRL0_SS_IO_INPUT Setting

◆ MXC_S_SPI_CTRL0_SS_IO_OUTPUT

#define MXC_S_SPI_CTRL0_SS_IO_OUTPUT   (MXC_V_SPI_CTRL0_SS_IO_OUTPUT << MXC_F_SPI_CTRL0_SS_IO_POS)

CTRL0_SS_IO_OUTPUT Setting

◆ MXC_S_SPI_CTRL0_SS_SEL_SS0

#define MXC_S_SPI_CTRL0_SS_SEL_SS0   (MXC_V_SPI_CTRL0_SS_SEL_SS0 << MXC_F_SPI_CTRL0_SS_SEL_POS)

CTRL0_SS_SEL_SS0 Setting

◆ MXC_S_SPI_CTRL0_SS_SEL_SS1

#define MXC_S_SPI_CTRL0_SS_SEL_SS1   (MXC_V_SPI_CTRL0_SS_SEL_SS1 << MXC_F_SPI_CTRL0_SS_SEL_POS)

CTRL0_SS_SEL_SS1 Setting

◆ MXC_S_SPI_CTRL0_SS_SEL_SS2

#define MXC_S_SPI_CTRL0_SS_SEL_SS2   (MXC_V_SPI_CTRL0_SS_SEL_SS2 << MXC_F_SPI_CTRL0_SS_SEL_POS)

CTRL0_SS_SEL_SS2 Setting

◆ MXC_S_SPI_CTRL0_SS_SEL_SS3

#define MXC_S_SPI_CTRL0_SS_SEL_SS3   (MXC_V_SPI_CTRL0_SS_SEL_SS3 << MXC_F_SPI_CTRL0_SS_SEL_POS)

CTRL0_SS_SEL_SS3 Setting

◆ MXC_S_SPI_CTRL0_START_START

#define MXC_S_SPI_CTRL0_START_START   (MXC_V_SPI_CTRL0_START_START << MXC_F_SPI_CTRL0_START_POS)

CTRL0_START_START Setting

◆ MXC_V_SPI_CTRL0_MM_EN_DIS

#define MXC_V_SPI_CTRL0_MM_EN_DIS   ((uint32_t)0x0UL)

CTRL0_MM_EN_DIS Value

◆ MXC_V_SPI_CTRL0_MM_EN_EN

#define MXC_V_SPI_CTRL0_MM_EN_EN   ((uint32_t)0x1UL)

CTRL0_MM_EN_EN Value

◆ MXC_V_SPI_CTRL0_SPI_EN_DIS

#define MXC_V_SPI_CTRL0_SPI_EN_DIS   ((uint32_t)0x0UL)

CTRL0_SPI_EN_DIS Value

◆ MXC_V_SPI_CTRL0_SPI_EN_EN

#define MXC_V_SPI_CTRL0_SPI_EN_EN   ((uint32_t)0x1UL)

CTRL0_SPI_EN_EN Value

◆ MXC_V_SPI_CTRL0_SS_CTRL_ASSERT

#define MXC_V_SPI_CTRL0_SS_CTRL_ASSERT   ((uint32_t)0x1UL)

CTRL0_SS_CTRL_ASSERT Value

◆ MXC_V_SPI_CTRL0_SS_CTRL_DEASSERT

#define MXC_V_SPI_CTRL0_SS_CTRL_DEASSERT   ((uint32_t)0x0UL)

CTRL0_SS_CTRL_DEASSERT Value

◆ MXC_V_SPI_CTRL0_SS_IO_INPUT

#define MXC_V_SPI_CTRL0_SS_IO_INPUT   ((uint32_t)0x1UL)

CTRL0_SS_IO_INPUT Value

◆ MXC_V_SPI_CTRL0_SS_IO_OUTPUT

#define MXC_V_SPI_CTRL0_SS_IO_OUTPUT   ((uint32_t)0x0UL)

CTRL0_SS_IO_OUTPUT Value

◆ MXC_V_SPI_CTRL0_SS_SEL_SS0

#define MXC_V_SPI_CTRL0_SS_SEL_SS0   ((uint32_t)0x1UL)

CTRL0_SS_SEL_SS0 Value

◆ MXC_V_SPI_CTRL0_SS_SEL_SS1

#define MXC_V_SPI_CTRL0_SS_SEL_SS1   ((uint32_t)0x2UL)

CTRL0_SS_SEL_SS1 Value

◆ MXC_V_SPI_CTRL0_SS_SEL_SS2

#define MXC_V_SPI_CTRL0_SS_SEL_SS2   ((uint32_t)0x4UL)

CTRL0_SS_SEL_SS2 Value

◆ MXC_V_SPI_CTRL0_SS_SEL_SS3

#define MXC_V_SPI_CTRL0_SS_SEL_SS3   ((uint32_t)0x8UL)

CTRL0_SS_SEL_SS3 Value

◆ MXC_V_SPI_CTRL0_START_START

#define MXC_V_SPI_CTRL0_START_START   ((uint32_t)0x1UL)

CTRL0_START_START Value