![]() |
Altera SoCAL
16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
|
Control Register 0:
This register controls the serial data transfer. It is impossible to
write to this register when the DW_apb_ssi is enabled. The DW_apb_ssi
is enabled and disabled by writing to the SSIENR register.
Register Layout
Bits | Access | Reset | Description |
---|---|---|---|
[3:0] | RW | 0x7 | ALT_SPIM_CTLR0_DFS |
[5:4] | RW | 0x0 | ALT_SPIM_CTLR0_FRF |
[6] | RW | 0x0 | ALT_SPIM_CTLR0_SCPH |
[7] | RW | 0x0 | ALT_SPIM_CTLR0_SCPOL |
[9:8] | RW | 0x0 | ALT_SPIM_CTLR0_TMOD |
[10] | ??? | 0x0 | UNDEFINED |
[11] | RW | 0x0 | ALT_SPIM_CTLR0_SRL |
[15:12] | RW | 0x0 | ALT_SPIM_CTLR0_CFS |
[31:16] | ??? | 0x0 | UNDEFINED |
Field : dfs | |||||||||||||||||||||||||||||||||||||||||||
Data Frame Size. 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_E_WIDTH11BIT 0xa | ||||||||||||||||||||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH12BIT 0xb | ||||||||||||||||||||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH13BIT 0xc | ||||||||||||||||||||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH14BIT 0xd | ||||||||||||||||||||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH15BIT 0xe | ||||||||||||||||||||||||||||||||||||||||||
#define | ALT_SPIM_CTLR0_DFS_E_WIDTH16BIT 0xf | ||||||||||||||||||||||||||||||||||||||||||
#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 : frf | |||||||||||||
Frame Format. Selects which serial protocol transfers the data. 00 - Motorola SPI 01 - Texas Instruments SSP 10 - National Semiconductors Microwire 11 - Reserved 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 : scph | ||||||||||
Serial Clock Phase. 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. 0: Serial clock toggles in middle of first data bit 1: Serial clock toggles at start of first data bit 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 : scpol | ||||||||||
Serial Clock Polarity. 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 DW_apb_ssi master is not actively transferring data on the serial bus. 0 - Inactive state of serial clock is low 1 - Inactive state of serial clock is high 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 : tmod | ||||||||||||||||
Transfer Mode. 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. 00 - Transmit & Receive 01 - Transmit Only 10 - Receive Only 11 - Reserved 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 : srl | ||||||||||
Shift Register Loop. Used for testing purposes only. When internally active, connects the transmit shift register output to the receive shift register input. 0 - Normal Mode Operation 1 - Test Mode Operation 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) | |||||||||
Data Structures | |
struct | ALT_SPIM_CTLR0_s |
Macros | |
#define | ALT_SPIM_CTLR0_RESET 0x00000007 |
#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 | ALT_SPIM_CTLR0_DFS |
uint32_t | frf: 2 | ALT_SPIM_CTLR0_FRF |
uint32_t | scph: 1 | ALT_SPIM_CTLR0_SCPH |
uint32_t | scpol: 1 | ALT_SPIM_CTLR0_SCPOL |
uint32_t | tmod: 2 | ALT_SPIM_CTLR0_TMOD |
uint32_t | __pad0__: 1 | UNDEFINED |
uint32_t | srl: 1 | ALT_SPIM_CTLR0_SRL |
uint32_t | cfs: 4 | ALT_SPIM_CTLR0_CFS |
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_E_WIDTH11BIT 0xa |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
11-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_E_WIDTH12BIT 0xb |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
12-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_E_WIDTH13BIT 0xc |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
13-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_E_WIDTH14BIT 0xd |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
14-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_E_WIDTH15BIT 0xe |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
15-bit serial data transfer
#define ALT_SPIM_CTLR0_DFS_E_WIDTH16BIT 0xf |
Enumerated value for register field ALT_SPIM_CTLR0_DFS
16-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_E_SIZE1BIT 0x0 |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
1-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE2BIT 0x1 |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
2-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE3BIT 0x2 |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
3-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE4BIT 0x3 |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
4-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE5BIT 0x4 |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
5-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE6BIT 0x05 |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
6-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE7BIT 0x6 |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
7-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE8BIT 0x7 |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
8-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE9BIT 0x8 |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
9-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE10BIT 0x9 |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
10-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE11BIT 0xa |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
11-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE12BIT 0xb |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
12-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE13BIT 0xc |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
13-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE14BIT 0xd |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
14-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE15BIT 0xe |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
15-bit control word
#define ALT_SPIM_CTLR0_CFS_E_SIZE16BIT 0xf |
Enumerated value for register field ALT_SPIM_CTLR0_CFS
16-bit control word
#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_RESET 0x00000007 |
The reset value of the ALT_SPIM_CTLR0 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.