![]() |
MAX32650 Peripheral Driver API
Peripheral Driver API for the MAX32650
|
Register for controlling SPI peripheral.
#define MXC_F_SPI_CTRL0_MM_EN ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_MM_EN_POS)) |
CTRL0_MM_EN Mask
#define MXC_F_SPI_CTRL0_MM_EN_POS 1 |
CTRL0_MM_EN Position
#define MXC_F_SPI_CTRL0_SPI_EN ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_SPI_EN_POS)) |
CTRL0_SPI_EN Mask
#define MXC_F_SPI_CTRL0_SPI_EN_POS 0 |
CTRL0_SPI_EN Position
#define MXC_F_SPI_CTRL0_SS_CTRL ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_SS_CTRL_POS)) |
CTRL0_SS_CTRL Mask
#define MXC_F_SPI_CTRL0_SS_CTRL_POS 8 |
CTRL0_SS_CTRL Position
#define MXC_F_SPI_CTRL0_SS_IO ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_SS_IO_POS)) |
CTRL0_SS_IO Mask
#define MXC_F_SPI_CTRL0_SS_IO_POS 4 |
CTRL0_SS_IO Position
#define MXC_F_SPI_CTRL0_SS_SEL ((uint32_t)(0xFUL << MXC_F_SPI_CTRL0_SS_SEL_POS)) |
CTRL0_SS_SEL Mask
#define MXC_F_SPI_CTRL0_SS_SEL_POS 16 |
CTRL0_SS_SEL Position
#define MXC_F_SPI_CTRL0_START ((uint32_t)(0x1UL << MXC_F_SPI_CTRL0_START_POS)) |
CTRL0_START Mask
#define MXC_F_SPI_CTRL0_START_POS 5 |
CTRL0_START Position
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#define MXC_S_SPI_CTRL0_START_START (MXC_V_SPI_CTRL0_START_START << MXC_F_SPI_CTRL0_START_POS) |
CTRL0_START_START Setting
#define MXC_V_SPI_CTRL0_MM_EN_DIS ((uint32_t)0x0UL) |
CTRL0_MM_EN_DIS Value
#define MXC_V_SPI_CTRL0_MM_EN_EN ((uint32_t)0x1UL) |
CTRL0_MM_EN_EN Value
#define MXC_V_SPI_CTRL0_SPI_EN_DIS ((uint32_t)0x0UL) |
CTRL0_SPI_EN_DIS Value
#define MXC_V_SPI_CTRL0_SPI_EN_EN ((uint32_t)0x1UL) |
CTRL0_SPI_EN_EN Value
#define MXC_V_SPI_CTRL0_SS_CTRL_ASSERT ((uint32_t)0x1UL) |
CTRL0_SS_CTRL_ASSERT Value
#define MXC_V_SPI_CTRL0_SS_CTRL_DEASSERT ((uint32_t)0x0UL) |
CTRL0_SS_CTRL_DEASSERT Value
#define MXC_V_SPI_CTRL0_SS_IO_INPUT ((uint32_t)0x1UL) |
CTRL0_SS_IO_INPUT Value
#define MXC_V_SPI_CTRL0_SS_IO_OUTPUT ((uint32_t)0x0UL) |
CTRL0_SS_IO_OUTPUT Value
#define MXC_V_SPI_CTRL0_SS_SEL_SS0 ((uint32_t)0x1UL) |
CTRL0_SS_SEL_SS0 Value
#define MXC_V_SPI_CTRL0_SS_SEL_SS1 ((uint32_t)0x2UL) |
CTRL0_SS_SEL_SS1 Value
#define MXC_V_SPI_CTRL0_SS_SEL_SS2 ((uint32_t)0x4UL) |
CTRL0_SS_SEL_SS2 Value
#define MXC_V_SPI_CTRL0_SS_SEL_SS3 ((uint32_t)0x8UL) |
CTRL0_SS_SEL_SS3 Value
#define MXC_V_SPI_CTRL0_START_START ((uint32_t)0x1UL) |
CTRL0_START_START Value