![]() |
MAX32650 Peripheral Driver API
Peripheral Driver API for the MAX32650
|
Register for controlling SPI peripheral.
#define MXC_F_SPI_CTRL2_BUS_WIDTH ((uint32_t)(0x3UL << MXC_F_SPI_CTRL2_BUS_WIDTH_POS)) |
CTRL2_BUS_WIDTH Mask
#define MXC_F_SPI_CTRL2_BUS_WIDTH_POS 12 |
CTRL2_BUS_WIDTH Position
#define MXC_F_SPI_CTRL2_CLK_PHA ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_CLK_PHA_POS)) |
CTRL2_CLK_PHA Mask
#define MXC_F_SPI_CTRL2_CLK_PHA_POS 0 |
CTRL2_CLK_PHA Position
#define MXC_F_SPI_CTRL2_CLK_POL ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_CLK_POL_POS)) |
CTRL2_CLK_POL Mask
#define MXC_F_SPI_CTRL2_CLK_POL_POS 1 |
CTRL2_CLK_POL Position
#define MXC_F_SPI_CTRL2_NUM_BITS ((uint32_t)(0xFUL << MXC_F_SPI_CTRL2_NUM_BITS_POS)) |
CTRL2_NUM_BITS Mask
#define MXC_F_SPI_CTRL2_NUM_BITS_POS 8 |
CTRL2_NUM_BITS Position
#define MXC_F_SPI_CTRL2_SS_POL ((uint32_t)(0xFFUL << MXC_F_SPI_CTRL2_SS_POL_POS)) |
CTRL2_SS_POL Mask
#define MXC_F_SPI_CTRL2_SS_POL_POS 16 |
CTRL2_SS_POL Position
#define MXC_F_SPI_CTRL2_THREE_WIRE ((uint32_t)(0x1UL << MXC_F_SPI_CTRL2_THREE_WIRE_POS)) |
CTRL2_THREE_WIRE Mask
#define MXC_F_SPI_CTRL2_THREE_WIRE_POS 15 |
CTRL2_THREE_WIRE Position
#define MXC_S_SPI_CTRL2_BUS_WIDTH_DUAL (MXC_V_SPI_CTRL2_BUS_WIDTH_DUAL << MXC_F_SPI_CTRL2_BUS_WIDTH_POS) |
CTRL2_BUS_WIDTH_DUAL Setting
#define MXC_S_SPI_CTRL2_BUS_WIDTH_MONO (MXC_V_SPI_CTRL2_BUS_WIDTH_MONO << MXC_F_SPI_CTRL2_BUS_WIDTH_POS) |
CTRL2_BUS_WIDTH_MONO Setting
#define MXC_S_SPI_CTRL2_BUS_WIDTH_QUAD (MXC_V_SPI_CTRL2_BUS_WIDTH_QUAD << MXC_F_SPI_CTRL2_BUS_WIDTH_POS) |
CTRL2_BUS_WIDTH_QUAD Setting
#define MXC_S_SPI_CTRL2_CLK_PHA_FALLINGEDGE (MXC_V_SPI_CTRL2_CLK_PHA_FALLINGEDGE << MXC_F_SPI_CTRL2_CLK_PHA_POS) |
CTRL2_CLK_PHA_FALLINGEDGE Setting
#define MXC_S_SPI_CTRL2_CLK_PHA_RISINGEDGE (MXC_V_SPI_CTRL2_CLK_PHA_RISINGEDGE << MXC_F_SPI_CTRL2_CLK_PHA_POS) |
CTRL2_CLK_PHA_RISINGEDGE Setting
#define MXC_S_SPI_CTRL2_CLK_POL_INVERTED (MXC_V_SPI_CTRL2_CLK_POL_INVERTED << MXC_F_SPI_CTRL2_CLK_POL_POS) |
CTRL2_CLK_POL_INVERTED Setting
#define MXC_S_SPI_CTRL2_CLK_POL_NORMAL (MXC_V_SPI_CTRL2_CLK_POL_NORMAL << MXC_F_SPI_CTRL2_CLK_POL_POS) |
CTRL2_CLK_POL_NORMAL Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_10BITS (MXC_V_SPI_CTRL2_NUM_BITS_10BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_10BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_11BITS (MXC_V_SPI_CTRL2_NUM_BITS_11BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_11BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_12BITS (MXC_V_SPI_CTRL2_NUM_BITS_12BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_12BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_13BITS (MXC_V_SPI_CTRL2_NUM_BITS_13BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_13BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_14BITS (MXC_V_SPI_CTRL2_NUM_BITS_14BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_14BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_15BITS (MXC_V_SPI_CTRL2_NUM_BITS_15BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_15BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_16BITS (MXC_V_SPI_CTRL2_NUM_BITS_16BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_16BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_1BITS (MXC_V_SPI_CTRL2_NUM_BITS_1BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_1BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_2BITS (MXC_V_SPI_CTRL2_NUM_BITS_2BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_2BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_3BITS (MXC_V_SPI_CTRL2_NUM_BITS_3BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_3BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_4BITS (MXC_V_SPI_CTRL2_NUM_BITS_4BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_4BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_5BITS (MXC_V_SPI_CTRL2_NUM_BITS_5BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_5BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_6BITS (MXC_V_SPI_CTRL2_NUM_BITS_6BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_6BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_7BITS (MXC_V_SPI_CTRL2_NUM_BITS_7BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_7BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_8BITS (MXC_V_SPI_CTRL2_NUM_BITS_8BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_8BITS Setting
#define MXC_S_SPI_CTRL2_NUM_BITS_9BITS (MXC_V_SPI_CTRL2_NUM_BITS_9BITS << MXC_F_SPI_CTRL2_NUM_BITS_POS) |
CTRL2_NUM_BITS_9BITS Setting
#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
#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
#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
#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
#define MXC_S_SPI_CTRL2_THREE_WIRE_3WIRE (MXC_V_SPI_CTRL2_THREE_WIRE_3WIRE << MXC_F_SPI_CTRL2_THREE_WIRE_POS) |
CTRL2_THREE_WIRE_3WIRE Setting
#define MXC_S_SPI_CTRL2_THREE_WIRE_4WIRE (MXC_V_SPI_CTRL2_THREE_WIRE_4WIRE << MXC_F_SPI_CTRL2_THREE_WIRE_POS) |
CTRL2_THREE_WIRE_4WIRE Setting
#define MXC_V_SPI_CTRL2_BUS_WIDTH_DUAL ((uint32_t)0x1UL) |
CTRL2_BUS_WIDTH_DUAL Value
#define MXC_V_SPI_CTRL2_BUS_WIDTH_MONO ((uint32_t)0x0UL) |
CTRL2_BUS_WIDTH_MONO Value
#define MXC_V_SPI_CTRL2_BUS_WIDTH_QUAD ((uint32_t)0x2UL) |
CTRL2_BUS_WIDTH_QUAD Value
#define MXC_V_SPI_CTRL2_CLK_PHA_FALLINGEDGE ((uint32_t)0x1UL) |
CTRL2_CLK_PHA_FALLINGEDGE Value
#define MXC_V_SPI_CTRL2_CLK_PHA_RISINGEDGE ((uint32_t)0x0UL) |
CTRL2_CLK_PHA_RISINGEDGE Value
#define MXC_V_SPI_CTRL2_CLK_POL_INVERTED ((uint32_t)0x1UL) |
CTRL2_CLK_POL_INVERTED Value
#define MXC_V_SPI_CTRL2_CLK_POL_NORMAL ((uint32_t)0x0UL) |
CTRL2_CLK_POL_NORMAL Value
#define MXC_V_SPI_CTRL2_NUM_BITS_10BITS ((uint32_t)0xAUL) |
CTRL2_NUM_BITS_10BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_11BITS ((uint32_t)0xBUL) |
CTRL2_NUM_BITS_11BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_12BITS ((uint32_t)0xCUL) |
CTRL2_NUM_BITS_12BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_13BITS ((uint32_t)0xDUL) |
CTRL2_NUM_BITS_13BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_14BITS ((uint32_t)0xEUL) |
CTRL2_NUM_BITS_14BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_15BITS ((uint32_t)0xFUL) |
CTRL2_NUM_BITS_15BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_16BITS ((uint32_t)0x0UL) |
CTRL2_NUM_BITS_16BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_1BITS ((uint32_t)0x1UL) |
CTRL2_NUM_BITS_1BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_2BITS ((uint32_t)0x2UL) |
CTRL2_NUM_BITS_2BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_3BITS ((uint32_t)0x3UL) |
CTRL2_NUM_BITS_3BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_4BITS ((uint32_t)0x4UL) |
CTRL2_NUM_BITS_4BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_5BITS ((uint32_t)0x5UL) |
CTRL2_NUM_BITS_5BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_6BITS ((uint32_t)0x6UL) |
CTRL2_NUM_BITS_6BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_7BITS ((uint32_t)0x7UL) |
CTRL2_NUM_BITS_7BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_8BITS ((uint32_t)0x8UL) |
CTRL2_NUM_BITS_8BITS Value
#define MXC_V_SPI_CTRL2_NUM_BITS_9BITS ((uint32_t)0x9UL) |
CTRL2_NUM_BITS_9BITS Value
#define MXC_V_SPI_CTRL2_SS_POL_SS0_HIGH ((uint32_t)0x1UL) |
CTRL2_SS_POL_SS0_HIGH Value
#define MXC_V_SPI_CTRL2_SS_POL_SS1_HIGH ((uint32_t)0x2UL) |
CTRL2_SS_POL_SS1_HIGH Value
#define MXC_V_SPI_CTRL2_SS_POL_SS2_HIGH ((uint32_t)0x4UL) |
CTRL2_SS_POL_SS2_HIGH Value
#define MXC_V_SPI_CTRL2_SS_POL_SS3_HIGH ((uint32_t)0x8UL) |
CTRL2_SS_POL_SS3_HIGH Value
#define MXC_V_SPI_CTRL2_THREE_WIRE_3WIRE ((uint32_t)0x1UL) |
CTRL2_THREE_WIRE_3WIRE Value
#define MXC_V_SPI_CTRL2_THREE_WIRE_4WIRE ((uint32_t)0x0UL) |
CTRL2_THREE_WIRE_4WIRE Value