![]() |
Altera SoCAL
16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
|
This register controls the serial data transfer. It is impossible to write to this register when the SPI Master is enabled. The SPI Master is enabled and disabled by writing to the SPIENR register.
Register Layout
Bits | Access | Reset | Description |
---|---|---|---|
[3:0] | RW | 0x7 | Data Frame Size |
[5:4] | RW | 0x0 | Frame Format |
[6] | RW | 0x0 | Serial Clock Phase |
[7] | RW | 0x0 | Serial Clock Polarity |
[9:8] | RW | 0x0 | Transfer Mode |
[10] | ??? | 0x0 | UNDEFINED |
[11] | RW | 0x0 | Shift Register Loop |
[15:12] | RW | 0x0 | Control Frame Size |
[31:16] | ??? | 0x0 | UNDEFINED |
Field : Data Frame Size - dfs | |||||||||||||||||||||||||
Selects the data frame length. When the data frame size is programmed to be less than 16 bits, the receive data are automatically right-justified by the receive logic, with the upper bits of the receive FIFO zero-padded. You must right- justify transmit data before writing into the transmit FIFO. The transmit logic ignores the upper unused bits when transmitting the data. Field Enumeration Values:
Field Access Macros: | |||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH4BIT 0x3 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH5BIT 0x4 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH6BIT 0x5 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH7BIT 0x6 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH8BIT 0x7 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH9BIT 0x8 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH10BIT 0x9 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_LSB 0 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_MSB 3 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_WIDTH 4 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_SET_MSK 0x0000000f | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_CLR_MSK 0xfffffff0 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_RESET 0x7 | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_GET(value) (((value) & 0x0000000f) >> 0) | ||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_SET(value) (((value) << 0) & 0x0000000f) | ||||||||||||||||||||||||
Field : Frame Format - frf | |||||||||||||
Selects which serial protocol transfers the data. Field Enumeration Values:
Field Access Macros: | |||||||||||||
#define | ALT_SPIM_CTLR0_FRF_E_MOTSPI 0x0 | ||||||||||||
#define | ALT_SPIM_CTLR0_FRF_E_TISSP 0x1 | ||||||||||||
#define | ALT_SPIM_CTLR0_FRF_E_NATMW 0x2 | ||||||||||||
#define | ALT_SPIM_CTLR0_FRF_LSB 4 | ||||||||||||
#define | ALT_SPIM_CTLR0_FRF_MSB 5 | ||||||||||||
#define | ALT_SPIM_CTLR0_FRF_WIDTH 2 | ||||||||||||
#define | ALT_SPIM_CTLR0_FRF_SET_MSK 0x00000030 | ||||||||||||
#define | ALT_SPIM_CTLR0_FRF_CLR_MSK 0xffffffcf | ||||||||||||
#define | ALT_SPIM_CTLR0_FRF_RESET 0x0 | ||||||||||||
#define | ALT_SPIM_CTLR0_FRF_GET(value) (((value) & 0x00000030) >> 4) | ||||||||||||
#define | ALT_SPIM_CTLR0_FRF_SET(value) (((value) << 4) & 0x00000030) | ||||||||||||
Field : Serial Clock Phase - scph | ||||||||||
Valid when the frame format (FRF) is set to Motorola SPI. The serial clock phase selects the relationship of the serial clock with the slave select signal. When SCPH = 0, data are captured on the first edge of the serial clock. When SCPH = 1, the serial clock starts toggling one cycle after the slave select line is activated, and data are captured on the second edge of the serial clock. Field Enumeration Values:
Field Access Macros: | ||||||||||
#define | ALT_SPIM_CTLR0_SCPH_E_MIDBIT 0x0 | |||||||||
#define | ALT_SPIM_CTLR0_SCPH_E_STARTBIT 0x1 | |||||||||
#define | ALT_SPIM_CTLR0_SCPH_LSB 6 | |||||||||
#define | ALT_SPIM_CTLR0_SCPH_MSB 6 | |||||||||
#define | ALT_SPIM_CTLR0_SCPH_WIDTH 1 | |||||||||
#define | ALT_SPIM_CTLR0_SCPH_SET_MSK 0x00000040 | |||||||||
#define | ALT_SPIM_CTLR0_SCPH_CLR_MSK 0xffffffbf | |||||||||
#define | ALT_SPIM_CTLR0_SCPH_RESET 0x0 | |||||||||
#define | ALT_SPIM_CTLR0_SCPH_GET(value) (((value) & 0x00000040) >> 6) | |||||||||
#define | ALT_SPIM_CTLR0_SCPH_SET(value) (((value) << 6) & 0x00000040) | |||||||||
Field : Serial Clock Polarity - scpol | ||||||||||
Valid when the frame format (FRF) is set to Motorola SPI. Used to select the polarity of the inactive serial clock, which is held inactive when the SPI Master is not actively transferring data on the serial bus. Field Enumeration Values:
Field Access Macros: | ||||||||||
#define | ALT_SPIM_CTLR0_SCPOL_E_INACTLOW 0x0 | |||||||||
#define | ALT_SPIM_CTLR0_SCPOL_E_INACTHIGH 0x1 | |||||||||
#define | ALT_SPIM_CTLR0_SCPOL_LSB 7 | |||||||||
#define | ALT_SPIM_CTLR0_SCPOL_MSB 7 | |||||||||
#define | ALT_SPIM_CTLR0_SCPOL_WIDTH 1 | |||||||||
#define | ALT_SPIM_CTLR0_SCPOL_SET_MSK 0x00000080 | |||||||||
#define | ALT_SPIM_CTLR0_SCPOL_CLR_MSK 0xffffff7f | |||||||||
#define | ALT_SPIM_CTLR0_SCPOL_RESET 0x0 | |||||||||
#define | ALT_SPIM_CTLR0_SCPOL_GET(value) (((value) & 0x00000080) >> 7) | |||||||||
#define | ALT_SPIM_CTLR0_SCPOL_SET(value) (((value) << 7) & 0x00000080) | |||||||||
Field : Transfer Mode - tmod | ||||||||||||||||
Selects the mode of transfer for serial communication. This field does not affect the transfer duplicity. Only indicates whether the receive or transmit data are valid. In transmit-only mode, data received from the external device is not valid and is not stored in the receive FIFO memory. It is overwritten on the next transfer. In receive-only mode, transmitted data are not valid. After the first write to the transmit FIFO, the same word is retransmitted for the duration of the transfer. In transmit-and-receive mode, both transmit and receive data are valid. The transfer continues until the transmit FIFO is empty. Data received from the external device are stored into the receive FIFO memory, where it can be accessed by the host processor. Field Enumeration Values:
Field Access Macros: | ||||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_E_TXRX 0x0 | |||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_E_TXONLY 0x1 | |||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_E_RXONLY 0x2 | |||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_E_EERD 0x3 | |||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_LSB 8 | |||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_MSB 9 | |||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_WIDTH 2 | |||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_SET_MSK 0x00000300 | |||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_CLR_MSK 0xfffffcff | |||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_RESET 0x0 | |||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_GET(value) (((value) & 0x00000300) >> 8) | |||||||||||||||
#define | ALT_SPIM_CTLR0_TMOD_SET(value) (((value) << 8) & 0x00000300) | |||||||||||||||
Field : Shift Register Loop - srl | ||||||||||
Used for testing purposes only. When internally active, connects the transmit shift register output to the receive shift register input. Field Enumeration Values:
Field Access Macros: | ||||||||||
#define | ALT_SPIM_CTLR0_SRL_E_NORMMOD 0x0 | |||||||||
#define | ALT_SPIM_CTLR0_SRL_E_TESTMOD 0x1 | |||||||||
#define | ALT_SPIM_CTLR0_SRL_LSB 11 | |||||||||
#define | ALT_SPIM_CTLR0_SRL_MSB 11 | |||||||||
#define | ALT_SPIM_CTLR0_SRL_WIDTH 1 | |||||||||
#define | ALT_SPIM_CTLR0_SRL_SET_MSK 0x00000800 | |||||||||
#define | ALT_SPIM_CTLR0_SRL_CLR_MSK 0xfffff7ff | |||||||||
#define | ALT_SPIM_CTLR0_SRL_RESET 0x0 | |||||||||
#define | ALT_SPIM_CTLR0_SRL_GET(value) (((value) & 0x00000800) >> 11) | |||||||||
#define | ALT_SPIM_CTLR0_SRL_SET(value) (((value) << 11) & 0x00000800) | |||||||||
Field : Control Frame Size - cfs | |
Selects the length of the control word for the Microwire frame format. The length (in bits) is the value of this field plus 1. Field Access Macros: | |
#define | ALT_SPIM_CTLR0_CFS_LSB 12 |
#define | ALT_SPIM_CTLR0_CFS_MSB 15 |
#define | ALT_SPIM_CTLR0_CFS_WIDTH 4 |
#define | ALT_SPIM_CTLR0_CFS_SET_MSK 0x0000f000 |
#define | ALT_SPIM_CTLR0_CFS_CLR_MSK 0xffff0fff |
#define | ALT_SPIM_CTLR0_CFS_RESET 0x0 |
#define | ALT_SPIM_CTLR0_CFS_GET(value) (((value) & 0x0000f000) >> 12) |
#define | ALT_SPIM_CTLR0_CFS_SET(value) (((value) << 12) & 0x0000f000) |
Data Structures | |
struct | ALT_SPIM_CTLR0_s |
Macros | |
#define | ALT_SPIM_CTLR0_OFST 0x0 |
#define | ALT_SPIM_CTLR0_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_SPIM_CTLR0_OFST)) |
Typedefs | |
typedef struct ALT_SPIM_CTLR0_s | ALT_SPIM_CTLR0_t |
struct ALT_SPIM_CTLR0_s |
WARNING: The C register and register group struct declarations are provided for convenience and illustrative purposes. They should, however, be used with caution as the C language standard provides no guarantees about the alignment or atomicity of device memory accesses. The recommended practice for writing hardware drivers is to use the SoCAL access macros and alt_read_word() and alt_write_word() functions.
The struct declaration for register ALT_SPIM_CTLR0.
Data Fields | ||
---|---|---|
uint32_t | dfs: 4 | Data Frame Size |
uint32_t | frf: 2 | Frame Format |
uint32_t | scph: 1 | Serial Clock Phase |
uint32_t | scpol: 1 | Serial Clock Polarity |
uint32_t | tmod: 2 | Transfer Mode |
uint32_t | __pad0__: 1 | UNDEFINED |
uint32_t | srl: 1 | Shift Register Loop |
uint32_t | cfs: 4 | Control Frame Size |
uint32_t | __pad1__: 16 | UNDEFINED |
#define ALT_SPIM_CTLR0_DFS_E_WIDTH4BIT 0x3 |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
4-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_E_WIDTH5BIT 0x4 |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
5-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_E_WIDTH6BIT 0x5 |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
6-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_E_WIDTH7BIT 0x6 |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
7-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_E_WIDTH8BIT 0x7 |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
8-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_E_WIDTH9BIT 0x8 |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
9-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_E_WIDTH10BIT 0x9 |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
10-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_LSB 0 |
The Least Significant Bit (LSB) position of the ALT_SPIM_CTLR0_DFS register field.
#define ALT_SPIM_CTLR0_DFS_MSB 3 |
The Most Significant Bit (MSB) position of the ALT_SPIM_CTLR0_DFS register field.
#define ALT_SPIM_CTLR0_DFS_WIDTH 4 |
The width in bits of the ALT_SPIM_CTLR0_DFS register field.
#define ALT_SPIM_CTLR0_DFS_SET_MSK 0x0000000f |
The mask used to set the ALT_SPIM_CTLR0_DFS register field value.
#define ALT_SPIM_CTLR0_DFS_CLR_MSK 0xfffffff0 |
The mask used to clear the ALT_SPIM_CTLR0_DFS register field value.
#define ALT_SPIM_CTLR0_DFS_RESET 0x7 |
The reset value of the ALT_SPIM_CTLR0_DFS register field.
#define ALT_SPIM_CTLR0_DFS_GET | ( | value | ) | (((value) & 0x0000000f) >> 0) |
Extracts the ALT_SPIM_CTLR0_DFS field value from a register.
#define ALT_SPIM_CTLR0_DFS_SET | ( | value | ) | (((value) << 0) & 0x0000000f) |
Produces a ALT_SPIM_CTLR0_DFS register field value suitable for setting the register.
#define ALT_SPIM_CTLR0_FRF_E_MOTSPI 0x0 |
Enumerated value for register field ALT_SPIM_CTLR0_FRF
Motorola SPI
#define ALT_SPIM_CTLR0_FRF_E_TISSP 0x1 |
Enumerated value for register field ALT_SPIM_CTLR0_FRF
Texas Instruments SSP
#define ALT_SPIM_CTLR0_FRF_E_NATMW 0x2 |
Enumerated value for register field ALT_SPIM_CTLR0_FRF
National Semi Microwire
#define ALT_SPIM_CTLR0_FRF_LSB 4 |
The Least Significant Bit (LSB) position of the ALT_SPIM_CTLR0_FRF register field.
#define ALT_SPIM_CTLR0_FRF_MSB 5 |
The Most Significant Bit (MSB) position of the ALT_SPIM_CTLR0_FRF register field.
#define ALT_SPIM_CTLR0_FRF_WIDTH 2 |
The width in bits of the ALT_SPIM_CTLR0_FRF register field.
#define ALT_SPIM_CTLR0_FRF_SET_MSK 0x00000030 |
The mask used to set the ALT_SPIM_CTLR0_FRF register field value.
#define ALT_SPIM_CTLR0_FRF_CLR_MSK 0xffffffcf |
The mask used to clear the ALT_SPIM_CTLR0_FRF register field value.
#define ALT_SPIM_CTLR0_FRF_RESET 0x0 |
The reset value of the ALT_SPIM_CTLR0_FRF register field.
#define ALT_SPIM_CTLR0_FRF_GET | ( | value | ) | (((value) & 0x00000030) >> 4) |
Extracts the ALT_SPIM_CTLR0_FRF field value from a register.
#define ALT_SPIM_CTLR0_FRF_SET | ( | value | ) | (((value) << 4) & 0x00000030) |
Produces a ALT_SPIM_CTLR0_FRF register field value suitable for setting the register.
#define ALT_SPIM_CTLR0_SCPH_E_MIDBIT 0x0 |
Enumerated value for register field ALT_SPIM_CTLR0_SCPH
Serial clock toggles in middle of first data bit
#define ALT_SPIM_CTLR0_SCPH_E_STARTBIT 0x1 |
Enumerated value for register field ALT_SPIM_CTLR0_SCPH
Serial clock toggles at start of first data bit
#define ALT_SPIM_CTLR0_SCPH_LSB 6 |
The Least Significant Bit (LSB) position of the ALT_SPIM_CTLR0_SCPH register field.
#define ALT_SPIM_CTLR0_SCPH_MSB 6 |
The Most Significant Bit (MSB) position of the ALT_SPIM_CTLR0_SCPH register field.
#define ALT_SPIM_CTLR0_SCPH_WIDTH 1 |
The width in bits of the ALT_SPIM_CTLR0_SCPH register field.
#define ALT_SPIM_CTLR0_SCPH_SET_MSK 0x00000040 |
The mask used to set the ALT_SPIM_CTLR0_SCPH register field value.
#define ALT_SPIM_CTLR0_SCPH_CLR_MSK 0xffffffbf |
The mask used to clear the ALT_SPIM_CTLR0_SCPH register field value.
#define ALT_SPIM_CTLR0_SCPH_RESET 0x0 |
The reset value of the ALT_SPIM_CTLR0_SCPH register field.
#define ALT_SPIM_CTLR0_SCPH_GET | ( | value | ) | (((value) & 0x00000040) >> 6) |
Extracts the ALT_SPIM_CTLR0_SCPH field value from a register.
#define ALT_SPIM_CTLR0_SCPH_SET | ( | value | ) | (((value) << 6) & 0x00000040) |
Produces a ALT_SPIM_CTLR0_SCPH register field value suitable for setting the register.
#define ALT_SPIM_CTLR0_SCPOL_E_INACTLOW 0x0 |
Enumerated value for register field ALT_SPIM_CTLR0_SCPOL
Inactive state of serial clock is low
#define ALT_SPIM_CTLR0_SCPOL_E_INACTHIGH 0x1 |
Enumerated value for register field ALT_SPIM_CTLR0_SCPOL
Inactive state of serial clock is high
#define ALT_SPIM_CTLR0_SCPOL_LSB 7 |
The Least Significant Bit (LSB) position of the ALT_SPIM_CTLR0_SCPOL register field.
#define ALT_SPIM_CTLR0_SCPOL_MSB 7 |
The Most Significant Bit (MSB) position of the ALT_SPIM_CTLR0_SCPOL register field.
#define ALT_SPIM_CTLR0_SCPOL_WIDTH 1 |
The width in bits of the ALT_SPIM_CTLR0_SCPOL register field.
#define ALT_SPIM_CTLR0_SCPOL_SET_MSK 0x00000080 |
The mask used to set the ALT_SPIM_CTLR0_SCPOL register field value.
#define ALT_SPIM_CTLR0_SCPOL_CLR_MSK 0xffffff7f |
The mask used to clear the ALT_SPIM_CTLR0_SCPOL register field value.
#define ALT_SPIM_CTLR0_SCPOL_RESET 0x0 |
The reset value of the ALT_SPIM_CTLR0_SCPOL register field.
#define ALT_SPIM_CTLR0_SCPOL_GET | ( | value | ) | (((value) & 0x00000080) >> 7) |
Extracts the ALT_SPIM_CTLR0_SCPOL field value from a register.
#define ALT_SPIM_CTLR0_SCPOL_SET | ( | value | ) | (((value) << 7) & 0x00000080) |
Produces a ALT_SPIM_CTLR0_SCPOL register field value suitable for setting the register.
#define ALT_SPIM_CTLR0_TMOD_E_TXRX 0x0 |
Enumerated value for register field ALT_SPIM_CTLR0_TMOD
Transmit & and Receive
#define ALT_SPIM_CTLR0_TMOD_E_TXONLY 0x1 |
Enumerated value for register field ALT_SPIM_CTLR0_TMOD
Transmit Only
#define ALT_SPIM_CTLR0_TMOD_E_RXONLY 0x2 |
Enumerated value for register field ALT_SPIM_CTLR0_TMOD
Receive Only
#define ALT_SPIM_CTLR0_TMOD_E_EERD 0x3 |
Enumerated value for register field ALT_SPIM_CTLR0_TMOD
EEPROM Read
#define ALT_SPIM_CTLR0_TMOD_LSB 8 |
The Least Significant Bit (LSB) position of the ALT_SPIM_CTLR0_TMOD register field.
#define ALT_SPIM_CTLR0_TMOD_MSB 9 |
The Most Significant Bit (MSB) position of the ALT_SPIM_CTLR0_TMOD register field.
#define ALT_SPIM_CTLR0_TMOD_WIDTH 2 |
The width in bits of the ALT_SPIM_CTLR0_TMOD register field.
#define ALT_SPIM_CTLR0_TMOD_SET_MSK 0x00000300 |
The mask used to set the ALT_SPIM_CTLR0_TMOD register field value.
#define ALT_SPIM_CTLR0_TMOD_CLR_MSK 0xfffffcff |
The mask used to clear the ALT_SPIM_CTLR0_TMOD register field value.
#define ALT_SPIM_CTLR0_TMOD_RESET 0x0 |
The reset value of the ALT_SPIM_CTLR0_TMOD register field.
#define ALT_SPIM_CTLR0_TMOD_GET | ( | value | ) | (((value) & 0x00000300) >> 8) |
Extracts the ALT_SPIM_CTLR0_TMOD field value from a register.
#define ALT_SPIM_CTLR0_TMOD_SET | ( | value | ) | (((value) << 8) & 0x00000300) |
Produces a ALT_SPIM_CTLR0_TMOD register field value suitable for setting the register.
#define ALT_SPIM_CTLR0_SRL_E_NORMMOD 0x0 |
Enumerated value for register field ALT_SPIM_CTLR0_SRL
Normal Mode Operation
#define ALT_SPIM_CTLR0_SRL_E_TESTMOD 0x1 |
Enumerated value for register field ALT_SPIM_CTLR0_SRL
Test Mode Operation
#define ALT_SPIM_CTLR0_SRL_LSB 11 |
The Least Significant Bit (LSB) position of the ALT_SPIM_CTLR0_SRL register field.
#define ALT_SPIM_CTLR0_SRL_MSB 11 |
The Most Significant Bit (MSB) position of the ALT_SPIM_CTLR0_SRL register field.
#define ALT_SPIM_CTLR0_SRL_WIDTH 1 |
The width in bits of the ALT_SPIM_CTLR0_SRL register field.
#define ALT_SPIM_CTLR0_SRL_SET_MSK 0x00000800 |
The mask used to set the ALT_SPIM_CTLR0_SRL register field value.
#define ALT_SPIM_CTLR0_SRL_CLR_MSK 0xfffff7ff |
The mask used to clear the ALT_SPIM_CTLR0_SRL register field value.
#define ALT_SPIM_CTLR0_SRL_RESET 0x0 |
The reset value of the ALT_SPIM_CTLR0_SRL register field.
#define ALT_SPIM_CTLR0_SRL_GET | ( | value | ) | (((value) & 0x00000800) >> 11) |
Extracts the ALT_SPIM_CTLR0_SRL field value from a register.
#define ALT_SPIM_CTLR0_SRL_SET | ( | value | ) | (((value) << 11) & 0x00000800) |
Produces a ALT_SPIM_CTLR0_SRL register field value suitable for setting the register.
#define ALT_SPIM_CTLR0_CFS_LSB 12 |
The Least Significant Bit (LSB) position of the ALT_SPIM_CTLR0_CFS register field.
#define ALT_SPIM_CTLR0_CFS_MSB 15 |
The Most Significant Bit (MSB) position of the ALT_SPIM_CTLR0_CFS register field.
#define ALT_SPIM_CTLR0_CFS_WIDTH 4 |
The width in bits of the ALT_SPIM_CTLR0_CFS register field.
#define ALT_SPIM_CTLR0_CFS_SET_MSK 0x0000f000 |
The mask used to set the ALT_SPIM_CTLR0_CFS register field value.
#define ALT_SPIM_CTLR0_CFS_CLR_MSK 0xffff0fff |
The mask used to clear the ALT_SPIM_CTLR0_CFS register field value.
#define ALT_SPIM_CTLR0_CFS_RESET 0x0 |
The reset value of the ALT_SPIM_CTLR0_CFS register field.
#define ALT_SPIM_CTLR0_CFS_GET | ( | value | ) | (((value) & 0x0000f000) >> 12) |
Extracts the ALT_SPIM_CTLR0_CFS field value from a register.
#define ALT_SPIM_CTLR0_CFS_SET | ( | value | ) | (((value) << 12) & 0x0000f000) |
Produces a ALT_SPIM_CTLR0_CFS register field value suitable for setting the register.
#define ALT_SPIM_CTLR0_OFST 0x0 |
The byte offset of the ALT_SPIM_CTLR0 register from the beginning of the component.
#define ALT_SPIM_CTLR0_ADDR | ( | base | ) | ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_SPIM_CTLR0_OFST)) |
The address of the ALT_SPIM_CTLR0 register.
typedef struct ALT_SPIM_CTLR0_s ALT_SPIM_CTLR0_t |
The typedef declaration for register ALT_SPIM_CTLR0.